- Messages
- 28
- Country
Hello!
In the Siai Marchetti SF260 I am building, there is a fuel tank selector where you can select Left or Right Tip Tanks, and Left or Right main tanks. 4 of them. It doesn't have any automatic selection.
So in the flight_model.cfg of my plane I set in the [FUEL] area:
ok.... Because I don't know too much about XML I saw this code and copied modifing with my values in the SF260_interior.xml in the model folder:
The commented lines are other code that I didn't want to remove completelly to see if I could use it.. but no luck, so I leave it here to comment what should I change to make it work
In FS2020 I put the mouse over the selector, and it changes the icon to select, but no wheel mouse or click will change anything.
I have been more than 3 days already with this, without any solution. Can someone help please? In the animation I am using 4 keyframes to show 4 key positions (0,1,2 and 3)
In the Siai Marchetti SF260 I am building, there is a fuel tank selector where you can select Left or Right Tip Tanks, and Left or Right main tanks. 4 of them. It doesn't have any automatic selection.
So in the flight_model.cfg of my plane I set in the [FUEL] area:
[FUEL]
LeftMain = -10.29, -5, -1.2, 13, 1
RightMain = -10.29, 5, -1.2, 13, 1
Center1 = 0, 0, 0, 0, 0
Center2 = 0, 0, 0, 0, 0
Center3 = 0, 0, 0, 0, 0
LeftAux = 0, 0, 0, 0, 0
LeftTip = -9.43, -13, -1.2, 20, 1
RightAux = 0, 0, 0, 0, 0
RightTip = -9.43, 13, -1.2, 20, 1
External1 = 0, 0, 0, 0, 0
External2 = 0, 0, 0, 0, 0
fuel_type =1
number_of_tank_selectors =4
electric_pump =1
engine_driven_pump =1
manual_transfer_pump =0
manual_pump =0
anemometer_pump =0
fuel_dump_rate =0.02
default_fuel_tank_selector.1 =12
default_fuel_tank_selector.2 =2
default_fuel_tank_selector.3 =3
default_fuel_tank_selector.4 =11
default_fuel_tank_selector=12
ok.... Because I don't know too much about XML I saw this code and copied modifing with my values in the SF260_interior.xml in the model folder:
<Animation name="Fuel_Select_Switch" guid="8f3b87b8-579f-470c-a212-bc52ec099ace" length="75" type="Sim" typeParam2="Fuel_Select_Switch" typeParam="AutoPlay" />
<PartInfo>
<Name>Fuel_Select_Switch</Name>
<AnimLength>75</AnimLength>
<Animation>
<Parameter>
<Code>(A:FUEL TANK SELECTOR:1, enum) 25 *</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+RightSingle+Wheel</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
(M:Event) 'WheelDown' scmp 0 == and
if{ (A:FUEL TANK SELECTOR:1, enum) -- 0 max (>A:FUEL TANK SELECTOR:1, enum) }
(M:Event) 'RightSingle' scmp 0 ==
(M:Event) 'WheelUp' scmp 0 == and
if{ (A:FUEL TANK SELECTOR:1, enum) ++ 3 min (>A:FUEL TANK SELECTOR:1, enum) }
(A:FUEL TANK SELECTOR:1, enum) 0 == if{ 12 (>A:FUEL_SELECTOR_SET) }
(A:FUEL TANK SELECTOR:1, enum) 1 == if{ 2 (>A:FUEL_SELECTOR_SET) }
(A:FUEL TANK SELECTOR:1, enum) 2 == if{ 3 (>A:FUEL_SELECTOR_SET) }
(A:FUEL TANK SELECTOR:1, enum) 3 == if{ 11 (>A:FUEL_SELECTOR_SET) }
</CallbackCode>
<!--<CODE_POS_1>
(>K:FUEL_SELECTOR_LEFT_AUX)
</CODE_POS_1>
<CODE_POS_2>
(>K:FUEL_SELECTOR_LEFT)
</CODE_POS_2>
<CODE_POS_3>
(>K:FUEL_SELECTOR_RIGHT)
</CODE_POS_3>
<CODE_POS_4>
(>K:FUEL_SELECTOR_RIGHT_AUX)
</CODE_POS_4> -->
</MouseRect>
</PartInfo>
The commented lines are other code that I didn't want to remove completelly to see if I could use it.. but no luck, so I leave it here to comment what should I change to make it work
In FS2020 I put the mouse over the selector, and it changes the icon to select, but no wheel mouse or click will change anything.
I have been more than 3 days already with this, without any solution. Can someone help please? In the animation I am using 4 keyframes to show 4 key positions (0,1,2 and 3)
Thanks!