This is in a VC in FSX.
This is supposed to be an oil transfer system. The oil goes from a reserve tank to one of four engine tanks. The oil quantities are stored between sessions using dsd_xml_config.
To transfer oil, you open a 2D window, click on a tank number selector gauge which sets (L:TANK NUMBER, number). Then click on another switch which sets (L:PUMP SWITCH,bool).
In this same window, and only in this window, there is a gauge that decrements at a specific rate as the
reserve tank oil quantity decreases.
That gauge appears to do what I want it to with the following code:
That's all for the 2D window.
In the VC, I have two, dual needle engine oil quantity gauges. The gauge for the engine chosen for the
transfer by (L:TANK NUMBER, number) increments at a specific rate if (L:PUMP SWITCH,bool) is on.
The following example code is taken from the engine one part:
This code appears to do what I want it to only if I comment out the reserve oil tank quantity gauge that is in the 2D window. If I don't do that, the engine quantity gauge in the VC won't increment.
I hope this is enough information to show what the problem is. Can anyone see something wrong?
TIA
This is supposed to be an oil transfer system. The oil goes from a reserve tank to one of four engine tanks. The oil quantities are stored between sessions using dsd_xml_config.
To transfer oil, you open a 2D window, click on a tank number selector gauge which sets (L:TANK NUMBER, number). Then click on another switch which sets (L:PUMP SWITCH,bool).
In this same window, and only in this window, there is a gauge that decrements at a specific rate as the
reserve tank oil quantity decreases.
That gauge appears to do what I want it to with the following code:
Code:
<Gauge Name="Res_Oil_Tank_Level" Version="1.0">
<Image Name="tank_level_back.bmp"/>
<Element>
<Position X="128" Y="128"/>
<Image Name="tank_level_needle_bevel.bmp" PointsTo="North">
<Axis X="18" Y="65"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="50">
(L:TANK NUMBER, number) 0 > (L:PUMP SWITCH,bool) 1== &&
(P:ABSOLUTE TIME, seconds) (L:START TIME, seconds) - 10 > &&
if{ (P:ABSOLUTE TIME, seconds) (>L:START TIME, seconds)
(L:RES OIL QUANTITY, gallons) -- (>L:RES OIL QUANTITY, gallons) } els{ (L:RES OIL QUANTITY, gallons) }
</Value>
<Nonlinearity>
<Item Value="0" X="84" Y="97"/>
<Item Value="10" X="100" Y="87"/>
<Item Value="20" X="117" Y="80"/>
<Item Value="30" X="135" Y="80"/>
<Item Value="40" X="153" Y="84"/>
<Item Value="50" X="174" Y="95"/>
</Nonlinearity>
<Delay DegreesPerSecond="25"/>
</Rotate>
</Element>
<Mouse>
<Area Left="20" Width="200" Top="150" Height="80">
<Tooltip>Reserve oil quantity (%((L:RES OIL QUANTITY, gallons))%!d! GALS) Click to fill </Tooltip>
<Cursor Type="Hand"/>
<Click>(A:GENERAL ENG COMBUSTION:1, bool) ! (A:SIM ON GROUND, bool) && (A:BRAKE PARKING POSITION, bool) && if{ 50 (>L:RES OIL QUANTITY, gallons) } </Click>
</Area>
</Mouse>
</Gauge>
That's all for the 2D window.
In the VC, I have two, dual needle engine oil quantity gauges. The gauge for the engine chosen for the
transfer by (L:TANK NUMBER, number) increments at a specific rate if (L:PUMP SWITCH,bool) is on.
The following example code is taken from the engine one part:
Code:
<!-- ========================= Oil Qty - engine 1 =================== -->
<Element>
<Position X="128" Y="128"/>
<Image Name="Oil_Qty_L_Needle_4_256.bmp" PointsTo="North">
<Axis X="12" Y="99"/>
</Image>
<Element>
<Select>
<Value Minimum="0" Maximum="22">
(L:TANK NUMBER, number) 0 > (L:TANK NUMBER, number) 2 < &&
(L:PUMP SWITCH,bool) 1== && (P:ABSOLUTE TIME, seconds)
(L:START TIME, seconds) - 10 > &&
if{ (P:ABSOLUTE TIME, seconds) (>L:START TIME, seconds)
(L:ENG1 OIL QUANTITY, gallons) ++ (>L:ENG1 OIL QUANTITY, gallons) }
</Value>
</Select>
</Element>
<Rotate>
<Value>(L:ENG1 OIL QUANTITY, gallons)</Value>
<Nonlinearity>
<Item Value="0" X="71" Y="211"/>
<Item Value="5" X="32" Y="97"/>
<Item Value="10" X="88" Y="35"/>
<Item Value="15" X="162" Y="33"/>
<Item Value="20" X="216" Y="80"/>
<Item Value="22" X="227" Y="115"/>
</Nonlinearity>
<Delay DegreesPerSecond="25"/>
</Rotate>
</Element>
This code appears to do what I want it to only if I comment out the reserve oil tank quantity gauge that is in the 2D window. If I don't do that, the engine quantity gauge in the VC won't increment.
I hope this is enough information to show what the problem is. Can anyone see something wrong?
TIA


