Yet another contribution to the collection of HUD´s

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

Moderators: another_commander, winston

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16059
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Yet another contribution to the collection of HUD´s

Post by Cody »

Many thanks, admiral... has that little problem mentioned in the above link been sorted?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6552
Joined: Wed Feb 28, 2007 7:54 am

Re: Yet another contribution to the collection of HUD´s

Post by another_commander »

El Viejo wrote:
Many thanks, admiral... has that little problem mentioned in the above link been sorted?
Yes, it's all good now.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Yet another contribution to the collection of HUD´s

Post by Gimi »

Thank you Smivs and A_C.
My first micro-OXP (for personal use only) works fine. Reticle turns red, com and message gui has moved to the left. Now, to start adjusting so that I can have one on each side.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Yet another contribution to the collection of HUD´s

Post by Smivs »

Make the 'x' co-ordinate into a positive number, say 200.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16059
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Yet another contribution to the collection of HUD´s

Post by Cody »

Tinker with the 'row size' as well... you'll get more text in using a smaller row.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Yet another contribution to the collection of HUD´s

Post by Gimi »

El Viejo wrote:
Tinker with the 'row size' as well... you'll get more text in using a smaller row.
This one I have already discovered. Thanks.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Captain Beatnik
Deadly
Deadly
Posts: 143
Joined: Sun Feb 27, 2011 10:15 pm
Location: Eastern Bavaria (Average Agricultural Confederacy)

Re: Yet another contribution to the collection of HUD´s

Post by Captain Beatnik »

Commander McLane wrote:
What happens while the clock is adjusted? Will the ' (adjusting)' be printed only outside the screen?
there is enough room left beside the HUD, the picture I posted shows only a detail.

@smivs and another_commander: Thanks for the code to change the position of the comlog and the message gui. That will come in handy.

btw: Is there a documentation or summary about all the possible settings in the hud.plist available?

greetings

CB
I love deadlines. I like the whooshing sound they make as they fly by.
(Douglas Adams, 1952 - 2001)
User avatar
Cmdr Radan
Competent
Competent
Posts: 63
Joined: Sat Feb 19, 2011 6:06 pm
Location: UK

Re: Yet another contribution to the collection of HUD´s

Post by Cmdr Radan »

Hi, is it possible to move the message that keeps blocking my view :? Using just notepad++ ?

I'm using the milhud.plist

I looked at what is typed here on this thread, but in note pad it all looks different :shock:

I've no idea what to put or where to put it,I just want to move the message over to the left.

:oops:
Ship:- Custom Cobra DTX ' The Narcissi '
Status:- Clean
Rating:- Competent
Occupation:- Trader/freelance private transporter
Location:- G1

'Would it help if I got out and pushed?'
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Yet another contribution to the collection of HUD´s

Post by Kaks »

plists can be written in either xml
<key>something</key>
<float>1.5</float>
or openstep format
something = 1.5;
Most oxps of late use the easier to read openstep, but you probably opened an xml formatted plist...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Cmdr Radan
Competent
Competent
Posts: 63
Joined: Sat Feb 19, 2011 6:06 pm
Location: UK

Re: Yet another contribution to the collection of HUD´s

Post by Cmdr Radan »

yeah, it looked like the first one.

can it be done , or do I need to open it in a different way?

(total noob on this btw)
Ship:- Custom Cobra DTX ' The Narcissi '
Status:- Clean
Rating:- Competent
Occupation:- Trader/freelance private transporter
Location:- G1

'Would it help if I got out and pushed?'
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Yet another contribution to the collection of HUD´s

Post by Kaks »

Having had a look at this thread, it looks like your best bet - if you're on windows - is to convert the openstep stuff from the examples above to xml using the program mentioned there, then insert the xml-ified bit it in the right spot! :)

If you're on a mac, you should be able to convert between the two formats at will!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2269
Joined: Tue Jan 02, 2007 12:38 pm

Re: Yet another contribution to the collection of HUD´s

Post by Killer Wolf »

reet, it's not working for me. i've got

Code: Select all

<key>comm_log_gui</key>
	<dict>
		<key>height</key>
		<string>100</string>
		<key>row_height</key>
		<string>10</string>
		<key>width</key>
		<string>250</string>
		<key>x</key>
		<string>-195</string>
		<key>y</key>
		<string>100</string>
	</dict>
	<key>message_gui</key>
	<dict>
		<key>height</key>
		<string>160</string>
		<key>row_height</key>
		<string>12</string>
		<key>width</key>
		<string>210</string>
		<key>x</key>
		<string>-200</string>
		<key>y</key>
		<string>-50</string>
	</dict>
in my hud plist, and i got an error about a missing selector. did a bit seach, found this https://bb.oolite.space/viewtopic.php?p=39454#p39454
so i've tried

Code: Select all

<key>comm_log_gui</key>
	<dict>
		<key>height</key>
		<string>100</string>
		<key>row_height</key>
		<string>10</string>
		<key>width</key>
		<string>250</string>
		<key>x</key>
		<string>-195</string>
		<key>y</key>
		<string>100</string>
					<key>selector</key>
			<string>resizeGuis:</string>

	</dict>
	<key>message_gui</key>
	<dict>
		<key>height</key>
		<string>160</string>
		<key>row_height</key>
		<string>12</string>
		<key>width</key>
		<string>210</string>
		<key>x</key>
		<string>-200</string>
		<key>y</key>
		<string>-50</string>
							<key>selector</key>
			<string>resizeGuis:</string>
	</dict>
and now i get

Code: Select all

[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[gameController.exitApp]: .GNUstepDefaults synchronized.
any help would be appreciated, ta.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Yet another contribution to the collection of HUD´s

Post by Kaks »

Resizeguis is an old key that has been dropped from the code yonks ago.

it might well be a nesting issue,

comm_log_gui & message_gui need to both be at the same nesting level as overall_alpha, reticle_target_sensitive, dials and legends

Can you actually show us the whole of the plist? (the one without the useless resizeguis thing?)
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Yet another contribution to the collection of HUD´s

Post by JensAyton »

You’ll note that the linked post does say resuzeGuis: wasn’t actually useful for HUDs at the time.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2269
Joined: Tue Jan 02, 2007 12:38 pm

Re: Yet another contribution to the collection of HUD´s

Post by Killer Wolf »

this is the whole thing so far

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>dials</key><!-- these are drawn, in order, after the legends -->
	<array>
		<dict><!-- Targetting enhancement -->
			<key>equipment_required</key>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<key>selector</key>
			<string>drawTargetReticle:</string>
		</dict>
		
<key>comm_log_gui</key>
	<dict>
		<key>height</key>
		<string>100</string>
		<key>row_height</key>
		<string>10</string>
		<key>width</key>
		<string>250</string>
		<key>x</key>
		<string>-195</string>
		<key>y</key>
		<string>100</string>
	</dict>
	<key>message_gui</key>
	<dict>
		<key>height</key>
		<string>160</string>
		<key>row_height</key>
		<string>12</string>
		<key>width</key>
		<string>210</string>
		<key>x</key>
		<string>-200</string>
		<key>y</key>
		<string>-50</string>
	</dict>

		<dict><!-- station aegis, uses Images/aegis.png as indicator -->
			<key>alpha</key>
			<real>0.7</real>
			<key>selector</key>
			<string>drawAegis:</string>
			<key>x</key>
			<integer>240</integer>
			<key>y</key>
			<integer>205</integer>
			<key>width</key>
			<integer>14</integer>
			<key>height</key>
			<integer>25</integer>
		</dict>

		<dict><!-- status indicator light, x and y give the location, the size defines the icon size -->
		<key>alpha</key>
			<real>1.50</real>
			<key>height</key>
			<integer>14</integer>
			<key>width</key>
			<integer>14</integer>
			<key>selector</key>
			<string>drawStatusLight:</string>
			<key>x</key>
			<integer>131</integer>
			<key>y</key>
			<integer>225</integer>
		</dict>
		<dict><!-- status indicator light, x and y give the location, the size defines the icon size -->
			<key>alpha</key>
			<real>1.50</real>
			<key>height</key>
			<integer>14</integer>
			<key>width</key>
			<integer>14</integer>
			<key>selector</key>
			<string>drawStatusLight:</string>
			<key>x</key>
			<integer>-128</integer>
			<key>y</key>
			<integer>225</integer>
		</dict>
	
		<dict><!-- ship's clock, x and y give the location, the size defines the character size -->
			<key>height</key>
			<integer>7</integer>
			<key>selector</key>
			<string>drawClock:</string>
			<key>width</key>
			<integer>14</integer>
			<key>x</key>
			<integer>-20</integer>
			<key>y</key>
			<integer>-90</integer>
		</dict>
	
		<dict><!-- speed bar, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>13</integer>
			<key>width</key>
			<integer>90</integer>
			<key>selector</key>
			<string>drawSpeedBar:</string>
			<key>x</key>
			<integer>253</integer>
			<key>y</key>
			<integer>-140</integer>
		</dict>
		
		<dict><!-- fuel bar -->
			<key>height</key>
			<integer>13</integer>
			<key>width</key>
			<integer>60</integer>
			<key>selector</key>
			<string>drawFuelBar:</string>
			<key>x</key>
			<integer>-262</integer>
			<key>y</key>
			<integer>214</integer>
		</dict>
		
		<dict><!-- scanner -->
			<key>alpha</key>
			<real>0.8</real>
			<key>selector</key>
			<string>drawScanner:</string>
			<key>x</key>
			<integer>0</integer>
			<key>y</key>
			<integer>-173</integer>
			<key>height</key>
			<real>66</real>
			<key>width</key>
			<real>173</real>
         		<key>rgb_color</key>
         		<array>
            		<real>0.25</real>
            		<real>0.46</real>
            		<real>0.89</real>
         		</array>
		</dict>
		
		<dict><!-- scanner zoom indicator, uses Images/zoom.png to provide 5 levels -->
			<key>alpha</key>
			<real>1.0</real>
			<key>selector</key>
			<string>drawScannerZoomIndicator:</string>
			<key>height</key>
			<integer>10</integer>
			<key>x</key>
			<integer>80</integer>
			<key>y</key>
			<integer>-217</integer>
         		<key>rgb_color</key>
         		<array>
            		<real>0.0</real>
            		<real>1.0</real>
            		<real>0.0</real>
         		</array>
		</dict> 
		
		<dict><!-- energy gauge, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>95</integer>
			<key>width</key>
			<integer>52</integer>
			<key>selector</key>
			<string>drawEnergyGauge:</string>
			<key>x</key>
			<integer>271</integer>
			<key>y</key>
			<integer>-181</integer>
			<key>labelled</key>
			<false/>
		</dict>
		
		<dict><!-- compass, uses Images/compass.png as background and Images/reddot.png and Images/greendot.png -->
			<key>alpha</key>
			<real>0.75</real>
			<key>selector</key>
			<string>drawCompass:</string>
			<key>height</key>
			<integer>56</integer>
			<key>width</key>
			<real>59</real>
			<key>x</key>
			<integer>0</integer>
			<key>y</key>
			<integer>188</integer>
			<key>rgb_color</key>
         		<array>
            		<real>0.0</real>
            		<real>1.0</real>
            		<real>0.00</real>
         		</array>
		</dict>
		
		<dict><!-- wasp indicator status -->
			<key>alpha</key>
			<real>0.75</real>
			<key>selector</key>
			<string>drawScoopStatus:</string>
			<key>height</key>
			<integer>17</integer>
			<key>width</key>
			<integer>14</integer>
			<key>x</key>
			<integer>-55</integer>
			<key>y</key>
			<integer>211</integer>
		</dict>

		<dict><!-- weapon temperature bar -->
			<key>height</key>
			<integer>13</integer>
			<key>width</key>
			<integer>133</integer>
			<key>selector</key>
			<string>drawWeaponTempBar:</string>
			<key>x</key>
			<integer>-178</integer>
			<key>y</key>
			<integer>210</integer>
		</dict>

		<dict><!-- missile display, x and y give the location, the x-spacing is given by spacing, the size defines the icon size -->
			<key>height</key>
			<integer>10</integer>
			<key>width</key>
			<integer>15</integer>
			<key>selector</key>
			<string>drawMissileDisplay:</string>
			<key>spacing</key>
			<integer>30</integer>
			<key>x</key>
			<integer>140</integer>
			<key>y</key>
			<integer>213</integer>
		</dict>

		<dict><!-- forward shield bar, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>82</integer>
			<key>width</key>
			<integer>20</integer>
			<key>selector</key>
			<string>drawForwardShieldBar:</string>
			<key>x</key>
			<integer>-287</integer>
			<key>y</key>
			<integer>-184</integer>
		</dict>
		<dict><!-- aft shield bar, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>82</integer>
			<key>width</key>
			<integer>20</integer>
			<key>selector</key>
			<string>drawAftShieldBar:</string>
			<key>x</key>
			<integer>-250</integer>
			<key>y</key>
			<integer>-184</integer>
		</dict>
		<dict><!-- cabin temperature bar -->
			<key>height</key>
			<integer>88</integer>
			<key>width</key>
			<integer>19</integer>
			<key>selector</key>
			<string>drawCabinTempBar:</string>
			<key>x</key>
			<integer>277</integer>
			<key>y</key>
			<integer>170</integer>
		</dict>
		
		<dict><!-- altitude bar -->
			<key>height</key>
			<integer>88</integer>
			<key>width</key>
			<integer>19</integer>
			<key>selector</key>
			<string>drawAltitudeBar:</string>
			<key>x</key>
			<integer>-277</integer>
			<key>y</key>
			<integer>170</integer>
		</dict>
	</array>
	
	<key>legends</key><!-- these are drawn, in order, before the dials, add any other images you want here -->
	<array>
		<dict>
			<key>image</key>
			<string>phantomHUDgreen.png</string>
			<key>width</key>
			<real>640</real>
			<key>height</key>
			<real>480</real>
			<key>x</key>
			<integer>0</integer>
			<key>y</key>
			<integer>0</integer>
			<key>alpha</key>
			<real>1.00</real>
		</dict>
    </array>
</dict>
</plist>
Post Reply