Page 1 of 4

Destination ETA

Posted: Tue Nov 13, 2012 4:03 pm
by Wildeblood
Download Destination ETA OXP ver. 1.0

Wildefire Avionics - shamelessly ripping off Mika Spara since 2012 - introduce Destination ETA, an OXP for Oolite 1.76 that improves the functionality of the Advanced Space Compass, and is compatible with most HUDs. It was inspired by the distance and time to target function included in Aad-HUD, and still contains a few lines of code copied from that OXP (the vector calculations which are all Greek to me) at its heart. Like that, it adds a continually updated estimated time to arrival for your currently selected compass target which appears whenever you're at green alert. It also includes a spectroscope function which reveals the additional information about stars added by the Distant Suns OXP, but is fully usable without that.

Image

Image

Re: [WIPs] Destination ETA & Distant Suns

Posted: Tue Nov 13, 2012 5:28 pm
by spara
This looks nice. It's a really good idea to create a generic ETA oxp. A while ago I had an idea how such a thing could be done and I'm very interested to see if you got the same idea 8). In my opinion ETA should be a standard feature of the game. Maybe in some future version?

Re: [WIPs] Destination ETA & Distant Suns

Posted: Tue Nov 13, 2012 6:47 pm
by superbatprime
At last!

I bet this is awesome with the computer voice on.

Sooo... I guess this is destined for 1.77? (are those sunspots I see?)

Re: [WIPs] Destination ETA & Distant Suns

Posted: Tue Nov 13, 2012 10:13 pm
by pagroove
The beauty of this boards. I suggested an ETA in that other topic an a week later it's in progress. Fantastic work!.

I Also like the Distant Suns. I believe in famous planets 3 systems are having custom suns and Corona's. Look into the planet info.plist for that then you see.

Is the naming random for the stars or do you maintain a naming list? Anyway great work :D 8)

Re: [WIPs] Destination ETA & Distant Suns

Posted: Tue Nov 13, 2012 10:18 pm
by Thargoid
Does this play nicely with the Planetary Compass modification, or is there anything in that which would need tweaking? That doesn't do anything directly with the sun or its name so should be Ok I guess, but can you confirm?

Re: [WIPs] Destination ETA & Distant Suns

Posted: Wed Nov 14, 2012 3:27 am
by Wildeblood
superbatprime wrote:
I bet this is awesome with the computer voice on.
It updates every half-second, so the voice went "Ja-ja-ja-ja-ja-ja". I've added lots of code to detect if the voice is on and change the timing to once every ten seconds. If you pause the game and change the voice setting in flight it will immediately detect the change. It's pretty slick, if I do say so myself.
pagroove wrote:
Is the naming random for the stars or do you maintain a naming list?
If the star's name is set, it reads that. If not, it adds to the planet's name: e.g. "Lave" becomes "Lave Stella". (Does anyone have a preference between Aster, Astra or Stella?)
Thargoid wrote:
Does this play nicely with the Planetary Compass modification, or is there anything in that which would need tweaking?
Like my HUD scripts it announces beacon codes when you cycle through beacons mode; if Talkative Space Compass is present announcements are suppressed so you don't have two announcements per beacon. Making it work slickly with Planetary Compass should be easy.

Re: [WIPs] Destination ETA & Distant Suns

Posted: Wed Nov 14, 2012 7:31 am
by Thargoid
Wildeblood wrote:
Thargoid wrote:
Does this play nicely with the Planetary Compass modification, or is there anything in that which would need tweaking?
Like my HUD scripts it announces beacon codes when you cycle through beacons mode; if Talkative Space Compass is present announcements are suppressed so you don't have two announcements per beacon. Making it work slickly with Planetary Compass should be easy.
Sounds good - if there's bits that need to go into my code to smooth it, just let me know.

Will look at the sun_name variable you propose too and see if I can work that in.

Re: [RELEASE] Destination ETA

Posted: Wed Nov 14, 2012 9:54 am
by Duggan
I like this OXP, it adds a nice bit of informative extra functionality to the HUD. :)

Re: [RELEASE] Destination ETA

Posted: Wed Nov 14, 2012 4:00 pm
by Diziet Sma
Wildeblood wrote:
it adds a continually updated estimated time to arrival for your currently selected compass target which appears whenever you're at green alert.
Why only at green alert? Excepting combat, of course, most of the game is played on yellow alert. It would be handy to have it available then too..

(integration with the descriptions in Talkative Space Compass would be nice as well, if you ever feel inclined)

I'm loving the Distant Suns demo, btw! 8)

Re: [RELEASE] Destination ETA

Posted: Wed Nov 14, 2012 4:39 pm
by Wildeblood
Diziet Sma wrote:
Why only at green alert? Excepting combat, of course, most of the game is played on yellow alert.
Because there are too many other things popping up messages on screen at yellow alert, and no way of predicting or detecting them. There are a limited range of messages that appear at green alert and they can fairly reliably be detected to pause the ETA update while their messages display. It's less of a problem if you have speech on and the ETA isn't on screen continuously, of course.
Diziet Sma wrote:
(integration with the descriptions in Talkative Space Compass would be nice as well, if you ever feel inclined)
I don't understand that comment. If it's working correctly it shouldn't affect Talkative Space Compass at all, and what descriptions?

Re: [RELEASE] Destination ETA

Posted: Wed Nov 14, 2012 5:10 pm
by Diziet Sma
Wildeblood wrote:
Diziet Sma wrote:
Why only at green alert? Excepting combat, of course, most of the game is played on yellow alert.
Because there are too many other things popping up messages on screen at yellow alert, and no way of predicting or detecting them. There are a limited range of messages that appear at green alert and they can fairly reliably be detected to pause the ETA update while their messages display. It's less of a problem if you have speech on and the ETA isn't on screen continuously, of course.
Fair enough.. that makes sense.
Wildeblood wrote:
Diziet Sma wrote:
(integration with the descriptions in Talkative Space Compass would be nice as well, if you ever feel inclined)
I don't understand that comment. If it's working correctly it shouldn't affect Talkative Space Compass at all, and what descriptions?
Sorry.. badly phrased on my part.. there's no conflict.. just very mechanical sounding, less atmospheric names, by comparison.

Some examples of what I was getting at:

TSC: Main Station Nav Buoy
ETA: Beacon: N0100 Navigation Buoy

TSC: Witchpoint Beacon
ETA: Beacon: W0100 Navigation Buoy (Witchpoint)

TSC: Astromine Penal Colony JWN424-RE1
ETA:Beacon: Astromine

TSC: Collective SLAPU
ETA:Beacon: Factory (SLAPU)

TSC: Jump Gate (Spider Variant)
ETA: Beacon: Jump Gate

TSC: The Old Spacer
ETA: Beacon: B-Space Bar

Re: [RELEASE] Destination ETA

Posted: Wed Nov 14, 2012 5:50 pm
by Thargoid
I'd guess that one is looking at entity.name or entity.displayName and the other at entity.beaconCode perhaps?

As an aside, rather than using system.sun_name might it be more consistent to use either system.sun.name or system.sun.displayName (or .display_name if you prefer)? It would also perhaps make things a touch more future-proof if we end up with multiple suns available, although of course then I guess sun would become an array so would need recoding for anyway. It would also then dovetail in with Planetary Compass as well, although that doesn't do anything with the sun aside from what is already in the ASC.

Re: [RELEASE] Destination ETA

Posted: Wed Nov 14, 2012 9:02 pm
by Commander McLane
Thargoid wrote:
As an aside, rather than using system.sun_name
Actually, he's using system.info.sun_name.

Re: [RELEASE] Destination ETA

Posted: Thu Nov 15, 2012 2:19 am
by Diziet Sma
Thargoid wrote:
I'd guess that one is looking at entity.name or entity.displayName and the other at entity.beaconCode perhaps?
Yep.. now that I've taken a look to see how it's done, ETA is displaying whom.beaconCode and TSC is displaying whom.displayName, or a custom string in the case of beacons, etc.

Re: [RELEASE] Destination ETA

Posted: Thu Nov 15, 2012 3:06 am
by Wildeblood
Diziet Sma wrote:
Yep.. now that I've taken a look to see how it's done, ETA is displaying whom.beaconCode...
Then you will have also found the shipdata-overrides file. :D