Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Improvements to the Advanced Navigational Array

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
jpab
Average
Average
Posts: 8
Joined: Thu Dec 24, 2009 1:56 am

Improvements to the Advanced Navigational Array

Post by jpab »

Recently I've started taking passenger contracts, for which it seems you typically have to travel to quite distant systems, and for which the Advanced Navigational Array is quite useful.
However, there are a few things about it that I think can make it more annoying to use than it needs to be, so I thought I'd throw some suggestions out here. I'm prepared to dive into the code to implement these changes myself, but I'd like to get some feedback first (or if one of the core developers feels like doing it themselves that would be great :P).
So, here are the changes I'd like to see:
  1. Make the connection overlay a toggle rather than a hold-to-view button (it's doubly annoying because by default it requires you to hold shift to use it as well).
  2. When calculating the optimal route, use weighted shortest-path, with travel time as the edge weight, so that the resultant route is the quickest route rather than simply having the fewest hops. Alternatively (better but more work), provide an interface to switch between the two different methods of calculating the route.
  3. When the user selects a target to plan a route to, the hyperspace target should be set to the next system along the route, not to the final system (otherwise you have to pick your target system, see which system is next on the route it plots for you, and then select that system).
    As an extension to this, it would be nice to save the final target persistently, and when you arrive in a new system, re-plot the route to the final system and set the hyperspace target to the next system on the route. This way, you don't have to go back into the route planner at all, you can just jump from system to system -- of course, an advanced pilot will probably want to go into the nav. computer each time to work out if they can make some extra profit trading along the route, but sometimes you don't want the hassle.
John B
User avatar
Greyman
Dangerous
Dangerous
Posts: 98
Joined: Thu Jun 05, 2008 5:54 pm
Location: somewhere in the Bavarian outback

Post by Greyman »

Hello,

as far as I'm concerned I really like your suggestions. :-)

OoLife would be quite a bit easier and more comfortable. Maybe your suggestions could be implemented as a "Really Advanced Navigation Computer" thingy?
Get the Oolite Keymapper for Mac here!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16079
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Improvements to the Advanced Navigational Array

Post by Cody »

jpab wrote:
When calculating the optimal route, use weighted shortest-path, with travel time as the edge weight, so that the resultant route is the quickest route rather than simply having the fewest hops. Alternatively (better but more work), provide an interface to switch between the two different methods of calculating the route.

As an extension to this, it would be nice to save the final target persistently, and when you arrive in a new system, re-plot the route to the final system and set the hyperspace target to the next system on the route.

John B
Both of the above features are in trunk, so I presume will be in 1.74
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
jpab
Average
Average
Posts: 8
Joined: Thu Dec 24, 2009 1:56 am

Re: Improvements to the Advanced Navigational Array

Post by jpab »

El Viejo wrote:
jpab wrote:
When calculating the optimal route, use weighted shortest-path, with travel time as the edge weight, so that the resultant route is the quickest route rather than simply having the fewest hops. Alternatively (better but more work), provide an interface to switch between the two different methods of calculating the route.

As an extension to this, it would be nice to save the final target persistently, and when you arrive in a new system, re-plot the route to the final system and set the hyperspace target to the next system on the route.

John B
Both of the above features are in trunk, so I presume will be in 1.74
Well, that's nice :)

Actually, before checking back here again I had literally just been looking through the code to see what would be necessary and found that it already (in trunk) provides fewest-jumps or shortest-time routes, depending on whether the CTRL key is held down or not.

That just leaves the "easy" one of toggling the thing on and off instead of holding down a key to use it... do you know if that's already done too?

John B
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16079
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Improvements to the Advanced Navigational Array

Post by Cody »

jpab wrote:

That just leaves the "easy" one of toggling the thing on and off instead of holding down a key to use it... do you know if that's already done too?

John B
I doubt it somehow, but one of the Minds will know.
I'm just a player... I only pilot the things.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6580
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

The time optimized route already exists in the trunk and will be available for 1.74.There are no plans to change the interface for now. The toggle mode has been already suggested recently (not in this forum), but it was decided that the current interface is more flexible and was left as is. The least-number-of-jumps route will be as is, with the time-optimized route switchable by holding down Ctrl together with the rest of the Advanced Nav Array combination. If one wants, one can assign a different key to the Nav Array, a key that does not require Shift to be pressed, to simplify matters. Holding Ctrl for time optimized route allows rapid switching between the two operating modes of the Array.

Oolite also now remembers selected destinations in trunk, so I guess the above requests should be reasonably well covered in 1.74.

Edit: Totally ninja'd again. I'm getting old :-)
Post Reply