Vehicles explode instantly [Solved]

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
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Vehicles explode instantly [Solved]

Post by Marvel4 »

Hi, I already completed CW conquest for my Kashyyyk: Islands map and I now have a problem with GCW conquest:

The alliance have two vehicles, all_fly_gunship_sc and all_fly_ywing_sc and before I can reach them, they just explode. I already tried putting the vehicle spawn, all CPs and all control regions into the conquest layer, but that didn't work...
Last edited by Marvel4 on Mon Aug 02, 2010 11:00 am, edited 1 time in total.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: Vehicles explode instantly

Post by genaral_mitch »

Is your DecayTime set to the default 10.0? You should raise it to 50.0 or higher.
User avatar
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Re: Vehicles explode instantly

Post by Marvel4 »

Umm, I don't think that's the problem. It was 10 for every vehicle (CIS,REP,IMP and ALL), but just the ALL vehicles explode - instantly.
User avatar
sim-al2
2nd Lieutenant
2nd Lieutenant
Posts: 412
Joined: Mon Jul 06, 2009 10:26 pm
Projects :: Mapping on occasion
Games I'm Playing :: SWBFII + MW4 + SC4
Location: In the cockpit of some vehicle...

Re: Vehicles explode instantly

Post by sim-al2 »

Does it say anything in your log?
User avatar
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Re: Vehicles explode instantly

Post by Marvel4 »

Nope, nothing.
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: Vehicles explode instantly

Post by fasty »

Generally, when you leave a vehicle outside its region, it explodes. I think you should double check everything in ZE to make sure your vehicle spawn regions are set up right.
User avatar
linksith
Command Sergeant Major
Command Sergeant Major
Posts: 284
Joined: Mon Jul 12, 2010 12:19 pm
Projects :: Waaay too many projects
Games I'm Playing :: too many
xbox live or psn: me has no xbox
Location: looking for a wifi connection

Re: Vehicles explode instantly

Post by linksith »

Here is a part of fierfeks guide that helped me. It's best if you follow all of its directions specifically.
Hidden/Spoiler:
Okay, so you made your map, and are having fun playing it in BF2. But you want to have some way to get around your map besides walking. I don’t blame you, I would too. So, in this section, I will teach you to add in vehicles, and we will add in some speeders.
First, we need to figure out the coded names of the speeders. Go to each side folder, but instead of going into odf, open the req file (the one without shell on the end). There is a list of vehicle codenames. The ones we want here are:

Rep_hover_barcspeeder
Cis_hover_stap
Imp_hover_speederbike
(the rebels don’t have their own speeder, so they use the imperial one)

Okay, open up zeroeditor. Make sure you are in the conquest layer. Now, in objects, click browse. Go to ModID\common\odfs. Find com_item_vehicle_spawn. You will also need to create control zones for your command posts. Control zones are made exactly the same way as capture zones, except for a few differences:

- Control Zones are not written as cp#_capture, but cp#_control
- Control Zones are squares, not cylinders
- Control Zones should be 10 height instead of 5
- Control Zones should be placed next to the command posts instead of over them




Then, make the control regions. Place them next to the command posts. Now we will make vehicles.
Go back to objects, and find com_item_vehicle_spawn again. Place 2 or 3 next to each command post, outside the capture zone but NOT IN THE CONTROL ZONE. This is important. Do not place the vehicle spawns in the control zones.


Now here it gets a bit repetitive. In ControlZone, write the command post number. So, if it is cp1, write cp1, if cp2 write cp2, etc. In Spawn Count, put 1. In Spawn time, put 30.0. In ExpireTimeEnemy, put 30.0. In ExpireTimeField, put 60.0. In DecayTime, put 30.0. Now, you need to specify what class of vehicle you are putting in. Each field (find more by pressing page dn) specifies a kind of vehicle. The ones you need to fill in are:

ClassAllATK
ClassCISATK
ClassImpATK
ClassRepATK
ClassAllDef
ClassCISDef
ClassImpDef
ClassRepDef

Now, each of these is for a side. So, for the All and Imp ones, type:

Imp_hover_speederbike

For Each of the Rep ones, type:

Rep_hover_barcspeeder

And For Each of the CIS ones, type:

Cis_hover_stap

Easy? Yeah, but you have to do that for every single vehicle spawner. It gets really tiring. You can do different vehicles kinds as well. Look through all the vehicle types in the side folder and req files. There are many different varieties.
I want to point out that the decay times must be set correctly as well as the other options in the vehicle spawn instance. Make sure the height of the control region is 10 at a minimum.

"Do not place the vehicle spawns in the control zones."

I'm not sure why it says this but putting them in the control zone works for me; if following the instruction helps you then that's great. Hope this helps.
User avatar
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Re: Vehicles explode instantly

Post by Marvel4 »

EDIT: I fixed it: The gunships wing was IN the Y-Wing, so I increased the distance between the vehicle spawns.

But thanks for the help anyway. :)
Post Reply