Could HUD be player ship or system dependent?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
rgnglzrd
Mostly Harmless
Mostly Harmless
Posts: 2
Joined: Sun Mar 25, 2007 6:48 pm
Location: South Florida, USA
Contact:

Could HUD be player ship or system dependent?

Post 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
The box said "Requires Windows 98 or better"...
So I installed LINUX!!!
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post 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.
Last edited by LittleBear on Sun Mar 25, 2007 10:01 pm, edited 5 times in total.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
rgnglzrd
Mostly Harmless
Mostly Harmless
Posts: 2
Joined: Sun Mar 25, 2007 6:48 pm
Location: South Florida, USA
Contact:

Hey.. .Thanks!!!

Post 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!
The box said "Requires Windows 98 or better"...
So I installed LINUX!!!
Post Reply