FrankenHUD

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

Moderators: winston, another_commander

punkbohemian
Competent
Competent
Posts: 61
Joined: Thu Jun 04, 2009 5:47 pm

FrankenHUD

Post by punkbohemian »

So, what I want to do is mix a couple huds together. I want Deep Space for the dash, and Klepto (or maybe Medusa) for the targeting reticle (I like how it has your shield status right there, but isn't too busy otherwise). I tried just copying the crosshair.png over, but that didn't work. I'm thinking this means I need to edit the hud.plist file, however, there is no hud.plist page on the Wiki (it's blank). Can anyone help me figure out how to do this? Thanks.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

Here is how I made mine...

Firstly, I read through the hud.plist of the DeepSpaceHUD, which contained the crosshairs I wanted. When I found the relevant section I copied it into what looked to be the most likely location in FighterHUD's plist, which does not contain a crosshair at all.

From my study, I determined that the most likely location to insert the crosshair code was this section of the fighterHUD plist:

Code: Select all

	<key>legends</key><!-- these are drawn, in order, before the dials, add any other images you want here -->
	<array>
		<dict>
			<key>image</key>
			<string>hud.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>
		<dict>
			<key>image</key>
			<string>wireframe.png</string>
			<key>width</key>
			<real>60</real>
			<key>height</key>
			<real>60</real>
			<key>x</key>
			<integer>264</integer>
			<key>y</key>
			<integer>-195</integer>
			<key>alpha</key>
			<real>0.90</real>
		</dict>
This is the crosshair section of code from the DeepSpaceHUD plist:

Code: Select all

<dict><!-- crosshair -->
				<key>height</key>
				<integer>128</integer>
				<key>width</key>
				<integer>128</integer>
				<key>image</key>
				<string>crosshair.png</string>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>0</integer>
				<key>alpha</key>
				<real>0.5</real>
			</dict>
Which I then spliced into the fighterHUD plist as follows...

Code: Select all

	</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>hud.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>
		<dict><!-- crosshair -->
			<key>height</key>
			<integer>128</integer>
			<key>width</key>
			<integer>128</integer>
			<key>image</key>
			<string>crosshair.png</string>
			<key>x</key>
			<integer>0</integer>
			<key>y</key>
			<integer>0</integer>
			<key>alpha</key>
			<real>0.5</real>
		</dict>
		<dict>
			<key>image</key>
			<string>wireframe.png</string>
			<key>width</key>
			<real>60</real>
			<key>height</key>
			<real>60</real>
			<key>x</key>
         <integer>264</integer>
			<key>y</key>
			<integer>-195</integer>
			<key>alpha</key>
			<real>0.90</real>
		</dict>
I copied the crosshair.png into the images folder of the fighterHUD.oxp, and voila.. everthing worked.. (well, after a shift-start of Oolite, anyway)

Since what you have in mind is a little more complicated, as it involves relocation of shield displays, etc, it will likely take a good deal more fiddling and experimentation to make it work. Careful examination of the hud.plist files of the HUDs you want to combine should put you on the right track though... especially look for the differences in otherwise similar sections of code. Also, look at the sections containing the code you want to add, and look for similar sections in the code you want to modify.

Good luck, and don't forget to keep us informed of your progress! :D
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
punkbohemian
Competent
Competent
Posts: 61
Joined: Thu Jun 04, 2009 5:47 pm

Post by punkbohemian »

Well, I managed to figure out how to alter the crosshair icon, but I can't suss out what in the plist file puts the shield indicators near the crosshair. This is the code for klepto:

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>
		<array>
			<dict>
				<key>equipment_required</key>
				<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
				<key>selector</key>
				<string>drawTargetReticle:</string>
			</dict>
			<dict>
				<key>alpha</key>
				<real>0.5</real>
				<key>selector</key>
				<string>drawScanner:</string>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>-177</integer>
				<key>height</key>
				<real>70</real>
				<key>width</key>
				<real>200</real>
				<key>rgb_color</key>
				<array>
					<real>0</real>
					<real>0.75</real>
					<real>0</real>
				</array>
			</dict>
			<dict>
				<key>alpha</key>
				<real>0.5</real>
				<key>selector</key>
				<string>drawScannerZoomIndicator:</string>
				<key>x</key>
				<integer>-94</integer>
				<key>y</key>
				<integer>-202</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>22</integer>
				<key>selector</key>
				<string>drawSpeedBar:</string>
				<key>width</key>
				<integer>1</integer>
				<key>x</key>
				<integer>16</integer>
				<key>y</key>
				<integer>0</integer>
				<key>draw_surround</key>
				<false/>
			</dict>
			<dict>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>2</integer>
				<key>selector</key>
				<string>drawRollBar:</string>
				<key>width</key>
				<integer>24</integer>
				<key>x</key>
				<integer>41</integer>
				<key>y</key>
				<integer>-224</integer>
			</dict>
			<dict>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>24</integer>
				<key>selector</key>
				<string>drawPitchBar:</string>
				<key>width</key>
				<integer>2</integer>
				<key>x</key>
				<integer>41</integer>
				<key>y</key>
				<integer>-224</integer>
			</dict>
			<dict>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>28</integer>
				<key>selector</key>
				<string>drawEnergyGauge:</string>
				<key>width</key>
				<integer>33</integer>
				<key>x</key>
				<integer>73</integer>
				<key>y</key>
				<integer>-224</integer>
			</dict>
			<dict>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>1</integer>
				<key>selector</key>
				<string>drawForwardShieldBar:</string>
				<key>width</key>
				<integer>22</integer>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>16</integer>
			</dict>
			<dict>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>1</integer>
				<key>selector</key>
				<string>drawAftShieldBar:</string>
				<key>width</key>
				<integer>22</integer>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>-16</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>22</integer>
				<key>selector</key>
				<string>drawWeaponTempBar:</string>
				<key>width</key>
				<integer>1</integer>
				<key>x</key>
				<integer>-16</integer>
				<key>y</key>
				<integer>0</integer>
			</dict>
			<dict>
				<key>draw_surround</key>
				<true/>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawFuelBar:</string>
				<key>width</key>
				<integer>35</integer>
				<key>x</key>
				<integer>-69</integer>
				<key>y</key>
				<integer>-213</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawAltitudeBar:</string>
				<key>width</key>
				<integer>35</integer>
				<key>x</key>
				<integer>-69</integer>
				<key>y</key>
				<integer>-220</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawCabinTempBar:</string>
				<key>width</key>
				<integer>35</integer>
				<key>x</key>
				<integer>-69</integer>
				<key>y</key>
				<integer>-227</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>7</integer>
				<key>selector</key>
				<string>drawMissileDisplay:</string>
				<key>spacing</key>
				<integer>14</integer>
				<key>width</key>
				<integer>7</integer>
				<key>x</key>
				<integer>-17</integer>
				<key>y</key>
				<integer>-218</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>7</integer>
				<key>selector</key>
				<string>drawClock:</string>
				<key>width</key>
				<integer>7</integer>
				<key>x</key>
				<integer>-27</integer>
				<key>y</key>
				<integer>-238</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>10</integer>
				<key>selector</key>
				<string>drawFPSInfoCounter:</string>
				<key>width</key>
				<integer>10</integer>
				<key>x</key>
				<integer>-300</integer>
				<key>y</key>
				<integer>-220</integer>
			</dict>
			<dict>
				<key>size</key>
				<integer>4</integer>
				<key>alpha</key>
				<real>0.75</real>
				<key>selector</key>
				<string>drawAegis:</string>
				<key>x</key>
				<integer>-83</integer>
				<key>y</key>
				<integer>-205</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawStatusLight:</string>
				<key>width</key>
				<integer>4</integer>
				<key>x</key>
				<integer>-75</integer>
				<key>y</key>
				<integer>-205</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>1</integer>
				<key>selector</key>
				<string>drawSpeedBar:</string>
				<key>width</key>
				<integer>54</integer>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>-229</integer>
				<key>draw_surround</key>
				<false/>
			</dict>
			<dict>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawWeaponTempBar:</string>
				<key>width</key>
				<integer>35</integer>
				<key>x</key>
				<integer>-69</integer>
				<key>y</key>
				<integer>-234</integer>
			</dict>
			<dict>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawForwardShieldBar:</string>
				<key>width</key>
				<integer>20</integer>
				<key>x</key>
				<integer>-39</integer>
				<key>y</key>
				<integer>-220</integer>
			</dict>
			<dict>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawAftShieldBar:</string>
				<key>width</key>
				<integer>20</integer>
				<key>x</key>
				<integer>-39</integer>
				<key>y</key>
				<integer>-234</integer>
			</dict>
			<dict>
				<key>width</key>
				<integer>32</integer>
				<key>height</key>
				<integer>32</integer>
				<key>alpha</key>
				<real>0.5</real>
				<key>selector</key>
				<string>drawCompass:</string>
				<key>x</key>
				<integer>41</integer>
				<key>y</key>
				<integer>-224</integer>
			</dict>
			<dict>
				<key>alpha</key>
				<real>0.5</real>
				<key>selector</key>
				<string>drawScannerZoomIndicator:</string>
				<key>x</key>
				<integer>94</integer>
				<key>y</key>
				<integer>-202</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawStatusLight:</string>
				<key>width</key>
				<integer>4</integer>
				<key>x</key>
				<integer>75</integer>
				<key>y</key>
				<integer>-205</integer>
			</dict>
			<dict>
				<key>size</key>
				<integer>4</integer>
				<key>alpha</key>
				<real>0.75</real>
				<key>selector</key>
				<string>drawAegis:</string>
				<key>x</key>
				<integer>83</integer>
				<key>y</key>
				<integer>-205</integer>
			</dict>
		</array>
		<key>legends</key>
		<array>
			<dict>
				<key>text</key>
				<string>FUEL</string>
				<key>x</key>
				<integer>-102</integer>
				<key>y</key>
				<string>-217</string>
				<key>height</key>
				<integer>6</integer>
				<key>width</key>
				<integer>6</integer>
			</dict>
			<dict>
				<key>text</key>
				<string>ALT</string>
				<key>x</key>
				<integer>-102</integer>
				<key>y</key>
				<string>-224</string>
				<key>height</key>
				<integer>6</integer>
				<key>width</key>
				<integer>6</integer>
			</dict>
			<dict>
				<key>text</key>
				<string>RAD</string>
				<key>x</key>
				<integer>-102</integer>
				<key>y</key>
				<string>-231</string>
				<key>height</key>
				<integer>6</integer>
				<key>width</key>
				<integer>6</integer>
			</dict>
			<dict>
				<key>text</key>
				<string>TEMP</string>
				<key>x</key>
				<integer>-102</integer>
				<key>y</key>
				<string>-238</string>
				<key>height</key>
				<integer>6</integer>
				<key>width</key>
				<integer>6</integer>
			</dict>
			<dict>
				<key>text</key>
				<string>SHIELD</string>
				<key>x</key>
				<integer>-49</integer>
				<key>y</key>
				<string>-231</string>
				<key>height</key>
				<integer>6</integer>
				<key>width</key>
				<integer>6</integer>
			</dict>
			<dict>
				<key>height</key>
				<integer>32</integer>
				<key>width</key>
				<integer>32</integer>
				<key>image</key>
				<string>crosshair.png</string>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>0</integer>
				<key>alpha</key>
				<real>0.5</real>
			</dict>
		</array>
	</dict>
</plist>
[/code]
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Post by DGill »

Just modify the forward and aft shield bar entries

move the bars sideways & up/down with x & y values
change thickness and length with height & width entries.

X & Y can be +ve or -ve values, propably need a positive y value of 100 or more to get it up to the cross hairs

here's mine:

<dict><!-- aft shield bar -->
<key>draw_surround</key>
<false/>
<key>height</key>
<integer>5</integer>
<key>selector</key>
<string>drawAftShieldBar:</string>
<key>width</key>
<integer>60</integer>
<key>x</key>
<integer>201</integer>
<key>y</key>
<integer>-221</integer>
</dict>




Image[/img]
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Post by Diziet Sma »

This would appear to be the section you're looking for....

Code: Select all

         <dict>
            <key>draw_surround</key>
            <false/>
            <key>height</key>
            <integer>1</integer>
            <key>selector</key>
            <string>drawForwardShieldBar:</string>
            <key>width</key>
            <integer>22</integer>
            <key>x</key>
            <integer>0</integer>
            <key>y</key>
            <integer>16</integer>
         </dict>
         <dict>
            <key>draw_surround</key>
            <false/>
            <key>height</key>
            <integer>1</integer>
            <key>selector</key>
            <string>drawAftShieldBar:</string>
            <key>width</key>
            <integer>22</integer>
            <key>x</key>
            <integer>0</integer>
            <key>y</key>
            <integer>-16</integer>
         </dict> 
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
punkbohemian
Competent
Competent
Posts: 61
Joined: Thu Jun 04, 2009 5:47 pm

Post by punkbohemian »

I tried copying and pasting that to my hud.plist, but it didn't seem to do anything. I even made sure it was properly indented (because I know that matters in a lot of scripting languages). This is what it looks like:

I don't know why it's displaying as double-spaced here. It's all single spaced in the plist.

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>

		<array>

			<dict>

				<key>equipment_required</key>

				<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>

				<key>selector</key>

				<string>drawTargetReticle:</string>

			</dict>



			<dict><!-- scanner -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawScanner:</string>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-182</integer>

				<key>height</key>

				<real>47</real>

				<key>width</key>

				<real>188</real>

				<key>rgb_color</key>

				<array>

					<real>0.00</real>

					<real>0.60</real>

					<real>0.00</real>

				</array>

			</dict>



			<dict><!-- missle display -->

				<key>height</key>

				<integer>8</integer>

				<key>selector</key>

				<string>drawMissileDisplay:</string>

				<key>spacing</key>

				<integer>6</integer>

				<key>width</key>

				<integer>6</integer>

				<key>x</key>

				<integer>155</integer>

				<key>y</key>

				<integer>-232</integer>

			</dict>



			<dict><!-- clock -->

				<key>height</key>

				<integer>8</integer>

				<key>selector</key>

				<string>drawClock:</string>

				<key>width</key>

				<integer>14</integer>

				<key>x</key>

				<integer>-48</integer>

				<key>y</key>

				<integer>-235</integer>

			</dict>



			<dict><!-- speed -->

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawSpeedBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>223</integer>

				<key>y</key>

				<integer>-193</integer>

				<key>draw_surround</key>

				<false/>

			</dict>



			<dict><!-- temp -->

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawWeaponTempBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>181</integer>

				<key>y</key>

				<integer>-193</integer>

			</dict>



			<dict><!-- scanner zoom indicator -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawScannerZoomIndicator:</string>

				<key>height</key>

				<integer>12</integer>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-212</integer>

				<key>rgb_color</key>

				<array>

					<real>0.00</real>

					<real>0.60</real>

					<real>0.00</real>

				</array>

			</dict>



			<dict><!-- station aegis -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawAegis:</string>

				<key>x</key>

				<integer>-233</integer>

				<key>y</key>

				<integer>-141</integer>

				<key>width</key>

				<integer>20</integer>

				<key>height</key>

				<integer>20</integer>

			</dict>



			<dict><!-- fuel scoop -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawScoopStatus:</string>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-140</integer>

			</dict>



			<dict><!-- forward shield bar -->

				<key>alpha</key>

				<real>0.50</real>

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>7</integer>

				<key>selector</key>

				<string>drawForwardShieldBar:</string>

				<key>width</key>

				<integer>61</integer>

				<key>x</key>

				<integer>-203</integer>

				<key>y</key>

				<integer>-173</integer>

			</dict>

	

			<dict><!-- aft shield bar -->

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>7</integer>

				<key>selector</key>

				<string>drawAftShieldBar:</string>

				<key>width</key>

				<integer>61</integer>

				<key>x</key>

				<integer>-203</integer>

				<key>y</key>

				<integer>-185</integer>

			</dict>



			<dict><!-- cabin temperature bar -->

				<key>draw_surround</key>

				<true/>

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawCabinTempBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>203</integer>

				<key>y</key>

				<integer>-193</integer>

			</dict>



			<dict><!-- fuel bar -->

				<key>height</key>

				<integer>30</integer>

				<key>selector</key>

				<string>drawFuelBar:</string>

				<key>width</key>

				<integer>18</integer>

				<key>x</key>

				<integer>-296</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict>



			<dict><!-- energy gauge -->

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>49</integer>

				<key>selector</key>

				<string>drawEnergyGauge:</string>

				<key>width</key>

				<integer>61</integer>

				<key>x</key>

				<integer>-203</integer>

				<key>y</key>

				<integer>-218</integer>

				<key>labelled</key>

				<false/>

			</dict>



			<dict><!-- altitude bar -->

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawAltitudeBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>159</integer>

				<key>y</key>

				<integer>-193</integer>

			</dict>



			<dict><!-- compass, overlaps pitch and yaw-->

				<key>alpha</key>

				<real>0.90</real>

				<key>selector</key>

				<string>drawCompass:</string>

				<key>x</key>

				<integer>292</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict>



			<dict><!--"Roll" and "Pitch" combined into a single "P/R" display (Borrowed from Morrigan.oxp, by Flying_Circus)-->

				<key>alpha</key>

				<real>0.1</real>			

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>4</integer>

				<key>width</key>

				<integer>25</integer>

				<key>selector</key>

				<string>drawRollBar:</string>

				<key>x</key>

				<integer>292</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict>

	

			<dict>

				<key>alpha</key>

				<real>0.1</real>

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>25</integer>

				<key>width</key>

				<integer>4</integer>

				<key>selector</key>

				<string>drawPitchBar:</string>

				<key>x</key>

				<integer>292</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict><!-- End combined "P/R" display-->



			<dict><!-- status indicator light -->

				<key>alpha</key>

				<real>0.60</real>

				<key>height</key>

				<integer>16</integer>

				<key>selector</key>

				<string>drawStatusLight:</string>

				<key>width</key>

				<integer>16</integer>

				<key>x</key>

				<integer>232</integer>

				<key>y</key>

				<integer>-142</integer>

			</dict>



			<dict><!-- fps counter -->

				<key>alpha</key>

				<real>0.95</real>

				<key>height</key>

				<integer>14</integer>

				<key>selector</key>

				<string>drawFPSInfoCounter:</string>

				<key>width</key>

				<integer>14</integer>

				<key>x</key>

				<integer>-200</integer>

				<key>y</key>

				<integer>200</integer>

			</dict>



		</array>

		<key>legends</key>

		<array>

			<dict><!-- crosshair -->

				<key>height</key>
				<integer>32</integer>
				<key>width</key>
				<integer>32</integer>
				<key>image</key>
				<string>crosshair.png</string>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>0</integer>
				<key>alpha</key>
				<real>0.5</real>
			</dict>
		         <dict><!-- crosshair shields-->
		            <key>draw_surround</key>
		            <false/>
		            <key>height</key>
		            <integer>1</integer>
		            <key>selector</key>
		            <string>drawForwardShieldBar:</string>
		            <key>width</key>
		            <integer>22</integer>
		            <key>x</key>
		            <integer>0</integer>
		            <key>y</key>
		            <integer>16</integer>
		         </dict>
         		<dict>
		            <key>draw_surround</key>
		            <false/>
		            <key>height</key>
		            <integer>1</integer>
		            <key>selector</key>
		            <string>drawAftShieldBar:</string>
		            <key>width</key>
		            <integer>22</integer>
		            <key>x</key>
		            <integer>0</integer>
		            <key>y</key>
		            <integer>-16</integer>
		         </dict>



			<dict><!-- dashboard -->

				<key>image</key>

				<string>base.png</string>

				<key>height</key>

				<integer>137</integer>

				<key>width</key>

				<real>640</real>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-185</integer>

				<key>alpha</key>

				<real>1.00</real>

			</dict>



		</array>

	</dict>

</plist>
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Have you restarted Oolite with the Shift key pressed? You will need to do this when you change files inside an OXP folder in order for the game to rebuild its cache and take in your changes.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

DGill wrote:
Just modify the forward and aft shield bar entries

move the bars sideways & up/down with x & y values
change thickness and length with height & width entries.

X & Y can be +ve or -ve values, propably need a positive y value of 100 or more to get it up to the cross hairs

here's mine:

<dict><!-- aft shield bar -->
<key>draw_surround</key>
<false/>
<key>height</key>
<integer>5</integer>
<key>selector</key>
<string>drawAftShieldBar:</string>
<key>width</key>
<integer>60</integer>
<key>x</key>
<integer>201</integer>
<key>y</key>
<integer>-221</integer>
</dict>




Image[/img]
What version of Oolite are you running? Is that a Griff Cobra under 1.73?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Post by DGill »

DaddyHoggy wrote:
What version of Oolite are you running? Is that a Griff Cobra under 1.73?
Yes
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Cool!

If I had time - I would have the Trunk installed...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
punkbohemian
Competent
Competent
Posts: 61
Joined: Thu Jun 04, 2009 5:47 pm

Post by punkbohemian »

Have you restarted Oolite with the Shift key pressed?
Did that, and it didn't help.
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Post by DGill »

punkbohemian wrote:
Have you restarted Oolite with the Shift key pressed?
Did that, and it didn't help.
Try:

adding clean install of deepspacehud.oxp in addon folder of oolite

change lines in hud.plist (using notepad) to:

<dict><!-- forward shield bar -->
<key>alpha</key>
<real>0.50</real>
<key>draw_surround</key>
<false/>
<key>height</key>
<integer>4</integer>
<key>selector</key>
<string>drawForwardShieldBar:</string>
<key>width</key>
<integer>61</integer>
<key>x</key>
<integer>0</integer>
<key>y</key>
<integer>50</integer>
</dict>

<dict><!-- aft shield bar -->
<key>draw_surround</key>
<false/>
<key>height</key>
<integer>4</integer>
<key>selector</key>
<string>drawAftShieldBar:</string>
<key>width</key>
<integer>61</integer>
<key>x</key>
<integer>0</integer>
<key>y</key>
<integer>-50</integer>
</dict>

save file

start oolite with shift key pressed until yoy see the cobra.

should see the shield bars moved to crosshair area:


Image[/img]
punkbohemian
Competent
Competent
Posts: 61
Joined: Thu Jun 04, 2009 5:47 pm

Post by punkbohemian »

should see the shield bars moved to crosshair area:
Can I just insert that code into the file, rather than overwrite it. In other words, have shield bars in both places? Otherwise, it looks a little funny with the shield bars blank where they are indicated on the hud.
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Post by DGill »

yes

Image[/img]
punkbohemian
Competent
Competent
Posts: 61
Joined: Thu Jun 04, 2009 5:47 pm

Post by punkbohemian »

I did it, but to no effect. I still don't have the bars. Maybe I put it in the wrong place? This is what my plist looks like:

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>

		<array>

			<dict>

				<key>equipment_required</key>

				<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>

				<key>selector</key>

				<string>drawTargetReticle:</string>

			</dict>
			<dict><!-- scanner -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawScanner:</string>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-182</integer>

				<key>height</key>

				<real>47</real>

				<key>width</key>

				<real>188</real>

				<key>rgb_color</key>

				<array>

					<real>0.00</real>

					<real>0.60</real>

					<real>0.00</real>

				</array>

			</dict>



			<dict><!-- missle display -->

				<key>height</key>

				<integer>8</integer>

				<key>selector</key>

				<string>drawMissileDisplay:</string>

				<key>spacing</key>

				<integer>6</integer>

				<key>width</key>

				<integer>6</integer>

				<key>x</key>

				<integer>155</integer>

				<key>y</key>

				<integer>-232</integer>

			</dict>



			<dict><!-- clock -->

				<key>height</key>

				<integer>8</integer>

				<key>selector</key>

				<string>drawClock:</string>

				<key>width</key>

				<integer>14</integer>

				<key>x</key>

				<integer>-48</integer>

				<key>y</key>

				<integer>-235</integer>

			</dict>



			<dict><!-- speed -->

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawSpeedBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>223</integer>

				<key>y</key>

				<integer>-193</integer>

				<key>draw_surround</key>

				<false/>

			</dict>



			<dict><!-- temp -->

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawWeaponTempBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>181</integer>

				<key>y</key>

				<integer>-193</integer>

			</dict>



			<dict><!-- scanner zoom indicator -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawScannerZoomIndicator:</string>

				<key>height</key>

				<integer>12</integer>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-212</integer>

				<key>rgb_color</key>

				<array>

					<real>0.00</real>

					<real>0.60</real>

					<real>0.00</real>

				</array>

			</dict>



			<dict><!-- station aegis -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawAegis:</string>

				<key>x</key>

				<integer>-233</integer>

				<key>y</key>

				<integer>-141</integer>

				<key>width</key>

				<integer>20</integer>

				<key>height</key>

				<integer>20</integer>

			</dict>



			<dict><!-- fuel scoop -->

				<key>alpha</key>

				<real>1</real>

				<key>selector</key>

				<string>drawScoopStatus:</string>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-140</integer>

			</dict>

			<dict><!-- forward shield bar -->
				<key>alpha</key>
				<real>0.50</real>
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawForwardShieldBar:</string>
				<key>width</key>
				<integer>61</integer>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>50</integer>
			</dict>

			<dict><!-- aft shield bar -->
				<key>draw_surround</key>
				<false/>
				<key>height</key>
				<integer>4</integer>
				<key>selector</key>
				<string>drawAftShieldBar:</string>
				<key>width</key>
				<integer>61</integer>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>-50</integer>
			</dict> 

			<dict><!-- forward shield bar -->

				<key>alpha</key>

				<real>0.50</real>

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>7</integer>

				<key>selector</key>

				<string>drawForwardShieldBar:</string>

				<key>width</key>

				<integer>61</integer>

				<key>x</key>

				<integer>-203</integer>

				<key>y</key>

				<integer>-173</integer>

			</dict>

	

			<dict><!-- aft shield bar -->

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>7</integer>

				<key>selector</key>

				<string>drawAftShieldBar:</string>

				<key>width</key>

				<integer>61</integer>

				<key>x</key>

				<integer>-203</integer>

				<key>y</key>

				<integer>-185</integer>

			</dict>

			<dict><!-- cabin temperature bar -->

				<key>draw_surround</key>

				<true/>

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawCabinTempBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>203</integer>

				<key>y</key>

				<integer>-193</integer>

			</dict>



			<dict><!-- fuel bar -->

				<key>height</key>

				<integer>30</integer>

				<key>selector</key>

				<string>drawFuelBar:</string>

				<key>width</key>

				<integer>18</integer>

				<key>x</key>

				<integer>-296</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict>



			<dict><!-- energy gauge -->

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>49</integer>

				<key>selector</key>

				<string>drawEnergyGauge:</string>

				<key>width</key>

				<integer>61</integer>

				<key>x</key>

				<integer>-203</integer>

				<key>y</key>

				<integer>-218</integer>

				<key>labelled</key>

				<false/>

			</dict>



			<dict><!-- altitude bar -->

				<key>height</key>

				<integer>46</integer>

				<key>selector</key>

				<string>drawAltitudeBar:</string>

				<key>width</key>

				<integer>8</integer>

				<key>x</key>

				<integer>159</integer>

				<key>y</key>

				<integer>-193</integer>

			</dict>



			<dict><!-- compass, overlaps pitch and yaw-->

				<key>alpha</key>

				<real>0.90</real>

				<key>selector</key>

				<string>drawCompass:</string>

				<key>x</key>

				<integer>292</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict>



			<dict><!--"Roll" and "Pitch" combined into a single "P/R" display (Borrowed from Morrigan.oxp, by Flying_Circus)-->

				<key>alpha</key>

				<real>0.1</real>			

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>4</integer>

				<key>width</key>

				<integer>25</integer>

				<key>selector</key>

				<string>drawRollBar:</string>

				<key>x</key>

				<integer>292</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict>

	

			<dict>

				<key>alpha</key>

				<real>0.1</real>

				<key>draw_surround</key>

				<false/>

				<key>height</key>

				<integer>25</integer>

				<key>width</key>

				<integer>4</integer>

				<key>selector</key>

				<string>drawPitchBar:</string>

				<key>x</key>

				<integer>292</integer>

				<key>y</key>

				<integer>-177</integer>

			</dict><!-- End combined "P/R" display-->



			<dict><!-- status indicator light -->

				<key>alpha</key>

				<real>0.60</real>

				<key>height</key>

				<integer>16</integer>

				<key>selector</key>

				<string>drawStatusLight:</string>

				<key>width</key>

				<integer>16</integer>

				<key>x</key>

				<integer>232</integer>

				<key>y</key>

				<integer>-142</integer>

			</dict>



			<dict><!-- fps counter -->

				<key>alpha</key>

				<real>0.95</real>

				<key>height</key>

				<integer>14</integer>

				<key>selector</key>

				<string>drawFPSInfoCounter:</string>

				<key>width</key>

				<integer>14</integer>

				<key>x</key>

				<integer>-200</integer>

				<key>y</key>

				<integer>200</integer>

			</dict>



		</array>

		<key>legends</key>

		<array>

			<dict><!-- crosshair -->

				<key>height</key>
				<integer>32</integer>
				<key>width</key>
				<integer>32</integer>
				<key>image</key>
				<string>crosshair.png</string>
				<key>x</key>
				<integer>0</integer>
				<key>y</key>
				<integer>0</integer>
				<key>alpha</key>
				<real>0.5</real>
			</dict>
			<dict><!-- dashboard -->

				<key>image</key>

				<string>base.png</string>

				<key>height</key>

				<integer>137</integer>

				<key>width</key>

				<real>640</real>

				<key>x</key>

				<integer>0</integer>

				<key>y</key>

				<integer>-185</integer>

				<key>alpha</key>

				<real>1.00</real>

			</dict>



		</array>

	</dict>

</plist>
Post Reply