Fs20 update code not initializing in FS24

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 (&gt;L:PropPullAvail, bool) }
										els{ 0 (&gt;L:PropPullAvail, bool) }
				</UPDATE_CODE>
			</UseTemplate>
		</Component>
1 Like

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) (&gt;L:X_IS_USER_SIM)
(A:SIM ON GROUND, bool) (&gt;L:X_SIM_ON_GROUND)
(A:TOTAL WORLD VELOCITY, knots) 0 == (&gt;L:X_TOTAL_WORLD_VELOCITY_ZERO)
(A:PROP RPM:1, rpm) 0 == (&gt;L:X_PROP_RPM1_ZERO)

Thank you B21, I’ll give that a try!

As I’m sitting here developing in MSFS2024 anyway, I inspected the simvars you’re using and found:

Perhaps instead of (A:TOTAL WORLD VELOCITY, knots) 0 == you could use (A:TOTAL WORLD VELOCITY, knots) 0.1 &lt; ?

3 Likes

Ahh, good catch! Will check that out later today.
EDIT: Yep, that was it, so thanks again for the pointers.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.