Page 1 of 2
Converting Vehicles
Posted: Fri Nov 09, 2007 8:36 pm
by unit468
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
Re: Converting Vehicles
Posted: Fri Nov 09, 2007 10:01 pm
by computergeek
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"
Re: Converting Vehicles
Posted: Fri Nov 09, 2007 10:15 pm
by unit468
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.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 4:33 pm
by Ace_Azzameen_5
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.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 5:07 pm
by trainmaster611
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
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.
and more things.
Then you also have to add contents that apply to flyer vehicles.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 5:48 pm
by ARC_Commander
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.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 6:42 pm
by The_Emperor
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.
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.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 7:18 pm
by unit468
Thank you everyone. Ill try everything out and let you know.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 8:05 pm
by unit468
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.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 9:34 pm
by trainmaster611
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.
Re: Converting Vehicles
Posted: Sat Nov 10, 2007 9:54 pm
by unit468
Thanks I'll try that.
Re: Converting Vehicles
Posted: Mon Nov 12, 2007 6:45 pm
by unit468
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.
Re: Converting Vehicles
Posted: Mon Nov 12, 2007 7:52 pm
by AceMastermind
Let's see the ODF contents and we'll help you debug it.
Re: Converting Vehicles
Posted: Mon Nov 12, 2007 10:20 pm
by unit468
Here is the odf. I used the trifighter odf for a stap.
Re: Converting Vehicles
Posted: Mon Nov 12, 2007 11:06 pm
by AceMastermind
Get rid of the weapon section you have and copy this into your ODF in place of it, then munge and try it out:
Re: Converting Vehicles
Posted: Tue Nov 13, 2007 10:18 pm
by unit468
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.
Re: Converting Vehicles
Posted: Tue Nov 13, 2007 10:34 pm
by AceMastermind
What errors are you getting in your BFront2.log after you run the game with the BF2_modtool.exe?
Re: Converting Vehicles
Posted: Tue Nov 13, 2007 10:43 pm
by trainmaster611
I'm 90% sure this is needed. Its collision references. But me being myself, I could be wrong.
Code: Select all
AISizeType = "SMALL"
//BuildingCollision = "p_sphere"
//BuildingCollision = "p_sphere1"
VehicleCollision = "p_sphere"
VehicleCollision = "p_sphere1"
SoldierCollision = "CollisionMesh"
OrdnanceCollision = "CollisionMesh"
Add those things and see if it helps. I'm pretty sure those lines are necessary.
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"
See those last two bits are exactly the same except for the DamageStopPercent value. I would take this part out
Code: Select all
DamageStartPercent = "55"
DamageStopPercent = "0.1"
DamageEffect = "com_sfx_vehiclesmoke_sc"
DamageEffectScale = "1"
DamageInheritVelocity = "0.0"
DamageAttachPoint = "hp_damage_2"
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.
Re: Converting Vehicles
Posted: Wed Nov 14, 2007 9:31 pm
by unit468
Tried everything you said, but still no luck. Ill post my log file when im home.
Re: Converting Vehicles
Posted: Sat Nov 17, 2007 11:26 am
by unit468
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