since im a bit new to modding
Moderator: Moderators
-
GolfBulb
since im a bit new to modding
how do you accuratly add vehicles
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
RE: since im a bit new to modding
Read the Getting Started Doc. It talks about spawning vehicles.
-
GolfBulb
Re: RE: since im a bit new to modding
Well i have it all right in ZE.. i think anyways, but i think my lua might be wrong ehretrainmaster611 wrote:Read the Getting Started Doc. It talks about spawning vehicles.
ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep2_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder",
"rep_walk_atte")
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
I'd bet that you didn't add memorypools for your walker. Right above all the SetMemoryPool lines in your .lua should be something about AddWalkerType (looks like this):
The second number sets how many can be on the field at once.AddWalkerType(0, 4) -- memory pool for droidekas (0 leg pairs, in this case set for 4 'dekas)
AddWalkerType(1, 0) -- memory pool for 1-leg pair vehicles (set to 0, AT-RT, AT-ST)
AddWalkerType(2, 0) -- memory pool for 2-leg pair vehicles (set to 0, Spider Walkers, AT-AT)
AddWalkerType(3, 2) -- memory pool for 3-leg pair vehicles (set to 2, AT-TE)
-
GolfBulb
So this is what it shoudl look like, tho this is jsut the droidika, it shoudl look something like this???Maveritchell wrote:I'd bet that you didn't add memorypools for your walker. Right above all the SetMemoryPool lines in your .lua should be something about AddWalkerType (looks like this):
The second number sets how many can be on the field at once.AddWalkerType(0, 4) -- memory pool for droidekas (0 leg pairs, in this case set for 4 'dekas)
AddWalkerType(1, 0) -- memory pool for 1-leg pair vehicles (set to 0, AT-RT, AT-ST)
AddWalkerType(2, 0) -- memory pool for 2-leg pair vehicles (set to 0, Spider Walkers, AT-AT)
AddWalkerType(3, 2) -- memory pool for 3-leg pair vehicles (set to 2, AT-TE)
-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
AddWalkerType(3, 2) -- 3x2 (3 pairs of legs)
And if thats right, which its prolly not, where do i put it?
BTW im only spawning one ATTE now
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
-
GolfBulb
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
-
GolfBulb
well now im right confused i know whati have to do, but i dont knwo how to do it lol, If only it said in the docs "____________PUT THIS IN THAT PART OF YOUR lua" lolMaveritchell wrote:No. Anything in a .lua that comes after two dashes ("--") is just a comment. The "special -> droideka" etc. is only there to help you know what's what.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
-
GolfBulb
Maveritchell wrote:All you need to do is change the second number in the parentheses of the AddWalkerType with the number of legpairs you want. NOTHING ELSE.
Like I said, ignore anything in the .lua after two dashes. They're just notes that the programmers made in there that don't affect the program.
soooo...... 1?
I am only spawing one atte so im assuming 1
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
-
GolfBulb
*sighs*
Maveritchell wrote:That would be correct. It should look like this:
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 1) -- 3x2 (3 pairs of legs)
After a long day of posting, You helped me More then anyone else! tho ppl have helped me out alot aswell
-
GolfBulb
Egg gutrs has pointed out somthing for me
Well i kinda left out the control region
any hlp there? I have chekced the docs, but so far found nothing
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
You must've missed that whole "getting started" doc, which really has a pretty solid tutorial on adding vehicles. Regardless, as long as you don't assign a controlregion to your vehicle spawn, you don't need one. Just make sure the vehicle spawn is assigned to your REP team (there's a box that says team, and the clones are probably team 1), so that only clones can use the AT-TE.
-
GolfBulb
Well it doesnt spawnMaveritchell wrote:You must've missed that whole "getting started" doc, which really has a pretty solid tutorial on adding vehicles. Regardless, as long as you don't assign a controlregion to your vehicle spawn, you don't need one. Just make sure the vehicle spawn is assigned to your REP team (there's a box that says team, and the clones are probably team 1), so that only clones can use the AT-TE.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
-
GolfBulb
so i jsut throw it somwhere in here: (well after the addwalkertype ofcoarseMaveritchell wrote:You need this line in your .lua, also, if it's not there. It goes with the rest of the memorypools:
Look in the geo1c_con.lua if you're having .lua problems, especially with a Geonosis map.SetMemoryPoolSize("CommandWalker", 1)
-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 1) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
-
GolfBulb
