Vehicles underground

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
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Vehicles underground

Post by wishihadaname »

I've been having an odd issue with the hoth hanger, I can't seem to spawn vehicles in it. The control region, cp, and vehicle spawn are all inside the hanger, in the same layer, and are all technically beneath the terrain. The vehicles don't spawn and I get an error that says they can't find cp11. I'm not sure what that means.
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Vehicles underground

Post by Eggman »

wishihadaname wrote:I've been having an odd issue with the hoth hanger, I can't seem to spawn vehicles in it. The control region, cp, and vehicle spawn are all inside the hanger, in the same layer, and are all technically beneath the terrain. The vehicles don't spawn and I get an error that says they can't find cp11. I'm not sure what that means.
That has nothing to do with being underground. You made a mistake somewhere in linking the vehicle spawn, cp, and control region together. You might also have made a mistake adding the cp in your .lua.

Post the exact error message you have. "They can't find cp11" could refer to several things.
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: Vehicles underground

Post by wishihadaname »

Here is the error
Message Severity: 3
.\Source\VehicleSpawn.cpp(135)
Vehicle spawn missing command post "cp11"

Its odd though. Do the spawn point and the CP have to be in the same layer? I probably missed something obvius.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Vehicles underground

Post by Xavious »

wishihadaname wrote:Its odd though. Do the spawn point and the CP have to be in the same layer?
They should be.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Vehicles underground

Post by lucasfart »

Xavious wrote:
wishihadaname wrote:Its odd though. Do the spawn point and the CP have to be in the same layer?
They should be.
Not sure if this is exactly what you're saying xav, but they HAVE to be in the same layer. read that in one of Psychofreds docs. If its not in the same layer, it wont work at all.
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: Vehicles underground

Post by wishihadaname »

Really? I have the air battle set up like that though and the fighters spawn. The cp and the control region are in the base layer and the vehicle spawns are in the air layer and it works just fine.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Vehicles underground

Post by lucasfart »

wishihadaname wrote:Really? I have the air battle set up like that though and the fighters spawn. The cp and the control region are in the base layer and the vehicle spawns are in the air layer and it works just fine.
hmm......now that i think about it, i think its only necessary for the cp object, cp regions and spawn paths to be on the same layer. The control region has to be on the same layer as the cp, but, if what you're saying is right, the vehicle spawn doesn't need to be.

EDIT: Just went into the modtools documentation. In the ZeroEditor_GameModes.doc read Act III.
Herein lies a list of the NEW RULES that must be obeyed now that layers are-self contained:
- Any vehicle spawns MUST be in the SAME LAYER as the command post they are associated with, if they are associated with one.
-The capture and control regions for a command post MUST be in the SAME LAYER as the command post.
With you sky layer, was the sky cp on the same layer as the vehicle spawns?
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: Vehicles underground

Post by wishihadaname »

nope. Don't know why it works but the point is that it does and it makes me :). It doesn't work for vehicles though because when I moved those tanks to the same layer as the CP they suddenly started to spawn. So I guess i've disscovered something. Fliers don't need to be on the same layer as their associated CP's.
Post Reply