diff --git a/SoloMissions.lua b/SoloMissions.lua index 6288026..7c52bfb 100644 --- a/SoloMissions.lua +++ b/SoloMissions.lua @@ -9,7 +9,12 @@ function locals.set_bits(scriptName, index, ...) end local function IsOnline() - return network.is_session_started() and not script.is_active("maintransition") + if not network.is_session_started() then + return false + end + + local ok, transitionActive = pcall(script.is_active, "maintransition") + return not ok or not transitionActive end local function GetMissionScript() @@ -29,8 +34,6 @@ local FREEMODE = "freemode" -- VARIABLES ---------------------------------------- -local TARGET_VERSION = "1.72-3725" - -- search in fmmc_launcher.c local scrGlobals = { minNumParticipants = 4718592 + 3536, -- regex: Global_\d+\.f_\d+\s?=.+?"minNu" @@ -78,9 +81,6 @@ SOLO_MISSIONS:add_imgui(function() return end - ImGui.Text("Compatible Game Version: " .. TARGET_VERSION) - ImGui.Text("Please check your game version before using!") - ImGui.Dummy(1, 10) ImGui.SeparatorText("Solo Missions") ImGui.Spacing()