Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Best practice for testing / finding variables and events

Featured Replies

Currently, I am filtering then scrolling through the variables / Activities and selecting the ones that look the most likely.

I then put them in the script and click on test to see if the variable value changes when i click the switch etc in the sim  and re-test

I do the same with the events to see if the switch moves when i test it.

It is a very hit'n'miss approach, not to mention time consuming. After a while i will post something on a forum and hope I get a bite.

Is there a more efficient way of approaching it ?

What other methods do people try ?

Edited by Sybull
spelling mistake

  • Commercial Member
4 hours ago, Sybull said:

What other methods do people try ?

If the plane is not of the "premium" variety, where the files are encrypted, my own method is to browse through the actual source code files of the aircraft. The only tool I need is Notepad++ and "Find in files". I start searching for the "thing" itself, a part of the real world name (or the label in the VC next to the button) that sounds like a programmer would use it as variable or parts name. "radio", "gear", "standby" or "stby" etc. I make NP++ search for those in the entire aircraft folder recursively, in all files called *.html, *.js and *.xml. Then I analyze all hits to find the part/button/dial that is in the VC. Then it is just a matter of threading my way through the various templates that are in use (again by searching the template name with "find in files", but this time in the entire MSFS Packages folder, because the template definition can be anywhere), until I can piece together the actual code that this control actuates. In many cases it is not just a single event or variable, but instead there is a sequence of commands that must be sent in the right order, to make the plane react the way that it would react to the button press in the VC. Tags like "LEFT_SINGLE_CLICK", "CLOCKWISE", "ANTICLOCKWISE" are the starting points.

Edited by Lorby_SI

LORBY-SI

  • Author

Many thanks for that. Just the sort of tip i was looking for, 👍

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.