Converting Vehicles
Moderator: Moderators
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Converting Vehicles
I was wondering if there is a way to convert a land vehicle like "rep_hover_fightertank" to be able to fly like any other flying vehicle. I have already tried editing the odf in a number of different ways, but I can't seem to get it to work. Any help would be appreciated, Thanks
-
computergeek
- General

- Posts: 770
- Joined: Thu Jun 07, 2007 6:26 pm
- Projects :: Halo Warthog vehicle for SWBF2
- xbox live or psn: No gamertag set
- Location: Far Far away....
Re: Converting Vehicles
Can you edit the odf so instead of being VehicleType- hover to VehicleType- flyer
dont copy and paste this because I just guessed on what it would say.
Basically replace "hover" with "flyer"
dont copy and paste this because I just guessed on what it would say.
Basically replace "hover" with "flyer"
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
That was my first guess,but when I tried it, I realized I would have to change and add other lines, and I'm not quite sure what to do with those. When I munge my level and go into it, it just crashes.
-
Ace_Azzameen_5
- Jedi

- Posts: 1119
- Joined: Sat Apr 23, 2005 8:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Check your bfront2.log to see what's causing the crash.
Put bf2_modtools.exe in your data folder an run your map with it.
Put bf2_modtools.exe in your data folder an run your map with it.
- 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: Converting Vehicles
CHanging the classlabel and vehicletype to flyer isn't the only thing you need to do. You need to go through the contents and erase anything that relates to hover vehicles. Such as
Then you also have to add contents that apply to flyer vehicles.
and more things.SetAltitude = 0.5
GravityScale = 4.0
LiftSpring = 4.0 //Suspension tightness. High is a firm rugged ride, low is floaty and smooth
LiftDamp = 3.0 //Shock Absorber. High corrects quickly, low causes it to bounce and over correct alot.
Then you also have to add contents that apply to flyer vehicles.
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
It would probably be simpler to take a flyer and change its geometry and animations to the geometry of the hover vehicle that you're converting.
-
The_Emperor
- Supreme Galactic Ruler
- Posts: 2118
- Joined: Sat Dec 10, 2005 6:30 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Waaaaay over there.
Re: Converting Vehicles
qft, that's way easier. Just replace the msh name, animation name and weaponsection in an existing flyer, copy it over your odf et voilà, done. Change some sounds, maybe.ARC_Commander wrote:It would probably be simpler to take a flyer and change its geometry and animations to the geometry of the hover vehicle that you're converting.
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Thank you everyone. Ill try everything out and let you know.
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
It still crashes on me. I must still be doing something wrong. I edited and added bunch of lines in the odf but it still won't work. And where is this bfront2.log file? I can't find it.
- 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: Converting Vehicles
In your BF2_Modtools folder, there's an application called BF2_Modtools.exe with a little clone icon. Copy and paste that into Star Wars Battlefront 2/Gamedata. Then run BF2_Modtools from within the gamedata folder. It should run the game in windowed format and have a green thing on the upper half. Ignore that. Run your map with BF2_Modtools.exe. After your map crashes, go back to the gamedata folder. There should be a notepad file called BFront2. Open and copy and paste the contents here.
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Thanks I'll try that.
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Ok, I read the log file and found out that it was something else that was causing it to crash so I fixed that, and I also took out the converted vehicle. Now it doesn't crash. So I know it was the vehicle that caused it, and now I just need to figure out what lines I need to change in the odf, so if anyone has any ideas, that would be great.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Converting Vehicles
Let's see the ODF contents and we'll help you debug it.
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Here is the odf. I used the trifighter odf for a stap.
Hidden/Spoiler:
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Converting Vehicles
Get rid of the weapon section you have and copy this into your ODF in place of it, then munge and try it out:
Hidden/Spoiler:
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Hey, I tried what you said Ace, but no go. I'm gonna look over the odf and make sure there aren't any mistakes, like too may brackets or something.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Converting Vehicles
What errors are you getting in your BFront2.log after you run the game with the BF2_modtool.exe?
- 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: Converting Vehicles
I'm 90% sure this is needed. Its collision references. But me being myself, I could be wrong.
Add those things and see if it helps. I'm pretty sure those lines are necessary.
Look at this
See those last two bits are exactly the same except for the DamageStopPercent value. I would take this part out
Because the one that says DamageStopPercent = "15" is the one that is in the stap ODF.
The ThrustEffect section also refers to a hardpoint called "dummyroot". I'm not sure that exists in the stap model because I don't see it in the stap ODF. My suggestion is either change the name of the hardpoint for the thrusteffect to something you know exists or else just take out the Thrusteffect altogether.
Code: Select all
AISizeType = "SMALL"
//BuildingCollision = "p_sphere"
//BuildingCollision = "p_sphere1"
VehicleCollision = "p_sphere"
VehicleCollision = "p_sphere1"
SoldierCollision = "CollisionMesh"
OrdnanceCollision = "CollisionMesh"Look at this
Code: Select all
////DAMAGE///////////
///////////////
// SMOKE
DamageStartPercent = "75"
DamageStopPercent = "35"
DamageEffect = "com_sfx_vehiclesmoke_speeder"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_1"
DamageStartPercent = "55"
DamageStopPercent = "15"
DamageEffect = "com_sfx_vehiclesmoke_speeder"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage2"
DamageStartPercent = "55"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_2"
Code: Select all
DamageStartPercent = "55"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_2"The ThrustEffect section also refers to a hardpoint called "dummyroot". I'm not sure that exists in the stap model because I don't see it in the stap ODF. My suggestion is either change the name of the hardpoint for the thrusteffect to something you know exists or else just take out the Thrusteffect altogether.
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Tried everything you said, but still no luck. Ill post my log file when im home.
-
unit468
- Private Recruit
- Posts: 28
- Joined: Sat Jul 14, 2007 4:28 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Converting Vehicles
Ok, it might be a while before I can post it because I won't have access to it for a little while, but when I do I will post the log file. Thanks
