Author Topic: Warpin / Warpout speed  (Read 5830 times)

0 Members and 1 Guest are viewing this topic.

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Warpin / Warpout speed
I am working with high warpin/warpout speeds and having problems working out where to place the ships to avoid collisions, does anyone know the maths behind how the game handles deceleration from warp velocity?
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 
Re: Warpin / Warpout speed
I think the best thing you can do is to increase the $Forward Decel: value in ships.tbl. Otherwise your ships will slow down very slowly. If you don'twat this, you can also experimend with FRED (ex. create a mission in which ship warps in in the centre of the map along path of some small ships (like beacons) used as measure).
no.one

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: Warpin / Warpout speed
Why don't you use the warp type "Hyperspace " ? The engine will automatically place the ship to the right coordinate. In FRED, you need only to place the ship like usual.

 
Re: Warpin / Warpout speed
Just hopping into this topic, last time I messed with such features it didn't work. I once tried a faster warpin speed using the normal FS2 warpin. The ship never warped in, the portal simply stayed open the whole time. Then when I set it to hyperspace recently the ship never warped in in the first place. Guess I am asking is that are there values I need to be aware of when using different warpin types and speeds? This is just personal experiences, I never saved the tables and this was likely a few years ago.
I have created a masterpiece.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Warpin / Warpout speed
i was using

Code: [Select]
$Warpin Type: default
$Warpin Speed: 2000
$Warpout Type: default
$Warpout Speed: 2000

everything warped in ok but I couldn't figure out the distance to position the ship to stop it slamming into something or it flying strait through the battle area and off into the sun.  the ship was shedding speed but slowly so I was hoping someone could post me a workable formula or at least confirm which constants/variables are in play so i can research it properly.

Why don't you use the warp type "Hyperspace " ? The engine will automatically place the ship to the right coordinate. In FRED, you need only to place the ship like usual.

It's not quite the effect I was after, I wanted the player to be able to watch the ship slow from high speeds as though ending a high velocity transit and slowing to combat speeds
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 
Re: Warpin / Warpout speed
In that case, as I said $Forward Decel: is the key here. Just increase the value and the ship will slow down more quickly.
no.one

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: Warpin / Warpout speed
i was using

Code: [Select]
$Warpin Type: default
$Warpin Speed: 2000
$Warpout Type: default
$Warpout Speed: 2000

everything warped in ok but I couldn't figure out the distance to position the ship to stop it slamming into something or it flying strait through the battle area and off into the sun.  the ship was shedding speed but slowly so I was hoping someone could post me a workable formula or at least confirm which constants/variables are in play so i can research it properly.

Why don't you use the warp type "Hyperspace " ? The engine will automatically place the ship to the right coordinate. In FRED, you need only to place the ship like usual.

It's not quite the effect I was after, I wanted the player to be able to watch the ship slow from high speeds as though ending a high velocity transit and slowing to combat speeds

If you use hyperspace, just add Warpin speed/warpout speed (in seconds instead of meters/s).
Quote
$Warpin Speed:
FS2 Open 3.6.10:
Sets the speed at which the ship warps in for default warpin effect
Sets the time that the ships warp in (not the animation itself) takes for BTRL type warpin effects
Syntax: Float, meters per second or miiliseconds

  

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Warpin / Warpout speed
In that case, as I said $Forward Decel: is the key here. Just increase the value and the ship will slow down more quickly.

I am currently using 10 (seconds) on a 150 meter long warship and have experimented with distances ranging from 10,000-20,000 meters, which leads me to believe that $Max Velocity: and/or MOI is involved.
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Warpin / Warpout speed
Why don't you use the warp type "Hyperspace " ? The engine will automatically place the ship to the right coordinate. In FRED, you need only to place the ship like usual.

If you use that be prepared eat facefuls of bugs including, but not limited to, spontaneous ship self-destruction, ships dissapearing off the map, and random collisions between capships which are kilometers apart.
(´・ω・`)
=============================================================

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: Warpin / Warpout speed
Why don't you use the warp type "Hyperspace " ? The engine will automatically place the ship to the right coordinate. In FRED, you need only to place the ship like usual.

If you use that be prepared eat facefuls of bugs including, but not limited to, spontaneous ship self-destruction, ships dissapearing off the map, and random collisions between capships which are kilometers apart.

It's been a while I use this warp type. And I abuse it in each mission I fred. And I didn't really encounter any severe issue.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Warpin / Warpout speed
oh, trust me, I know what I'm talking about.

You put a ship along the vector of another ship warping in, you get the ship warping in hitting while warping in and dying. 100% reproduceable. Also ****s up sound for the rest of the mission. means that you can't use "near ship" as an arrival cure as you don't know if it will clip through something and totally **** your mission.

You put two ships warping in in formation and if they're within a km or two of each other, both will explode in the same way once they warp in. Bam.

Worse part about this? Doesn't happen on everyone's computer. And it never happens on debug. Ever.
I have stuff that explodes like this on mine, but not on my tester's and vice versa. Something to do with how processors handle floating point math or whatever.

I've experimented with it tons with different configurations and these are my findings.
My verdict is that Hyperspace is horribly bugged and only really works if you ensure all warping in ships have a clear vector, with a several kilometer berth.

I even have an image explaining exactly what happens. I still have the exact mission, and it happens every. single. time. Except on debug. Then it doesn't happen at all.

I have heard reports of the others happening which dissapeared when I spaced the ships out appropriately, thus, leading to the conclusion of what the culprit was. Simple deductive reasoning -> change one thing, problem goes away? That thing was causing the problem.
« Last Edit: July 06, 2011, 06:03:27 pm by Droid803 »
(´・ω・`)
=============================================================

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: Warpin / Warpout speed
oh, trust me, I know what I'm talking about.

You put a ship along the vector of another ship warping in, you get the ship warping in hitting while warping in and dying. 100% reproduceable. Also ****s up sound for the rest of the mission. means that you can't use "near ship" as an arrival cure as you don't know if it will clip through something and totally **** your mission.

Ah, this, I encounter some time in this mission. For me, it's a normal behavior. It would be cool if the warp in ship is able to detect any object in his course and take necessary manoeuver like slowing down.

You put two ships warping in in formation and if they're within a km or two of each other, both will explode in the same way once they warp in. Bam.

I didn't reproduce this one perhaps because there are placed ouside a km or 2.

Worse part about this? Doesn't happen on everyone's computer. And it never happens on debug. Ever.
I have stuff that explodes like this on mine, but not on my tester's and vice versa. Something to do with how processors handle floating point math or whatever.

Which processor are you using ? AMD or Intel ? For my case, I'm using a Intel Core i7.

I've experimented with it tons with different configurations and these are my findings.
My verdict is that Hyperspace is horribly bugged and only really works if you ensure all warping in ships have a clear vector, with a several kilometer berth.

I even have an image explaining exactly what happens. I still have the exact mission, and it happens every. single. time. Except on debug. Then it doesn't happen at all.

I have heard reports of the others happening which dissapeared when I spaced the ships out appropriately, thus, leading to the conclusion of what the culprit was. Simple deductive reasoning -> change one thing, problem goes away? That thing was causing the problem.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Warpin / Warpout speed
I'm on an Intel Core i7 as well. I would have considered it normal behavior if the sound didn't start being totally choppy once it happened. But it does, so there's either something wrong with sound, or with Hyperspace, and definitely something wrong with how they're interacting.
(´・ω・`)
=============================================================

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Warpin / Warpout speed
everything warped in ok but I couldn't figure out the distance to position the ship to stop it slamming into something or it flying strait through the battle area and off into the sun.  the ship was shedding speed but slowly so I was hoping someone could post me a workable formula or at least confirm which constants/variables are in play so i can research it properly.
In ship editor, lower the ship's initial velocity. The lower the velocity, the less distance the ship travels during warp-in. IIRC ship's current velocity does not apply to distance traveled during warp-out however. Odd inconsistency but there you have it.

 
Re: Warpin / Warpout speed
I've been messing with the hyperspace option today and thus far it seems rather difficult to um... 'control'. I keep trying to modify the values but I don't seem to be able to freakin slow down how fast the hyperspace warpin is. Its as if the time it takes to go from distance to the final location is 5 frames. As in it doesn't look like it decelerates or anything... it just 'appears'. Same when it leaves. It doesn't accelerate. Is this what is to be expected with this warpin type? Or, again, am I missing some kind of tables?
I have created a masterpiece.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Warpin / Warpout speed
That appears to be how it works for me.
(´・ω・`)
=============================================================

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: Warpin / Warpout speed
I've been messing with the hyperspace option today and thus far it seems rather difficult to um... 'control'. I keep trying to modify the values but I don't seem to be able to freakin slow down how fast the hyperspace warpin is. Its as if the time it takes to go from distance to the final location is 5 frames. As in it doesn't look like it decelerates or anything... it just 'appears'. Same when it leaves. It doesn't accelerate. Is this what is to be expected with this warpin type? Or, again, am I missing some kind of tables?

If you set a Warp in Speed, the value you put is in second. So, if you put 5, your ship need 5 sec to arrive to his final destination. The greater is the value, the ship will move slowly. But it appears it doesn't slow down as expected. I've just tried it yesterday just to confirm the behavior of this variable since I didn't really understand the description in the wiki.
IIRC, it was Chief who has implemented such feature, I think. :)

 

Offline swashmebuckle

  • 210
  • Das Lied von der Turd
    • The Perfect Band
Re: Warpin / Warpout speed
Hyperspace does indeed have some issues.  When a ship is set to jump out using hyperspace, it needs to be going a certain speed before the warpout will occur, just like with a normal subspace jump.  Unfortunately, there doesn't seem to be any way of controlling what that speed is, so ships generally slow down to a crawl before suddenly leaping out at a bajillion m/s...

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: Warpin / Warpout speed
Hyperspace does indeed have some issues.  When a ship is set to jump out using hyperspace, it needs to be going a certain speed before the warpout will occur, just like with a normal subspace jump.  Unfortunately, there doesn't seem to be any way of controlling what that speed is, so ships generally slow down to a crawl before suddenly leaping out at a bajillion m/s...

Is there a way for the warp in, to detect in the ship course if there is a potential collision ?

X---------------/---------------------<ship_in_hyperspace>

X is the final destination, the slash is an object (ship, planet, or whatever). If an object is detected, the ship will stop his hyperspace jump instead to continue to his final destination.

 
Re: Warpin / Warpout speed
In that case, as I said $Forward Decel: is the key here. Just increase the value and the ship will slow down more quickly.

I am currently using 10 (seconds) on a 150 meter long warship and have experimented with distances ranging from 10,000-20,000 meters, which leads me to believe that $Max Velocity: and/or MOI is involved.
What's your warp-in speed and max velocity?
no.one