Author Topic: Out of bounds distance  (Read 6687 times)

0 Members and 1 Guest are viewing this topic.

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Out of bounds distance
How far out, in meters, does the player have to go to get "out of bounds" and self-destruct?
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline Lorric

  • 212
Re: Out of bounds distance
Does Freespace 2 even have such a thing?

You could try finding out though. Take a fast ship, target something, go to full speed away from it and put time compression on 64X. Eat some food or something while you watch.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Out of bounds distance
Well, physics calculations etc will start to break at around 32 km out from mission start.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Lorric

  • 212
Re: Out of bounds distance
Well, physics calculations etc will start to break at around 32 km out from mission start.
That's not 32,000 in the ship distance in the bottom corner, is it? Because that's not much at all.

 

Offline Kobrar44

  • On Suspended Sentence
  • 29
  • Let me tilerape it for you!
    • Steam
Re: Out of bounds distance
This is a must-read on the topic. Retail distance was quite realistic and there even are messages from command about leaving the combat zone. After certain point the ship was self-destructed. Those got massively increased at some point.
Oh guys, use that [ url ][ img ][ /img ][ /url ] :/

 

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Re: Out of bounds distance
Interesting. I was curious how far away something had to be to make it inaccessible (I think the Knossos in Into the Lion's Den is far enough out.
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Out of bounds distance
A-Ha! Found the limits!

There are three defines that govern this:

Code: [Select]
#define PLAYER_MAX_DIST_WARNING 700000 // distance in KM at which player gets warning to return to battle
#define PLAYER_DISTANCE_MAX_WARNINGS 3 // maximum number of warnings player can receive before mission ends
#define PLAYER_MAX_DIST_END 750000 // distance from starting loc at which we end mission

Basically, if you move 700000 units from the world origin, you'll get warned. Move out beyond 750k units, and you'll get killed. Very, very messily. What happens is that a bomb will go off hitting the player ship with 10 times its current hull value as damage, making sure that nothing remains (Incidentally, this is also why cheating yourself invulnerable will allow you to get past this, as the damage will not be applied to your ship).
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Lorric

  • 212
Re: Out of bounds distance
This is a must-read on the topic. Retail distance was quite realistic and there even are messages from command about leaving the combat zone. After certain point the ship was self-destructed. Those got massively increased at some point.
Wow. That is quite something indeed.

 

Offline Lorric

  • 212
Re: Out of bounds distance
A-Ha! Found the limits!

There are three defines that govern this:

Code: [Select]
#define PLAYER_MAX_DIST_WARNING 700000 // distance in KM at which player gets warning to return to battle
#define PLAYER_DISTANCE_MAX_WARNINGS 3 // maximum number of warnings player can receive before mission ends
#define PLAYER_MAX_DIST_END 750000 // distance from starting loc at which we end mission

Basically, if you move 700000 units from the world origin, you'll get warned. Move out beyond 750k units, and you'll get killed. Very, very messily. What happens is that a bomb will go off hitting the player ship with 10 times its current hull value as damage, making sure that nothing remains (Incidentally, this is also why cheating yourself invulnerable will allow you to get past this, as the damage will not be applied to your ship).
Interesting. :)

I think Colony Wars on PS1, if you ignore the warnings, when you hit the boundary, instead of your brutal destruction, control of your ship is taken away from you, and you are forcibly turned around and flown back into the combat area for a good few seconds before you get control back. :D

 

Offline InsaneBaron

  • 29
  • In the CR055H41R2
Re: Out of bounds distance
Fascinating...

So I need to make a 700,000 meter line of Sathani...

Just kidding :P

That also explains why I never got a "Turn Around Pilot" message. Who on earth has enough time to get Seven Hundred Kilometers from the start point? (sans editing your Ulysses speed)
« Last Edit: February 11, 2014, 02:32:00 pm by InsaneBaron »
Doesn't matter what the press says. Doesn't matter what the politicians or the mobs say. Doesn't matter if the whole country decides that something wrong is something right. This nation was founded on one principle above all else: the requirement that we stand up for what we believe, no matter the odds or the consequences. When the mob and the press and the whole world tell you to move, your job is to plant yourself like a tree beside the river of truth, and tell the whole world — "No, you move." - Captain America

InsaneBaron's Fun-to-Read Reviews!
Blue Planet: Age of Aquarius - Silent Threat: Reborn - Operation Templar - Sync, Transcend, Windmills - The Antagonist - Inferno, Inferno: Alliance

 

Offline Lorric

  • 212
Fascinating...

So I need to make a 700,000 meter line of Sathani...

Just kidding :P

That also explains why I never got a "Turn Around Pilot" message. Who on earth has enough time to get Seven Hundred Kilometers from the start point? (sans editing your Ulysses speed)
I guess it wouldn't take long at 64X compression. I might just have to try it, and see what command has to say to me. I presume they self destruct your ship as a traitor.

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
A-Ha! Found the limits!

There are three defines that govern this:

Code: [Select]
#define PLAYER_MAX_DIST_WARNING 700000 // distance in KM at which player gets warning to return to battle
#define PLAYER_DISTANCE_MAX_WARNINGS 3 // maximum number of warnings player can receive before mission ends
#define PLAYER_MAX_DIST_END 750000 // distance from starting loc at which we end mission

Basically, if you move 700000 units from the world origin, you'll get warned. Move out beyond 750k units, and you'll get killed. Very, very messily. What happens is that a bomb will go off hitting the player ship with 10 times its current hull value as damage, making sure that nothing remains (Incidentally, this is also why cheating yourself invulnerable will allow you to get past this, as the damage will not be applied to your ship).

I wonder if that really serves any meaningful purpose? After all, you won't reach those kind of limits unless you specifically set out in search of the boundary, and getting blown to bits at an arbitrary point is rather less interesting than watching floating-point math go bonkers.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Not as far as I am aware. I mean, numerical stability is definitely a concern here, the game will be unplayable if you move too far out, but I think the main reasons for doing this were tradition and keeping the players concentrated on the mission area.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
I just don't see how it really achieves that. If you're 700000km away, you've obviously already decided to forego trying to play the mission properly in favor of toying with the game's limits. The radius of the mission area is pretty much always going to be about 10000x smaller, after all.

Of course, a possible explanation would be that the limit used to be much much smaller and at some point it wasn't really wanted anymore and it got bumped to a ludicrous value instead of being removed entirely.

...or is it 700km instead of 700000km? The code comment said km, E said units.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
It is units (aka meters). The game checks the distance between the player's position and the world origin, and compares it against that value.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Remember that the limits were multiplied tenfold by the SCP. In a retail mission it wouldn't be that hard to get yourself 70km from origin.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Mongoose

  • Rikki-Tikki-Tavi
  • Global Moderator
  • 212
  • This brain for rent.
    • Steam
    • Something
Now's the part where we ask the coders to implement a relative coordinate system in order to do away with floating-point inaccuracy, and then time how long it takes until they hunt us down and kill us. :D

 

Offline Lorric

  • 212
I wonder if this has any impact on Wing Commander Saga? You travel huge distances from the start point in that game.

 

Offline niffiwan

  • 211
  • Eluder Class
Now's the part where we ask the coders to implement a relative coordinate system in order to do away with floating-point inaccuracy, and then time how long it takes until they hunt us down and kill us. :D

Or just replace the floating point coordinate system with an integer one...  :P
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Luis Dias

  • 211
Double-precision floating-point.

Because why not.