Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions SoloMissions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -29,8 +34,6 @@ local FREEMODE <const> = "freemode"
-- VARIABLES
----------------------------------------

local TARGET_VERSION <const> = "1.72-3725"

-- search in fmmc_launcher.c
local scrGlobals = {
minNumParticipants = 4718592 + 3536, -- regex: Global_\d+\.f_\d+\s?=.+?"minNu"
Expand Down Expand Up @@ -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()
Expand Down