Page 2 of 2
Re: I need some advanced "How-to" help. (For everyone)
Posted: Sat Jan 23, 2010 7:21 pm
by Fett

Hmmm...then how do I put a republic fightertank in? This is so confusing..
Re: I need some advanced "How-to" help. (For everyone)
Posted: Wed Jan 27, 2010 6:03 pm
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".
Re: I need some advanced "How-to" help. (For everyone)
Posted: Thu Jan 28, 2010 9:52 am
by Fett

Then why does it say to "Add the vehicle to the SetMemoryPool thing?
Re: I need some advanced "How-to" help. (For everyone)
Posted: Thu Jan 28, 2010 5:50 pm
by giftheck
Which instructions are you reading?
Re: I need some advanced "How-to" help. (For everyone)
Posted: Sun Jan 31, 2010 3:07 pm
by Fett
Directions by someone on MPCGamers
Re: I need some advanced "How-to" help. (For everyone)
Posted: Sun Jan 31, 2010 5:02 pm
by giftheck
Well, trust me, it's definitely "EntityHover".
Re: I need some advanced "How-to" help. (For everyone)
Posted: Sun Jan 31, 2010 5:18 pm
by breakdown
The EntityHover stuff IS the memory pool settings
Re: I need some advanced "How-to" help. (For everyone)
Posted: Tue Feb 02, 2010 9:49 am
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
Re: I need some advanced "How-to" help. (For everyone)
Posted: Tue Feb 02, 2010 7:25 pm
by giftheck
With any luck, yes. Just remember to set memory pool for it (EntityHover) or it won't appear.
Re: I need some advanced "How-to" help. (For everyone)
Posted: Wed Feb 03, 2010 5:27 pm
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
?

Re: I need some advanced "How-to" help. (For everyone)
Posted: Wed Feb 03, 2010 8:25 pm
by AQT
^ Try deleting the dash marks. (--)
Re: I need some advanced "How-to" help. (For everyone)
Posted: Wed Feb 03, 2010 9:41 pm
by Fett
That's how they are in the .lua file though.
Re: I need some advanced "How-to" help. (For everyone)
Posted: Wed Feb 03, 2010 9:52 pm
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.
Re: I need some advanced "How-to" help. (For everyone)
Posted: Wed Feb 03, 2010 9:55 pm
by Fett
oh ok thanks