*FIXED!* Vehicle Spawns not Spawning

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

*FIXED!* Vehicle Spawns not Spawning

Post by epm01 »

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.
Last edited by epm01 on Mon Aug 04, 2008 8:21 pm, edited 1 time in total.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Vehicle Spawns not Spawning

Post by DarthD.U.C.K. »

do you load the tank in your lua?
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Vehicle Spawns not Spawning

Post by epm01 »

No I didn't, do I have to? If so then what lines do I add in?
User avatar
Culvar
1st Lieutenant
1st Lieutenant
Posts: 429
Joined: Thu Jul 10, 2008 10:36 am

Re: Vehicle Spawns not Spawning

Post 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)
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Vehicle Spawns not Spawning

Post by epm01 »

Still not working, Heres the side part of my LUA....
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\mdr.lvl",
"mdr_inf_rrifleman",
"mdr_inf_rrocketeer",
"mdr_inf_rengineer",
"mdr_inf_rsniper",
"mdr_inf_rofficer",
"mdr_inf_rjettrooper",
"mdr_inf_rifleman",
"mdr_inf_rocketeer",
"mdr_inf_engineer",
"mdr_inf_sniper",
"mdr_inf_officer",
"mdr_inf_jettrooper",
"cis_hover_HAG")


ReadDataFile("dc:SIDE\\cit.lvl",
"baa_cit1",
"baa_cit2")


ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "mdr_inf_rifleman",9, 25},
assault = { "mdr_inf_rocketeer",1, 4},
engineer = { "mdr_inf_engineer",1, 4},
sniper = { "mdr_inf_sniper",1, 4},
officer = { "mdr_inf_officer",1, 4},
special = { "mdr_inf_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "mdr_inf_rrifleman",9, 25},
assault = { "mdr_inf_rrocketeer",1, 4},
engineer = { "mdr_inf_rengineer",1, 4},
sniper = { "mdr_inf_rsniper",1, 4},
officer = { "mdr_inf_rofficer",1, 4},
special = { "mdr_inf_rjettrooper",1, 4},


}
}
No errrors according to the mungelog. Any help will be appreciated greatly.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Vehicle Spawns not Spawning

Post 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.
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Vehicle Spawns not Spawning

Post 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.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Vehicle Spawns not Spawning

Post by MercuryNoodles »

Since I've hovers on the brain at the moment.. :P 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.
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Vehicle Spawns not Spawning

Post 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.
User avatar
Culvar
1st Lieutenant
1st Lieutenant
Posts: 429
Joined: Thu Jul 10, 2008 10:36 am

Re: Vehicle Spawns not Spawning

Post by Culvar »

You could not assign the Vehicle Spawn to a CP. It'll still appear, but anyone will steal it.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Vehicle Spawns not Spawning

Post by Teancum »

You gotta build the side for the HAG (heh, I accidentally typed HUG originally :lol: ). That's the only way to have a lvl, unless someone was nice enough to do it for you.
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Vehicle Spawns not Spawning

Post 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?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Vehicle Spawns not Spawning

Post 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.
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Vehicle Spawns not Spawning

Post 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:

Image

Can I ahead and Munge the HAG side now or will that mess-up my entire map?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Vehicle Spawns not Spawning

Post by Maveritchell »

Should be set to "middle-click," it looks like.
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Vehicle Spawns not Spawning

Post 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.
Post Reply