August 10, 20223 yr 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.Â
August 10, 20223 yr 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 August 10, 20223 yr by Lorby_SI LORBY-SI
August 10, 20223 yr 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.
August 10, 20223 yr 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 August 10, 20223 yr by Lorby_SI LORBY-SI
August 10, 20223 yr 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 August 10, 20223 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.