From 6218b6f6053c573cf00cf0439880a2dea6c33cfc Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 10 Nov 2025 19:33:26 +0000 Subject: [PATCH] Added specific error handling for missing mod libs --- SPTarkov.Server/Program.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/SPTarkov.Server/Program.cs b/SPTarkov.Server/Program.cs index e18843c8..468b619e 100644 --- a/SPTarkov.Server/Program.cs +++ b/SPTarkov.Server/Program.cs @@ -42,6 +42,23 @@ public static class Program } catch (Exception e) { + if (e.Message.Contains("could not load file or assembly", StringComparison.InvariantCultureIgnoreCase)) + { + var requirementName = e.Message; + Console.WriteLine( + "=========================================================================================================" + ); + Console.BackgroundColor = ConsoleColor.DarkRed; + Console.ForegroundColor = ConsoleColor.Black; + Console.WriteLine( + "You may have forgotten to install a requirement for one of your mods, please check the mod page again and install any requirements listed. Read the error message below CAREFULLY for the name of the mod you need to install" + ); + Console.ResetColor(); + Console.WriteLine( + "=========================================================================================================" + ); + } + Console.WriteLine("========================================================================================================="); Console.WriteLine( "The server has unexpectedly stopped, reach out to #spt-support in discord, create a support thread by following the instructions found in #support-guidelines. Also include a screenshot of this message + the below error"