Page 1 of 1

Could HUD be player ship or system dependent?

Posted: Sun Mar 25, 2007 7:17 pm
by rgnglzrd
Not sure if this has been discussed before. A brief search didn't turn up anything along this line so figuring I'll post and see what happens.

I'm wondering if there is a way to make the ship's HUD dependent upon the ship itself. For example, if a ship is among the default available group, that ship's HUD would be drawn using the system default, whether through an OXP or the installed default. When a ship that has a HUD definition is added via OXP, the OXPs HUD is only drawn if it is the player's ship, otherwise the default HUD is used. Yeah, I know this could create a problem when a system-wide HUD OXP is added, however a system-wide HUD could easily be identified by a simple key in the plist. Maybe something on the line of the snippet below to define a player ship only HUD:

Code: Select all

<key>scope</key>
<string>player</string>
while a system-wide HUD would be defined as:

Code: Select all

<key>scope</key>
<string>system</string>

It may be more reasonable to add a line similar to the one below to the ship's plist definition:

Code: Select all

<key>useHUD</key>
<string>lightwave</string>
or:

Code: Select all

<key>useHUD</key>
<string>default</string>
Since I'm not familiar with the guts of Oolite, I can't say exactly how to implement either idea. The latter doesn't seem like it would be too terribly difficult.

Anyway, just a thought.

Michael

Posted: Sun Mar 25, 2007 8:30 pm
by LittleBear
Yep, can already have a custom HUD for a ship you build for Oolite.

You just need to add in the Shipdata entry that defines your new player ship:-

Code: Select all

<key>hud</key>
<string>myhud.plist<string>
Then you define the HUD you want for your ship in the myhud.plist.

Lots of Commanders have done this, so there are currently about 30 Custom HUDs in OXP ships to install. However, you only see these Commanders HUDs in game if you are flying the respective Ooliter's OXP ship and have their OXP installed :wink:

So if you fly one of Charlies ships, you fly it with a new HUD, same with Wolfwood's ships etc.

Hey.. .Thanks!!!

Posted: Sun Mar 25, 2007 9:50 pm
by rgnglzrd
Wow... A feature I didn't even know about!!!

I used to play the original Elite many years ago and am now getting back into it via Oolite. I gotta say great job folks. There's a lot of stuff I have no clue about (like this) so pardon any silly questions (like this one).

Thanks for the quick response and continued happy gaming!