I've read the documents and followed everything but my Vehicles still wont spawn.
I change my layer to Conquest (The mode that I want my vehicle in). I get a vehicles spawn from data_***/Common/ODF's. Drop it where I want the vehicle to be spawned. Set the Control Zone to cp1. Set ClassCISATK to cis_hover_HAG, Set ClassREPDEF (This is a CIS Conquest CP so I don't know if I did this one right) to cis_hover_HAG. I have Psych0Freds Heavy Artillery Gunner in my World folder with everything in it, what am I doing wrong? My CP is setup correctly so I'm guessing has something to do with how I'm setting the class up.
If you need anymore information about the Vehicle spawning problem so that it would be easier to solve this then don't fret to ask.
Re: Vehicle Spawns not Spawning
Posted: Sun Aug 03, 2008 11:58 am
by DarthD.U.C.K.
do you load the tank in your lua?
Re: Vehicle Spawns not Spawning
Posted: Sun Aug 03, 2008 12:09 pm
by epm01
No I didn't, do I have to? If so then what lines do I add in?
Re: Vehicle Spawns not Spawning
Posted: Sun Aug 03, 2008 12:10 pm
by Culvar
epm01 wrote:No I didn't, do I have to? If so then what lines do I add in?
Same as you load a unit.
(The side//rep.lvl,
"rep_hover_fightertank" stuff)
Re: Vehicle Spawns not Spawning
Posted: Sun Aug 03, 2008 7:42 pm
by epm01
Still not working, Heres the side part of my LUA....
No errrors according to the mungelog. Any help will be appreciated greatly.
Re: Vehicle Spawns not Spawning
Posted: Sun Aug 03, 2008 9:17 pm
by bobfinkl
I noticed you didn't say you added the control region to the cp, if you didn't add one. If that isn't the problem is the cis_hover_HAG a part of the mdr.lvl? It seems like it doesn't fit in with that, if so add the .lvl that it comes from.
Re: Vehicle Spawns not Spawning
Posted: Sun Aug 03, 2008 10:54 pm
by epm01
Does there have to be an extra Control Region for Vehicles? The HAG is a downloaded Vehicle from Psych0freds site and it didn't come with a .lvl for it, if thats what you mean. I'm going to read the region part of the getting started guide and see if I missed anything.
Edit: Found this: The ControlRegion is a region that controls the spawning of vehicles associated with a CP. Vehicle Spawns are placed inside the Control Region, and once they leave the Control Region, if they are abandoned, they will eventually self-destruct, and respawn.
I just realised that my conquest control regions don't work which might be one of the things causing the problem next to the .lvl.
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 9:08 am
by MercuryNoodles
Since I've hovers on the brain at the moment.. I'm guessing this vehicle's classlabel is "hover", right? (I'm just going by the name here.) If so, check to see that the hover memory pool is set high enough to display all hover entities at once. If the memory pool is filling up with other things, it won't spawn the HAG until there's room for another hover in memory.
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 10:23 am
by epm01
I made sure that my Vehicle Spawn was placed inside cp1's control region and it was. I'm guessing its all down to the .lvl or Memory Pools, I'll check in a second but how do I get a .lvl file for the cis_hover_HAG?
Edit: Well I got a big BF2_Modtools.exe log but there were a few that stood out:
Hidden/Spoiler:
Message Severity: 3
.\Source\CommandPost.cpp(493)
Command Post missing capture region "cp1_capture"
Message Severity: 2
.\Source\VehicleSpawn.cpp(140)
Vehicle spawn outside command post "cp1" control region
Message Severity: 2
.\Source\VehicleSpawn.cpp(191)
Vehicle spawn missing class "cis_hover_HAG"
Message Severity: 2
.\Source\VehicleSpawn.cpp(191)
Vehicle spawn missing class "cis_hover_HAG"
Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk cis_hover_HAG in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\TOM\Data\_lvl_pc\SIDE\mdr.lvl
Like I said before my Control Regions and Capture Regions are not working right now and I'll get on that in a second, but why is cis_hover_HAG missing its class? I'm pretty certain now that cis_hover_HAG shouldn't be included in mdr.lvl considering it was never in it and look at the fifth one.
That isn't my entire log I just found the ones that contained the vehicle.
Edit 2: I just realized why the control/capture regions were not working. They were floating it the air and I can seem to figure out how to stop them from doing that, whenever I press on the middle button on my mouse ZeroEditor minimizes.
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 12:15 pm
by Culvar
You could not assign the Vehicle Spawn to a CP. It'll still appear, but anyone will steal it.
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 12:25 pm
by Teancum
You gotta build the side for the HAG (heh, I accidentally typed HUG originally ). That's the only way to have a lvl, unless someone was nice enough to do it for you.
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 2:23 pm
by epm01
So make a side in the data_***/sides folder called HAG and put odf, msh, effects and req in there and then put the odfs, mshes, effects and reqs. Then munge the HAG side and I'll get a HAG.lvl? I'm going to wait for an answer before I do anything....
Also how do I make it so that the control/capture regions are on the ground? Like I said before my Zero Editor window minimizes when I press the middle mouse button and when I go back in it asks me if I'm sure I want to exit. Is there a different way to move it lower?
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 5:23 pm
by Maveritchell
epm01 wrote:Like I said before my Zero Editor window minimizes when I press the middle mouse button and when I go back in it asks me if I'm sure I want to exit.
Check your mouse settings, you may have the middle mouse click set as a shortcut to something like minimize or exit.
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 5:45 pm
by epm01
My middle mouse button settings are on Next Window what should I change it to? Heres the settings that I can change it to:
Can I ahead and Munge the HAG side now or will that mess-up my entire map?
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 6:53 pm
by Maveritchell
Should be set to "middle-click," it looks like.
Re: Vehicle Spawns not Spawning
Posted: Mon Aug 04, 2008 7:39 pm
by epm01
Well that fixed my CP problem (Thanks Mav) but will it mess up my level if I munge the HAG side? I'm trying to get a .lvl file from it so that I can get the HAG to work.
Edit: Dann fixed up the last of the vehicle problems and I would also like to thank everyone that posted in this thread to help me out with this.