From 38d247467f659b32a74a3e7a1b27874e35b4492a Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sat, 11 Jul 2026 20:05:10 +0200 Subject: [PATCH] Handle incompatible mods for Atlas In case of incompatible mods listed on the command line we can't launch the mod selector from Atlas. Instead list the offending mods and launch with the default mods. Fixes: #8852 Signed-off-by: Ralph Sennhauser --- source/ps/GameSetup/GameSetup.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/ps/GameSetup/GameSetup.cpp b/source/ps/GameSetup/GameSetup.cpp index 77216b2563..48e780b72d 100644 --- a/source/ps/GameSetup/GameSetup.cpp +++ b/source/ps/GameSetup/GameSetup.cpp @@ -533,9 +533,16 @@ bool Init(const CmdLineArgs& args, int flags) } } } - // If there are incompatible mods, switch to the mod selector so players can resolve the problem. + // If there are incompatible mods, switch to the mod selector if available + // so players can resolve the problem, otherwise just complain and load + // default mods. if (g_Mods.GetIncompatibleMods().empty()) MountMods(Paths(args), g_Mods.GetEnabledMods()); + else if (flags & INIT_NO_GUI) + { + LOGERROR("Trying to start with incompatible mods: %s.", boost::algorithm::join(g_Mods.GetIncompatibleMods(), ", ")); + MountMods(Paths(args), { "mod", "public" }); + } else MountMods(Paths(args), { "mod" });