[Release] Navigation MFD

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Navigation MFD 1.3.2

Post by spara »

spara wrote:
* Snitched a better padding method from oolite-contracts-helpers.js.
Careless adaptation caused ugly squeezing :( . Fixed in 1.3.3.
Anonymissimus
---- E L I T E ----
---- E L I T E ----
Posts: 299
Joined: Mon Apr 27, 2015 9:03 pm

Re: [Release] Navigation MFD 1.3.3

Post by Anonymissimus »

The hyperdrive status displays "out of range" in case that the target system is several jumps away, so, while it is correct, this would be much more useful if it used the "next system in the sequence of jumps to the final destination" - logic.
warning sound if a missile is inbound: Missile warning
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Release] Navigation MFD 1.3.3

Post by Cody »

Anonymissimus wrote:
The hyperdrive status displays "out of range" in case that the target system is several jumps away...
Using the route planner? That kinda changed a couple of things when it was implemented.
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!
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Navigation MFD 1.3.3

Post by spara »

Anonymissimus wrote:
The hyperdrive status displays "out of range" in case that the target system is several jumps away, so, while it is correct, this would be much more useful if it used the "next system in the sequence of jumps to the final destination" - logic.
Thanks for the heads up :) . I'll put it to my todo list.
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Navigation MFD

Post by spara »

And done. Version 1.3.4 fixes the target system to show the next real jump destination in Oolite 1.82, when ANA is set to route.
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Navigation MFD

Post by spara »

While I was at it, I decided to simplify things a bit. Hence another update (1.3.5) in such a short time. Originally (all the way from the original Aad-HUD and it's distance calculation functionality) I tried to fulfill all requests for different kinds of ways to calculate distances. As a result the oxp was infested with some deprecated and very likely non-functional settings. These have now been cleaned out. Left in are two variables to set the unit and unit basis.

* this.$distUnit. This sets the unit shown in MFD. By default set to "OU" (ostronomical unit). Set to "km" or "klicks" or whatever desired.
* this.$ostronomicalUnit. This sets the basis for one unit in meters. By default set to "906044" which is the distance between Sun and Planet in Lave in an unmodified game. For kiloometers, set to 1000.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Release] Navigation MFD

Post by Cody »

spara wrote:
And done. Version 1.3.4 fixes the target system to show the next real jump destination in Oolite 1.82, when ANA is set to route.
Muchas gracias, amigo!
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!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Release] Navigation MFD

Post by Cody »

I think this belongs here:

Code: Select all

01:40:48.936 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (navi_mfd 1.3.5): Error: System.infoForSystem: Invalid arguments (6, undefined) -- expected galaxy ID and system ID.
01:40:48.936 [script.javaScript.exception.ooliteDefined]:       E:\Oolite-Trunk/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.spara.navigation_mfd.oxz/Config/script.js, line 120.
01:58:40.967 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (navi_mfd 1.3.5): Error: System.infoForSystem: Invalid arguments (6, undefined) -- expected galaxy ID and system ID.
01:58:40.967 [script.javaScript.exception.ooliteDefined]:       E:\Oolite-Trunk/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.spara.navigation_mfd.oxz/Config/script.js, line 120.
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!
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Navigation MFD

Post by spara »

Thanks Cody. Fix one thing, break another :oops: . Next try (1.3.6). On the other hand, while I was out there, I found something else to fix/break too.

* fix the bug Cody reported.
* upper block was not working correctly in interstellar space. now it does.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Release] Navigation MFD

Post by Cody »

Another one, amigo:

Code: Select all

13:15:33.876 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (navi_mfd 1.3.6): TypeError: system.info.routeToSystem(hyperSystemObj, mode) is null
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!
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Navigation MFD

Post by spara »

Cody wrote:
Another one, amigo...
Thanks Cody. Version 1.3.7 should fix this problem. It's the route planner that's giving the headache here. The main problem is that when you're in interstellar space, the planner calculates the route from your previous location. Even the fuel calculation in f6 screen is misleading when the planner is on (calculated from the previous system).
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Release] Navigation MFD

Post by Cody »

spara wrote:
It's the route planner that's giving the headache here.
<nods> Yeah, the RP has screwed-up the hyperspace destination in my hud too - but the RP is very, very useful.
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!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Release] Navigation MFD

Post by Cody »

This MFD sometimes tells fibs! <grins> It's probably only out by a second or two - and it is very occasional.
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!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [Release] Navigation MFD

Post by Cody »

Running the latest trunk nightly...

Code: Select all

23:26:14.908 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (navi_mfd 1.3.7): Error: System.infoForSystem: Invalid arguments (2, undefined) -- expected galaxy ID and system ID.
23:26:14.908 [script.javaScript.exception.ooliteDefined]:       E:\Oolite-Trunk/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.spara.navigation_mfd.oxz/Config/script.js, line 127.
... probably related to me having just been in interstellar space.
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!
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Navigation MFD

Post by spara »

Cody wrote:
Running the latest trunk nightly...

Code: Select all

23:26:14.908 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (navi_mfd 1.3.7): Error: System.infoForSystem: Invalid arguments (2, undefined) -- expected galaxy ID and system ID.
23:26:14.908 [script.javaScript.exception.ooliteDefined]:       E:\Oolite-Trunk/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.spara.navigation_mfd.oxz/Config/script.js, line 127.
... probably related to me having just been in interstellar space.
Thanks, bug found and fixed in 1.3.8. The culprit was plotting the route to/from an isolated system. Haven't got around checking your previous report. If I'm lucky, this might do something about that too. Most likely not, but one can always hope :) .
Post Reply