From 6668a99f284b3286b2829693a41b7c6ebf316cf4 Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Thu, 25 Jun 2026 14:24:56 -0500 Subject: [PATCH] move monitor identification above throttle identification --- main.lua | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/main.lua b/main.lua index ebb2472..f62bf79 100644 --- a/main.lua +++ b/main.lua @@ -564,7 +564,21 @@ function UpdateGlobalThrust() end function Init() + + -- Initialize monitors - identify which monitor is for which type + if Config.Monitors.InstrumentPanelMonitor == nil then + print("Identifying instrument panel monitor...") + Config.Monitors.InstrumentPanelMonitor = identifyMonitor("instrument panel") + end + + if Config.Monitors.AutopilotControlMonitor == nil then + print("Identifying autopilot control monitor...") + Config.Monitors.AutopilotControlMonitor = identifyMonitor("autopilot control") + end + + ThrottleInit() + Thrusters = {} local configFile = io.open(Config.ConfigPath, "r") @@ -597,17 +611,6 @@ function Init() end end - -- Initialize monitors - identify which monitor is for which type - if Config.Monitors.InstrumentPanelMonitor == nil then - print("Identifying instrument panel monitor...") - Config.Monitors.InstrumentPanelMonitor = identifyMonitor("instrument panel") - end - - if Config.Monitors.AutopilotControlMonitor == nil then - print("Identifying autopilot control monitor...") - Config.Monitors.AutopilotControlMonitor = identifyMonitor("autopilot control") - end - -- If we're here, the config loaded successfully and the initialization is done. end