[Release] Updating TSC 1.6

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

Moderators: another_commander, winston

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

[Release] Updating TSC 1.6

Post by spara »

Now that Wildeblood has shown me the way, I have taken the ETA and distance functionality from Aad-hud and release it as a separate oxp. This oxp gives you an enhanced Talkative Space Compass.
Updating TSC OXP ver 1.6 (31.01.2013)

Author: spara (Mika Spåra), with toggle-functionality added by GGShinobi

_Description_

This oxp enhances Talkative Space Compass by adding distance and time to target estimate information to it.

By default this oxp

* constantly shows compass information when on state green
* shows current compass targets information when switching to front view
* measures distance as Ostronomical Units (OU). One OU is the distance of the mainplanet and sun. After OU is defined for a Jameson, it stays constant over saves.

By editing variables from script.js file, user can

* change the frequency of constant update
* change distance unit shown
* choose different unit basis
* toggle "distance unit permanency" on or off
* toggle "constant update on green" on or off
* toggle "show target when switching" to front view on or off
* toggle "updating TSC can Be Toggled On/Off via priming" on or off

When toggling functionality is on (off by default), updating functionality can be toggled as follows:

ship-status: status green:

* E.T.A. is activated: Updating TSC works exactly like the old, non-toggleable version, which means: When you are on green and come to yellow or red, the update will stop. It will resume when you are on green again.
* E.T.A. is deactivated: You won't get further updates until you reactivate it.

ship-status: status red or status yellow:
* E.T.A. is activated: You get updates, even if you are on red or yellow. If you come to condition green, the updates continue, but from that moment on it will work just like the old, non-toggleable version. Which means, if you come to red or yellow again, updates will be temporarily stopped, until condition is green again.
* E.T.A. is deactivated: You won't get further updates until you reactivate it.

_Requirements_

* Don't install Talkative Space Compass

_Installing_

Install the OXP by copying Updating_target_info_1.6.oxp to your AddOns-folder.

_Credits_

* Talkative Space Compass by cim
Image

Download (for Oolite 1.77): https://www.box.com/s/52g8zptxrbdwlopplf5q
Download (for Oolite 1.76.1): https://www.box.com/s/nk1tqwecu9n8mzss41pq
Last edited by spara on Thu Jan 31, 2013 4:18 pm, edited 11 times in total.
User avatar
Tichy
---- E L I T E ----
---- E L I T E ----
Posts: 345
Joined: Wed Jul 11, 2012 5:48 pm

Re: [Release] Updating TSC 1.0

Post by Tichy »

Great! Thank you :)
User avatar
Rese249er
---- E L I T E ----
---- E L I T E ----
Posts: 647
Joined: Thu Jun 07, 2012 2:19 pm
Location: Well, I WAS in G3...

Re: [Release] Updating TSC 1.0

Post by Rese249er »

Downloaded! Seeing a lot of cool HUD innovations lately!
Got all turned around, lost my nav connection... Where am I now?
User avatar
superbatprime
Dangerous
Dangerous
Posts: 120
Joined: Tue Oct 09, 2012 10:09 am
Location: Location, Location.

Re: [Release] Updating TSC 1.0

Post by superbatprime »

I find that other messages (news report alerts etc) that occur while in green alert only flash up for a split second, far too short a duration to read most of them.

Is it possible to have them "interrupt" the compass display for a little longer?
So then I says to him, I says "naw dude, Oolite ain't no Space Opera... Oolite is Space Rock and Roll!"
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Updating TSC 1.0

Post by spara »

superbatprime wrote:
I find that other messages (news report alerts etc) that occur while in green alert only flash up for a split second, far too short a duration to read most of them.

Is it possible to have them "interrupt" the compass display for a little longer?
I'd say that generic interrupting for messages is not possible. That's a drawback of this :( . Only

Code: Select all

this.shipTargetLost, this.shipTargetAcquired, this.shipTargetLost, this.shipScoopedOther, this.shipKilledOther, this.viewDirectionChanged
events are catched and updating is interrupted. If you want to slow down the update interval, the correct line to change is line 59. Change 0.5 to something higher. That might help a bit.
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Updating TSC 1.1

Post by spara »

:oops: Forgot to check for the existence of ASC. Fixed in version 1.1.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2275
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: [Release] Updating TSC 1.1

Post by Wildeblood »

spara wrote:
:oops: Forgot to check for the existence of ASC. Fixed in version 1.1.
"Fixed"? Why? Why does it matter?
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Updating TSC 1.1

Post by spara »

Wildeblood wrote:
spara wrote:
:oops: Forgot to check for the existence of ASC. Fixed in version 1.1.
"Fixed"? Why? Why does it matter?
Good question actually. Somehow I assumed that talkative space compass is a feature of the asc. Is it not? I'll have to check.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: [Release] Updating TSC 1.1

Post by Diziet Sma »

It is.. the basic compass only indicates the Planet, and, when you get close enough, the Station. The ASC is needed for all other objects. It's correct behaviour, IMO, that the TSC requires the ASC, as should the ETA if it's going to work on anything other than the Planet and Station.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: [Release] Updating TSC 1.1

Post by pagroove »

Thank you for releasing this OXP. It is a ship essential IMO.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Updating TSC 1.2

Post by spara »

New version (1.2) is up. Now this oxp is a bit more configurable. It can be configured by user to work like the original TSC with extra info or you can use it like before. There is also a new feature that shows current ASC info when you switch to front view, when on state yellow.
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Re: [Release] Updating TSC 1.2

Post by Cmd. Cheyd »

Error reported today:
15:30:56.464 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Updating_TSC 1.2): TypeError: whom is null
15:30:56.464 [script.javaScript.exception.unexpectedType]: ../AddOns/Updating_TSC_1.2.oxp/Config/script.js, line 72.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2275
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: [Release] Updating TSC 1.2

Post by Wildeblood »

Cmd. Cheyd wrote:
Error reported today:
15:30:56.464 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Updating_TSC 1.2): TypeError: whom is null
15:30:56.464 [script.javaScript.exception.unexpectedType]: ../AddOns/Updating_TSC_1.2.oxp/Config/script.js, line 72.
That shouldn't be possible in 1.76.1, were you using trunk?
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Re: [Release] Updating TSC 1.2

Post by Cmd. Cheyd »

Oh, yeah... Sorry, I forgot. Yes, it was a Trunk build.
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] Updating TSC 1.2

Post by spara »

Ok. Thanks for clarification Wildeblood. If it's a trunk thing, then I'll let the oxp be as it is for the time being. Is that "whom is null" a bug or a feature?
Post Reply