Oooops ... how far can I go?

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
RockDoctor
Deadly
Deadly
Posts: 254
Joined: Sat May 01, 2010 9:05 pm
Location: Scotland
Contact:

Oooops ... how far can I go?

Post by RockDoctor » Thu Feb 28, 2019 1:33 am

Slight technical error of forgetting to pause the game, going to make and eat supper, brew some coffee, catch up on the insanities of Twitter on the phone, blah blah blah ... and for several hours of real time I've been torus-driving out of the system. I can't even recognise the star - I'm just having to trust the compass.

Which raises several questions -
  • * how far out can you go from the star before something overflows
    * since we use units of km in system (don't we? I'll have to check that) and ly on the galaxy map ... will you fly into another system before the overflow. (Ummm 1 ly is 300,000 km/s for 30 Ms , so around 9000 Tm to the ly? Wiki tells me "9.46 x 10^12 km" which ... agrees well enough.)
    * how long would that take in game time / real time?
    * apart from travel time - a problem we face in the real world - there is also an issue of the system being 3d, but the galaxy-map being essentially flat, so I don't see any option for doing STL travel in Oolite. But ... it's making me think interesting questions as I *hope* that a star brightens in my direction of travel. How much do I trust the compass.
Without having a developer build - is there a way I can interrogate the game state to find out, for example, my DistanceFromSun value?

Oh, a pixel flickers as I roll. Is that home? OK - system full of pirates, not Lovely Lave. But I've done the "wandering in a dark forest on a stormy night with a broken torch" thing in the real world, and any glimmer gets seized on.
--
Shooting aliens for fun and ... well more fun.
"I'm just stepping out of the airlock for a breath of fresh vacuum. I may be gone some time."

User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 1343
Joined: Thu Jun 20, 2013 10:22 pm

Re: Oooops ... how far can I go?

Post by Redspear » Thu Feb 28, 2019 2:02 am

Don't know for sure but I'd be very surprised if the following wasn't true...

Each system is a distinct game environment. You can't fly directly from one to another without using a wormhole.

This is one of the illusions of non-player centricity. Not just the point of view, but the action (all of it) is in whatever system the player happens to be in. Thus a 2D map of a 3D 'galaxy' is all that is required.

Whilst it's true that a computer could carry out all the flights and combats of other ships in the other 2,000 odd systems, it would be horribly inefficient for what is supposed to be a low-spec game. So instead it just generates them for whichever system the player happens to be in. The illusion that this isn't so only requires that the game remembers the destination of any ships leaving the system.

If I'm wrong on any of the above then I look forward to being enlightened.
"With our thoughts, we make the world" :-) - - - Game too slow for you? Masslock Compensators - - - Trouble getting out of trouble? Indestructible Injectors

User avatar
phkb
Commodore
Commodore
Posts: 2413
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: Oooops ... how far can I go?

Post by phkb » Thu Feb 28, 2019 3:32 am

RockDoctor wrote:will you fly into another system before the overflow.
I don't think so. You can go on torus forever and never get to another system. I don't know if I've heard any (handwavium) logic to describe this, but I believe it's correct. The distance traveled has been extended somewhat (a considerable somewhat) with the introduction of floating point precision co-ordinates a few versions ago, but otherwise, eventually, you'll run out of numbers without seeing any other systems.

The only trigger to move the player into a new system is a witchspace jump.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5397
Joined: Wed Feb 28, 2007 7:54 am

Re: Oooops ... how far can I go?

Post by another_commander » Thu Feb 28, 2019 8:16 am

RockDoctor wrote:
Thu Feb 28, 2019 1:33 am
* how far out can you go from the star before something overflows
According to the IEEE 754-1985 standard, the max double precision value is ±1.80e308. I believe this will provide you with many many real time years of torus cruising before anything overflows.

User avatar
Cmdr James
Commodore
Commodore
Posts: 1267
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Re: Oooops ... how far can I go?

Post by Cmdr James » Sat Mar 02, 2019 11:10 am

If I remember right (and I may well not do) then some weird things happen when you are very far from the station due to rounding errors and pretty much all the ships in the system crash into each other. This isnt an overflow as such of course.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5397
Joined: Wed Feb 28, 2007 7:54 am

Re: Oooops ... how far can I go?

Post by another_commander » Sat Mar 02, 2019 1:10 pm

Cmdr James wrote:
Sat Mar 02, 2019 11:10 am
If I remember right (and I may well not do) then some weird things happen when you are very far from the station due to rounding errors and pretty much all the ships in the system crash into each other. This isnt an overflow as such of course.
This had been the case before the introduction of double precision for vectors and coordinates, back in 2013. See. https://github.com/OoliteProject/oolite/issues/22. It is no longer an issue.

UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1103
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Oooops ... how far can I go?

Post by UK_Eliter » Fri Apr 05, 2019 9:41 am

Had you had the Deep State Pirates expansion pack installed, you would by now be toast!

User avatar
Phasted
Competent
Competent
Posts: 50
Joined: Wed Jun 09, 2010 3:56 pm

Re: Oooops ... how far can I go?

Post by Phasted » Wed Aug 21, 2019 10:11 am

RockDoctor wrote:
Thu Feb 28, 2019 1:33 am
Without having a developer build - is there a way I can interrogate the game state to find out, for example, my DistanceFromSun value?
I don't know if your questions were answered by anyone else, but:
Distance between any two entities:
entityA.position.distanceTo(EntityB)

Or (more specific):

player.ship.position.distanceTo(system.sun)
RockDoctor wrote:
Thu Feb 28, 2019 1:33 am
Will you fly into another system?
No. Never. There is only one Player object and only one System object. The properties of the System object change only when the Player jumps from one "system" to another (or if the Sun goes nova..). That is the only way to "travel" in the Ooniverse.

And you can trust your compass.

UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1103
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Re: Oooops ... how far can I go?

Post by UK_Eliter » Wed Aug 21, 2019 3:28 pm

The only way to travel: it's a shame. I imagine the game could be changed (with some work) to allow allow a manual switch from one system to another. If so, then when one leaves one's ship running its jump drive in deep space and comes back, what, a few days later (or less than that if one is using the time speedup cheat) - then one would be in another system.

Post Reply