The following update code is working perfectly in FS2020 but not in FS2024, when dropping the 2020 aircraft into the 2024 community folder. The L:Var isn’t initializing though it should be true when the plane is cold and dark on a parking spot. What can be the reason?
<UseTemplate Name="ASOBO_GT_Update">
<FREQUENCY>16</FREQUENCY>
<UPDATE_CODE>
(A:IS USER SIM,bool) (A:SIM ON GROUND, bool) (A:TOTAL WORLD VELOCITY, knots) 0 == (A:PROP RPM:1, rpm) 0 == and and and
if{ 1 (>L:PropPullAvail, bool) }
els{ 0 (>L:PropPullAvail, bool) }
</UPDATE_CODE>
</UseTemplate>
</Component>
you mean it’s not initializing to “1” ?
What I’d do is add a bunch of debug code into the RPN and use the behaviours console to see which of those condition simvars is failing. E.g. add
(A:IS USER SIM,bool) (>L:X_IS_USER_SIM)
(A:SIM ON GROUND, bool) (>L:X_SIM_ON_GROUND)
(A:TOTAL WORLD VELOCITY, knots) 0 == (>L:X_TOTAL_WORLD_VELOCITY_ZERO)
(A:PROP RPM:1, rpm) 0 == (>L:X_PROP_RPM1_ZERO)