From e2c180306ce269f966e21e78f3b692e4396d68fb Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 31 Dec 2025 10:06:18 +0000 Subject: [PATCH] Show error message when player runs a mod that targets a newer version of SPT than they have installed --- SPTarkov.Server/Program.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/SPTarkov.Server/Program.cs b/SPTarkov.Server/Program.cs index 43d22c0c..5bcc5fe7 100644 --- a/SPTarkov.Server/Program.cs +++ b/SPTarkov.Server/Program.cs @@ -42,6 +42,27 @@ public static class Program } catch (Exception e) { + if (e.Message.Contains("could not load file or assembly 'sptarkov.server.core, version=", StringComparison.InvariantCultureIgnoreCase)) + { + Console.WriteLine( + "=========================================================================================================" + ); + Console.BackgroundColor = ConsoleColor.DarkRed; + Console.ForegroundColor = ConsoleColor.Black; + Console.WriteLine( + "You may have installed a mod that needs a newer version of of SPT installed. Please try updating SPT" + ); + + Console.ResetColor(); + Console.WriteLine(e); + Console.WriteLine( + "=========================================================================================================" + ); + + Console.ReadLine(); + return; + } + if (e.Message.Contains("could not load file or assembly", StringComparison.InvariantCultureIgnoreCase)) { Console.WriteLine(