I need some advanced "How-to" help. (For everyone)
Moderator: Moderators
- Fett
- Private
- Posts: 40
- Joined: Thu Jan 21, 2010 4:05 pm
Re: I need some advanced "How-to" help. (For everyone)
- giftheck
- 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)
It needs to be read in the side file.
So you'd have something like this at the beginning this:
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".
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")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".
- Fett
- Private
- Posts: 40
- Joined: Thu Jan 21, 2010 4:05 pm
Re: I need some advanced "How-to" help. (For everyone)
- giftheck
- 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)
Which instructions are you reading?
- Fett
- Private
- Posts: 40
- Joined: Thu Jan 21, 2010 4:05 pm
Re: I need some advanced "How-to" help. (For everyone)
Directions by someone on MPCGamers
- giftheck
- 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)
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.
- xbox live or psn: No gamertag set
Re: I need some advanced "How-to" help. (For everyone)
The EntityHover stuff IS the memory pool settings
- Fett
- Private
- Posts: 40
- Joined: Thu Jan 21, 2010 4:05 pm
Re: I need some advanced "How-to" help. (For everyone)
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
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
- giftheck
- 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)
With any luck, yes. Just remember to set memory pool for it (EntityHover) or it won't appear.
- Fett
- Private
- Posts: 40
- Joined: Thu Jan 21, 2010 4:05 pm
Re: I need some advanced "How-to" help. (For everyone)
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
?
AddWalkerType(2, 0)
-- SetMemoryPoolSize("EntityHover", 12)
-- SetMemoryPoolSize("EntityFlyer", 5)
-- SetMemoryPoolSize
Into
AddWalkerType(2, 0)
-- SetMemoryPoolSize("EntityHover", 13)
-- SetMemoryPoolSize("EntityFlyer", 5)
-- SetMemoryPoolSize
?
-
AQT
- 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)
^ Try deleting the dash marks. (--)
- Fett
- Private
- Posts: 40
- Joined: Thu Jan 21, 2010 4:05 pm
Re: I need some advanced "How-to" help. (For everyone)
That's how they are in the .lua file though.
-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: I need some advanced "How-to" help. (For everyone)
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.
its so you can have reminders about what code does, or to temporarily remove the code without actually deleting it.
- Fett
- Private
- Posts: 40
- Joined: Thu Jan 21, 2010 4:05 pm
