HUD Template?
Moderators: winston, another_commander
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
HUD Template?
Pretty simple question, this. I was wondering if there is a template for the standard Oolite HUD. You know, along the lines of like_ship. I have a couple of enhancements I'd like to add and make it an OXP.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: HUD Template?
I don't think so, I believe you will have to create a new hud.plist from scratch.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: HUD Template?
Ok, no problem. And I had another question along similar lines, so I might as well ask it here:
Is there something similar for the Market Commodities? I only want to change one property - the average quantity of all items, to bring it in line with the larger cargo capacities of Frontier ships.
Is there something similar for the Market Commodities? I only want to change one property - the average quantity of all items, to bring it in line with the larger cargo capacities of Frontier ships.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: HUD Template?
For markets, the recommended reading is http://wiki.alioth.net/index.php/Trade-goods.plist and http://wiki.alioth.net/index.php/Oolite ... et_Scripts.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: HUD Template?
Thanks. So, essentially, what I'm getting from that is that I'd have to duplicate the entire dictionary in my OXP just to change one field for each item? I'd put that dictionary in my Config folder and it will automatically replace the default Trade-goods.plist, correct?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Redspear
- ---- E L I T E ----
- Posts: 2687
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: HUD Template?
Not strictly what you're after (and perhaps unecessarily obvious) but...
If you tweak the standard hud.plist file in the config folder (nested in the 'resources' folder if memory serves...) then all the basics are already there for you to reposition, add to or subtract from as you wish. As you mentioned the "standard Oolite HUD", I thought I'd risk spelling it out.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: HUD Template?
Thanks, yes I already went into the Resources/Config folder and re-positioned the "Weapons offline" message to the bottom of the screen (so annoyng right in the middle). But on the whole I'd rather not fiddle with the core elements. Hence my query on doing it via a simple little OXP
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Redspear
- ---- E L I T E ----
- Posts: 2687
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: HUD Template?
Again, at the risk of stating the obvious...
If you copy that file and place it in and oxp folder then you can both use the original as your template whilst avoiding 'fiddling with core elements'. In other words the original would remain untouched and once you remove your hypothetical oxp the original core hud.plist is no longer overwritten and is automatically reinstated.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: HUD Template?
Yes indeed. Thank you, noted.
Following the (generally) Object Oriented model that Oolite seems to espouse, I think it would be really really nice to eventually have templates (classes) for all the major game entities. Those would ideally also include the Commodities and the HUD, an idea that I was inadequately attempting to express above
Following the (generally) Object Oriented model that Oolite seems to espouse, I think it would be really really nice to eventually have templates (classes) for all the major game entities. Those would ideally also include the Commodities and the HUD, an idea that I was inadequately attempting to express above
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: HUD Template?
Returning to topic specifics, I was also wondering how one might - is it even possible? - provide a digital speed-readout. I saw in the Wiki that there was an option to add text (although sadly I've now lost the reference), and ship.speed is of course available for JS, but implementation specifics were fuzzy-to-nonexistent. Could anyone perchance shed light here?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: HUD Template?
Look at Numeric HUD.Reval wrote: ↑Sun Nov 08, 2020 1:23 amReturning to topic specifics, I was also wondering how one might - is it even possible? - provide a digital speed-readout. I saw in the Wiki that there was an option to add text (although sadly I've now lost the reference), and ship.speed is of course available for JS, but implementation specifics were fuzzy-to-nonexistent. Could anyone perchance shed light here?
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: HUD Template?
Oh great - thank you I did see it, but on the whole it looked a little too cluttered for my purposes. I just want a straightforward readout of LM. I'll definitely delve into the coding of Numeric HUD a bit. I'm sure I'll learn something new, if nothing else.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: HUD Template?
Several HUDs display a numeric value for speed: HUD Selector large HUD, Coluber HUD, Xenon HUD
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: HUD Template?
Cool
Looks like I've got my work cut out in choosing a new one (or adapting my own), then.
Looks like I've got my work cut out in choosing a new one (or adapting my own), then.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: HUD Template?
Don't forget to try VimanaHUD too.
The others I mentioned are compatible with HUD Selector: if you install that OXP and buy its equipment (10Cr), you can change HUD on-the-flight - makes very easy to try a bunch of them.
The released version of VimanaHUD doesn't work with HUD Selector, but the next version will...
The others I mentioned are compatible with HUD Selector: if you install that OXP and buy its equipment (10Cr), you can change HUD on-the-flight - makes very easy to try a bunch of them.
The released version of VimanaHUD doesn't work with HUD Selector, but the next version will...