Compass target info

An area for discussing new ideas and additions to Oolite.

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

Compass target info

Post by spara »

Hello.

Now that there are OXPs that bring ETA and distance to target to hud I would like to propose something futher.

In my visions there is an info-box in the hud that would show all sorts of target information including ETA, distance, type etc and a small rotating object. When there is a target lock, info-box would show that target otherwise it would show space compass target.

Oxp wise this would require scriptable textual hud elements and the small rotating object. Especially the rotating object would be real nice :D.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Compass target info

Post by Wildeblood »

spara wrote:
Now that there are OXPs that bring ETA and distance to target to hud...
And other things, too. :wink:
spara wrote:
In my visions there is an info-box in the hud that would show all sorts of target information including ETA, distance, type etc and a small rotating object. When there is a target lock, info-box would show that target otherwise it would show space compass target.

Oxp wise this would require scriptable textual hud elements and the small rotating object. Especially the rotating object would be real nice :D.
The "rotating object" (a model of the ship being targeted?) is easy now. It is things like that that cim added the visual effects for. Putting any kind of text on the HUD is a pain.

OXP-wise you have to switch HUD files, or switch equipment, and have pre-defined text (Have you tried Wide-Screen HUD in trunk, with the compass mode labels?). There is no method for writing variable text onto the HUD, other than a console/comms message. I used to have a Target Analyser script that dumped info about the target into comms messages (not console messages), but it always caused the game to stutter, so I did away with it, and went for re-writing the .displayName instead in Combat Assistant. (Oh, so there is another method, after all.)

Oolite-wise, get into HeadUpDisplay.m and try tweaking the code for the reticle box to change the information it displays, the way the wormhole scanner mode does. (I once changed its colours to be blue and yellow, instead of red and green. But that's as far as I got. :mrgreen: )

Hmm... Really all we need is the ability to put a line feed in the .displayName, and over-ride the reticle's following the target around the screen to make it stay in one place.
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: Compass target info

Post by spara »

Overall I have not ventured to the trunk yet. Too bad there's only 24 hours in a day. But I have been reading about all messages regarding it.
Wildeblood wrote:
The "rotating object" (a model of the ship being targeted?) is easy now. It is things like that that cim added the visual effects for.
This will be so cool 8). Usually the target is just a dark dot in the center of the crosshair. It's all the same what it looks like and what kind of textures it has. But when it rotates in an info box, then all those fancy ship oxps will benefit.
Wildeblood wrote:
Oolite-wise, get into HeadUpDisplay.m and try tweaking the code for the reticle box to change the information it displays, the way the wormhole scanner mode does. (I once changed its colours to be blue and yellow, instead of red and green. But that's as far as I got. :mrgreen: )
This is very tempting, but I think I'll stay away from the source. It would probably consume all my freetime and that would not be desirable (family...) :lol:. Respect to you all that have gone that deep into the dark side.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Compass target info

Post by Commander McLane »

spara wrote:
Wildeblood wrote:
The "rotating object" (a model of the ship being targeted?) is easy now. It is things like that that cim added the visual effects for.
This will be so cool 8). Usually the target is just a dark dot in the center of the crosshair. It's all the same what it looks like and what kind of textures it has. But when it rotates in an info box, then all those fancy ship oxps will benefit.
You could also just fly closer to your target. :wink:
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: Compass target info

Post by spara »

Commander McLane wrote:
spara wrote:
Wildeblood wrote:
The "rotating object" (a model of the ship being targeted?) is easy now. It is things like that that cim added the visual effects for.
This will be so cool 8). Usually the target is just a dark dot in the center of the crosshair. It's all the same what it looks like and what kind of textures it has. But when it rotates in an info box, then all those fancy ship oxps will benefit.
You could also just fly closer to your target. :wink:
Not wise with my deadly Adder. :lol:.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Compass target info

Post by Wildeblood »

Commander McLane wrote:
spara wrote:
Usually the target is just a dark dot in the center of the crosshair. It's all the same what it looks like and what kind of textures it has. But when it rotates in an info box, then all those fancy ship oxps will benefit.
You could also just fly closer to your target. :wink:
Shoosh, McLane. You're giving away trade secrets.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Compass target info

Post by Disembodied »

(Old Spacers' Advice moved to the Old Spacers' Advice Thread. Bring your own pipe ... ;))
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: Compass target info

Post by spara »

One more to this topic. Current destination eta and updating tsc oxps would benefit a lot from message received message received event. Could that be implemented?
Post Reply