November 21, 20241 yr In MSFS 2020 I made a button for my Streamdeck that synced the autopilot HDG with the flightplan DTK for the next waypoint. I did it with the following script: (L:WT_LNavData_DTK_Mag, Degrees) (>A:AUTOPILOT HEADING LOCK DIR, Degrees) The first variable, L:WT_LNavData_DTK_Mag, does not seem to exist anymore under MSFS 2024. Any idea how to look this up now? I'm not finding any information online yet, nor anything that matches under DevMode, Behaviors, and Variables. I found the previous variable from this website, but haven't found an equivalent resource for 2024 yet: https://microsoft.github.io/msfs-avionics-mirror/docs/framework/enums/LNavDataVars/
November 21, 20241 yr Author One of the WT team members in the Working Title group on Discord said they stopped writing those LVars in part due to performance reasons. They plan to publish updated documentation soon, but all those LNAV LVars were removed in the latest version of the avionics SDK. He gave me a substitute to use instead that is working great though: (A:GPS WP DESIRED TRACK, Degrees) (>A:AUTOPILOT HEADING LOCK DIR, Degrees)
November 22, 20241 yr Commercial Member 15 hours ago, aaronpriest said: they stopped writing those LVars in part due to performance reasons. Interesting. I was wondering about that. Since the beginning of MSFS so many developers were implementing LVar logic. And MSFS apparently holds all of them in the program memory all the time - ALL LVARS, not only those that the current aircraft needs. Plus, the LVar logic is always associated with some form of polling mechanism = something has to watch the LVars for them changing value, so it can react. LVars are not events, they don't do anything - they only hold a numerical value. And that is always sub-optimal, because there is always a delay between you changing an LVar value, and that change being registered in the aircraft logic. Edited November 22, 20241 yr by Lorby_SI LORBY-SI
Create an account or sign in to comment