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.

Tutorial?

Featured Replies

Is there any step-by-step tutorial for making scripts for AAO in MSFS?

I have read the manual, looked into existing scripts, etc. but feel still clueless. For example, where do all those various numbers, used in scripts, come from? 🙂

Apologies if I ask dumb question. 

  • Commercial Member
18 minutes ago, JU108 said:

scripts for AAO

In essence AAO uses the FlightSim RPN scripting that has been around for 20+ years. Anything you find online for this type of programming is generally valid here. But make sure to keep the AAO manual nearby, the AAO dialect is slightly different (expanded, but also missing some parts that are irrelevant for AAO)

For example this:
Reverse Polish Notation (flightsimulator.com)

 

18 minutes ago, JU108 said:

various numbers,

Numbers?? What numbers?

Edited by Lorby_SI

LORBY-SI

  • Author

Thank you.

Regarding numbers, here are some examples that leave me totally confused 🙂

Scripts for Flythemaddog that I found on Flightsim.to:

- AP_althold_toggle script contains following: 536870912·18·+·(>L:fgcp_event,number)

- AP_ap_master_TOGGLE: 536870912·19·+·(>L:fgcp_event,number)

For FBW:

Baro inc is defined as: 1·(>K:KOHLSMAN_INC)

 

By numbers I mean, for example where does 536870912 come from, or how do I know what number to use? Likewise for 18, 19, etc. 

And perhaps totaly noob question, why 1 before (>K:KOHLSMAN_INC)? 

 

Again, sorry for being totally green here.

  • Commercial Member
22 minutes ago, JU108 said:

where does 536870912 come from

That is a code specific for the MadDog. 
C:\Users\...\Documents\Maddog X Files\Docs\List of Commands.pdf
But to be fair, your example looks like somebody figured it out manually. I have no idea where they got it from, I've never seen those before. The "List of Commands", those are K - Events, used like this: 1 (>K:#69666)
You should consider asking the author.

22 minutes ago, JU108 said:

why 1 before (>K:KOHLSMAN_INC)

(> is a "setter" command. "Something" is written to an event or a variable. In this case "1", which is valid for a simple INC event as this one. There are others that require proper values. How do I know them? MSFS SDK documentation (linked above) and a lot of trial & error.

(L:whatever, Number) is the getter. At runtime, this string is replaced with the actual numerical value of this LVar
234 (>L:whatever, Number) is the setter. The number 234 is written to the LVar.

Edited by Lorby_SI

LORBY-SI

  • Commercial Member

The problem with MSFS is, that all these variables, events and procedures are different from one aircraft to the next. All developers basically do whatever they want, nobody bothers to adhere to any standards. Which is the reason why we need these RPN scripts in the first place.

So a tutorial is pretty much pointless. It could tell you how to write an RPN script - in principle. But it cannot tell you how the whole process of analyzing, hunting, ganthering, finding, works, that the authors of those scripts have to go through, to arrive at the correct solution.

Edited by Lorby_SI

LORBY-SI

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.