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.

Difficulty importing template.

Featured Replies

Hello to you. I'm very inexperienced with AAO and I'm having difficulty importing a template file. I get 'error at 1,1' when attempted. I've used notepad ++ in windows 11 to save the file, and confirm it's encoded and saved as uft8, not uft 8 BOM. Here is the code, as I can't as yet upload the file. I've imported the script file without complaint (but have no confirmation of this). The AAO manual cover page suggests I'm using Version 4.51 - 01.12.2024, which I downloaded in February 2025.

{
  "Version": "4.51",
  "Devices": [
    {
      "Name": "X-Touch Mini",
      "Layer": "A",
      "Assignments": [
        { "Control": "Knob1", "Type": "Script", "Target": "ExtCamLeftRight" },
        { "Control": "Knob2", "Type": "Script", "Target": "ExtCamUpDown" },
        { "Control": "Knob3", "Type": "Script", "Target": "CockpitZoom" },
        { "Control": "Knob4", "Type": "Script", "Target": "ExtCamZoom" },
        { "Control": "Knob5", "Type": "Script", "Target": "CockpitNextView" },
        { "Control": "Knob6", "Type": "Script", "Target": "CockpitPrevView" },
        { "Control": "Button1", "Type": "Event", "Target": "CAMERA COCKPIT" },
        { "Control": "Button2", "Type": "Event", "Target": "CAMERA EXTERNAL" },
        { "Control": "Button3", "Type": "Event", "Target": "VIEW_RESET" }
      ]
    },
    {
      "Name": "X-Touch Mini",
      "Layer": "B",
      "Assignments": [
        { "Control": "Knob1", "Type": "Script", "Target": "DroneYaw" },
        { "Control": "Knob2", "Type": "Script", "Target": "DronePitch" },
        { "Control": "Knob3", "Type": "Script", "Target": "DroneRoll" },
        { "Control": "Knob4", "Type": "Script", "Target": "DroneForwardBack" },
        { "Control": "Knob5", "Type": "Script", "Target": "DroneLeftRight" },
        { "Control": "Knob6", "Type": "Script", "Target": "DroneUpDown" },
        { "Control": "Knob7", "Type": "Script", "Target": "DroneSpeed" },
        { "Control": "Knob8", "Type": "Script", "Target": "DroneZoom" },
        { "Control": "Button1", "Type": "Event", "Target": "TOGGLE DRONE CAMERA" },
        { "Control": "Button2", "Type": "Event", "Target": "DRONE RESET" }
      ]
    }
  ]
}
 

  • Author

Thank you. An excellent answer! 

  • Commercial Member
3 minutes ago, Arctan said:

Thank you. An excellent answer! 

AAO template files are called *.tmpl and would look like this:

<?xml version="1.0" encoding="utf-8"?>
<TemplateExport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <midiVersion>1</midiVersion>
  <template>
    <aircraftId>Tester</aircraftId>
    <airFileId>Tester</airFileId>
    <loadFromMaster>false</loadFromMaster>
    <buttons>
      <GlobalHotkey>
        <downEvent>
          <SimulatorEventName>H145TEST</SimulatorEventName>
          <MinValue>0</MinValue>
          
          (...)

 

LORBY-SI

  • Author

How about this? Error at 2,2. I appreciate your valuable time, so if there are errors beyond this I'll return to manually assigning.

<?xml version="1.0" encoding="UTF-8"?>
<AAOProfile version="1.0">
  <Device name="X-Touch Mini" id="1">
    <!-- Layer A: Cockpit/External Cameras -->
    <Layer id="A">
      <Assignment type="Button" id="1" action="SCRIPT:Camera_CockpitForward"/>
      <Assignment type="Button" id="2" action="SCRIPT:Camera_CockpitLeft"/>
      <Assignment type="Button" id="3" action="SCRIPT:Camera_CockpitRight"/>
      <Assignment type="Button" id="4" action="SCRIPT:Camera_CockpitOverhead"/>
      <Assignment type="Button" id="5" action="SCRIPT:Camera_ExternalChase"/>
      <Assignment type="Button" id="6" action="SCRIPT:Camera_ExternalFlyby"/>
      <Assignment type="Button" id="7" action="SCRIPT:Camera_ExternalTopDown"/>
      <Assignment type="Button" id="8" action="SCRIPT:Camera_Reset"/>
      <Assignment type="Encoder" id="1" action="SCRIPT:Camera_PanLeftRight"/>
      <Assignment type="Encoder" id="2" action="SCRIPT:Camera_PanUpDown"/>
      <Assignment type="Encoder" id="3" action="SCRIPT:Camera_Zoom"/>
      <Assignment type="Encoder" id="4" action="SCRIPT:Camera_Tilt"/>
    </Layer>

    <!-- Layer B: Drone Cameras -->
    <Layer id="B">
      <Assignment type="Button" id="1" action="SCRIPT:Drone_Toggle"/>
      <Assignment type="Button" id="2" action="SCRIPT:Drone_Forward"/>
      <Assignment type="Button" id="3" action="SCRIPT:Drone_Backward"/>
      <Assignment type="Button" id="4" action="SCRIPT:Drone_Left"/>
      <Assignment type="Button" id="5" action="SCRIPT:Drone_Right"/>
      <Assignment type="Button" id="6" action="SCRIPT:Drone_Up"/>
      <Assignment type="Button" id="7" action="SCRIPT:Drone_Down"/>
      <Assignment type="Button" id="8" action="SCRIPT:Drone_Reset"/>
      <Assignment type="Encoder" id="1" action="SCRIPT:Drone_Yaw"/>
      <Assignment type="Encoder" id="2" action="SCRIPT:Drone_Pitch"/>
      <Assignment type="Encoder" id="3" action="SCRIPT:Drone_Roll"/>
      <Assignment type="Encoder" id="4" action="SCRIPT:Drone_Zoom"/>
    </Layer>
  </Device>
</AAOProfile>
 

  • Author

Sorry, just seen your second reply...

Create an account or sign in to comment

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.