2.10.14: warn when Steam launch options run the game with the Mono debugger (costs FPS)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 21:53:36 +02:00
co-authored by Claude Opus 5.5
parent e46b26c1d7
commit 47c172859c
3 changed files with 22 additions and 1 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2.10.14
- **Hinweis bei Debug-Startoptionen:** Stehen in den Steam-Startoptionen von My Summer Car noch
`--doorstop-mono-debug-enabled true` (vom MSCLoader-Entwicklermodus), läuft das ganze Spiel mit Mono-Debugger und
spürbar langsamer. MSCO meldet das jetzt beim Start (Hinweis und Konsole F7)
## 2.10.13 ## 2.10.13
- **Mehr FPS mit Mods:** Mods (z.B. Show Bolt Size) zeichnen jetzt mit der richtigen Schrift. Vorher schrieb Unity bei - **Mehr FPS mit Mods:** Mods (z.B. Show Bolt Size) zeichnen jetzt mit der richtigen Schrift. Vorher schrieb Unity bei
+1 -1
View File
@@ -11,7 +11,7 @@ namespace MSCO
/// Version der Mod. Kleine Updates: nur die dritte Stelle erhöhen (2.9.1, 2.9.2 ...) - sie bleiben mit /// Version der Mod. Kleine Updates: nur die dritte Stelle erhöhen (2.9.1, 2.9.2 ...) - sie bleiben mit
/// Servern und Mitspielern derselben ersten zwei Stellen kompatibel. /// Servern und Mitspielern derselben ersten zwei Stellen kompatibel.
/// </summary> /// </summary>
public const string ModVersion = "2.10.13"; public const string ModVersion = "2.10.14";
/// <summary> /// <summary>
/// Netzwerk-Version (die ersten beiden Stellen). Nur erhöhen, wenn sich das Protokoll inkompatibel ändert - dann /// Netzwerk-Version (die ersten beiden Stellen). Nur erhöhen, wenn sich das Protokoll inkompatibel ändert - dann
/// auch GameServer.ModVersion im Server. /// auch GameServer.ModVersion im Server.
+15
View File
@@ -72,6 +72,20 @@ namespace MSCO
void ToastJoined(string name) { toasts.Add(name, "joined the game", UiTheme.Online); } void ToastJoined(string name) { toasts.Add(name, "joined the game", UiTheme.Online); }
/// <summary>
/// Steam-Startoptionen mit "--doorstop-mono-debug-enabled true" (vom MSCLoader-Entwicklermodus): das ganze Spiel läuft
/// mit Mono-Debugger und spürbar langsamer. Einmal deutlich melden.
/// </summary>
void WarnDebugLaunchOptions()
{
string[] args = System.Environment.GetCommandLineArgs();
int i = System.Array.FindIndex(args, a => a.Equals("--doorstop-mono-debug-enabled", System.StringComparison.OrdinalIgnoreCase));
if (i < 0 || i + 1 >= args.Length || !(args[i + 1] == "true" || args[i + 1] == "1")) return;
MscoLog.Warning("[MSCO] The game runs with the Mono debugger (Steam launch options: --doorstop-mono-debug-enabled true) - " +
"that costs FPS. In Steam: My Summer Car -> Properties -> General -> Launch options: delete everything.");
toasts.Add("Debug mode costs FPS", "Clear the Steam launch options of My Summer Car", UiTheme.Gold);
}
const string OutdatedServerText = "This server is outdated - it is missing MSCO security updates. You can join again once its owner has updated it (web panel -> Update)."; const string OutdatedServerText = "This server is outdated - it is missing MSCO security updates. You can join again once its owner has updated it (web panel -> Update).";
const string OutdatedHostText = "The host uses an outdated MSCO version that is missing security updates. Ask them to update " + const string OutdatedHostText = "The host uses an outdated MSCO version that is missing security updates. Ask them to update " +
"MSCO (start the game once through the MSCO Launcher), then join again."; "MSCO (start the game once through the MSCO Launcher), then join again.";
@@ -112,6 +126,7 @@ namespace MSCO
{ {
Application.runInBackground = true; Application.runInBackground = true;
playerName = PlayerPrefs.GetString(PrefName, System.Environment.UserName); playerName = PlayerPrefs.GetString(PrefName, System.Environment.UserName);
WarnDebugLaunchOptions();
// Neue Ankündigung der MSCO-Admins, während man spielt: kurz einblenden und in die Konsole (F7) // Neue Ankündigung der MSCO-Admins, während man spielt: kurz einblenden und in die Konsole (F7)
SiteStatus.NewAnnouncement += a => SiteStatus.NewAnnouncement += a =>
{ {