August 18, 2025Aug 18 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" } ] } ] }
August 18, 2025Aug 18 Commercial Member This is not a AAO template file. AAO templates are XML, this is JSON - must be for another app? I've never seen a file like this before. Edited August 18, 2025Aug 18 by Lorby_SI LORBY-SI
August 18, 2025Aug 18 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
August 18, 2025Aug 18 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>
Create an account or sign in to comment