Space Fighter Issues + Questions

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
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Space Fighter Issues + Questions

Post by Fiodis »

I recently made a custom fighter, with it's own mesh and weapons, etc. Now, when I speed up, there aren't any contrail effects, even though they are referenced in the ODF clearly. Also, when it is shot, it spirals out of control as usual, but unless it collides with something, it keeps going. It never just explodes on its own. So, if you are shot and you don't hit anything, you keep falling and spiraling forever. How can I fix this?
Last edited by Fiodis on Wed Aug 12, 2009 6:05 pm, edited 1 time in total.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Indestructable Fighter + missing contrails

Post by Maveritchell »

Fiodis wrote:I recently made a custom fighter, with it's own mesh and weapons, etc. Now, when I speed up, there aren't any contrail effects, even though they are referenced in the ODF clearly. Also, when it is shot, it spirals out of control as usual, but unless it collides with something, it keeps going. It never just explodes on its own. So, if you are shot and you don't hit anything, you keep falling and spiraling forever. How can I fix this?
Does it have the necessary hardpoints for the contrails to be attached to? Are you sure the contrails aren't just located in some odd location?

You also need to have chunk geometry for your flyer if you want it to explode without hitting something first.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Space Fighter Issues + Questions

Post by Fiodis »

Ah, thanks for the chunk tip. It does have two hp_contrails that are referenced correctly in the ODF. They are nulls. I also use them for two engine effects. Is that a problem? Can an hp be used for only one effect at a time?

Also, I renamed this thread because I have a few other questions about fighters and felt it'd be silly to litter the forum with fighter threads.

How do you control the height a flyer rises when you first lift off? I want to set this to be 0, so that it just shoots off right away without rising. I tried

Code: Select all

TakeoffHeight           = 0
That didn't seem to have any effect, however.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Space Fighter Issues + Questions

Post by Frisbeetarian »

Hidden/Spoiler:
Try setting TakeoffHeight and LandedHeight to the same thing.

source:http://www.secretsociety.com/forum/down ... meters.txt
EDIT: Actually, I think you just forgot the quotes around the zero.

source:http://www.secretsociety.com/forum/down ... _Notes.txt
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Space Fighter Issues + Questions

Post by [RDH]Zerted »

If you don't mind me adding a question, does a negative value work or does the game just crash?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Space Fighter Issues + Questions

Post by Fiodis »

I put quotes around the 0 and nothing changed; it still rises a bit. I'll try a negative value.

EDIT - A negative value, when I hopped in and tried to lift off, resulted in the screen (Except the HUD) turning pitch-black and the game freezing. When I let some AI try it while I watched, they hopped in, then when they tried to lift off the ship exploded. I laughed at that; it seemed almost like a sleeper bomb or something. Needless to say it was the last thing I was expecting.

No related messages in the error log, and no munge errors.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Space Fighter Issues + Questions

Post by Frisbeetarian »

Well, then, how about my pre-edit?
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: Space Fighter Issues + Questions

Post by bobfinkl »

You have to edit these values to look like this:

Code: Select all

TakeoffTime             = 0.0009
TakeoffSpeed            = 0.0009
TakeoffHeight           = 0.0009
LandedHeight            = 0.0009
These must be above 0 or it simply doesn't work.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Space Fighter Issues + Questions

Post by Maveritchell »

bobfinkl wrote:You have to edit these values to look like this:

Code: Select all

TakeoffTime             = 0.0009
TakeoffSpeed            = 0.0009
TakeoffHeight           = 0.0009
LandedHeight            = 0.0009
These must be above 0 or it simply doesn't work.
As a matter of clarification, TakeOffTime (and TakeOffSpeed) is what really matters, not TakeOffHeight. I'm not 100% sure what effect the "-Heights" do have, but they don't seem to have a noticeable effect on the actual takeoff height.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Space Fighter Issues + Questions

Post by Fiodis »

Bobfinkl's values resulted in me being unable to fly forward or land, just turn in place. A few adjustments later, though, I've gotten what I want. Thanks.

Now, about the nulls. Is it that you can only use a null for on effect at a time?
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: Space Fighter Issues + Questions

Post by DarthD.U.C.K. »

no
the each contrailnull is used for 2 contraileffects as an example
(the contrail wont work otherwise)
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Space Fighter Issues + Questions

Post by Fiodis »

I didn't completely understand that. You mean that each contrail null can only be used for contrail effects?
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: Space Fighter Issues + Questions

Post by DarthD.U.C.K. »

no, i took a contrailnull as an example for a hardpoint thats used for than once
because all contrailhardpoints have two contraileffects attached to them
Post Reply