I need some advanced "How-to" help. (For everyone)

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

User avatar
Fett
Private
Posts: 40
Joined: Thu Jan 21, 2010 4:05 pm

Re: I need some advanced "How-to" help. (For everyone)

Post by Fett »

:faint: Hmmm...then how do I put a republic fightertank in? This is so confusing..
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: I need some advanced "How-to" help. (For everyone)

Post by giftheck »

It needs to be read in the side file.

So you'd have something like this at the beginning this:

Code: Select all

ReadDataFile("SIDE\\rep.lvl",
"rep_hover_fightertank",
"rep_inf_basic",
"rep_inf_macewindu")
The "EntityHover" line applies to any "hover" class file, be it the IFT-T, IFT-X, AAT, or Rebel Tank. Personally, I set it about at least 2 or 3 higher than the actual number of defined vehicles in the level (be it Hover, CommandWalker, Flyer etc).

That is, assuming you have entered it into the map. You probably know you need "com_item_vehicle_spawn" item for this, and you need to enter, under both Class_Rep_ATK and Class_Rep_DEF, "rep_hover_fightertank".
User avatar
Fett
Private
Posts: 40
Joined: Thu Jan 21, 2010 4:05 pm

Re: I need some advanced "How-to" help. (For everyone)

Post by Fett »

:? Then why does it say to "Add the vehicle to the SetMemoryPool thing?
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: I need some advanced "How-to" help. (For everyone)

Post by giftheck »

Which instructions are you reading?
User avatar
Fett
Private
Posts: 40
Joined: Thu Jan 21, 2010 4:05 pm

Re: I need some advanced "How-to" help. (For everyone)

Post by Fett »

Directions by someone on MPCGamers
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: I need some advanced "How-to" help. (For everyone)

Post by giftheck »

Well, trust me, it's definitely "EntityHover".
breakdown
Lance Corporal
Posts: 91
Joined: Thu Oct 16, 2008 6:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: I need some advanced "How-to" help. (For everyone)

Post by breakdown »

The EntityHover stuff IS the memory pool settings
User avatar
Fett
Private
Posts: 40
Joined: Thu Jan 21, 2010 4:05 pm

Re: I need some advanced "How-to" help. (For everyone)

Post by Fett »

Allright, So I add "rep_hover_fightertank", like this:

ReadDataFile("sound\\tat.lvl;tat1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_hover_fightertank",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper");

Then I put a vehicle_spawn on the map, link it to..say CP2Label Then put rep_hover_fightertank in RepATK and RepDEF and it will work? gtpwn
User avatar
giftheck
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2218
Joined: Mon Jan 19, 2009 5:58 pm
Projects :: Star Wars Battlefront Anniversary

Re: I need some advanced "How-to" help. (For everyone)

Post by giftheck »

With any luck, yes. Just remember to set memory pool for it (EntityHover) or it won't appear.
User avatar
Fett
Private
Posts: 40
Joined: Thu Jan 21, 2010 4:05 pm

Re: I need some advanced "How-to" help. (For everyone)

Post by Fett »

Ok, in the .lua I make

AddWalkerType(2, 0)
-- SetMemoryPoolSize("EntityHover", 12)
-- SetMemoryPoolSize("EntityFlyer", 5)
-- SetMemoryPoolSize

Into

AddWalkerType(2, 0)
-- SetMemoryPoolSize("EntityHover", 13)
-- SetMemoryPoolSize("EntityFlyer", 5)
-- SetMemoryPoolSize

? :cpu:
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: I need some advanced "How-to" help. (For everyone)

Post by AQT »

^ Try deleting the dash marks. (--)
User avatar
Fett
Private
Posts: 40
Joined: Thu Jan 21, 2010 4:05 pm

Re: I need some advanced "How-to" help. (For everyone)

Post by Fett »

That's how they are in the .lua file though.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: I need some advanced "How-to" help. (For everyone)

Post by kinetosimpetus »

the (--) are comment marks, anything behind them on a line does not get compiled
its so you can have reminders about what code does, or to temporarily remove the code without actually deleting it.
User avatar
Fett
Private
Posts: 40
Joined: Thu Jan 21, 2010 4:05 pm

Re: I need some advanced "How-to" help. (For everyone)

Post by Fett »

oh ok thanks
Post Reply