New game from the panel instead of an uploaded save (2.9.3)

World & Backups -> Start new game (console: new-game, also when stopped):
the save is backed up and replaced by a new-game marker (also as reset
point). Joining players are told to start a new game; the server pulls the
first player's save and from then on runs normally. Reset world returns to
a new game when the reset point is one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 17:36:33 +02:00
co-authored by Claude Opus 5.5
parent 06a58e08d5
commit e94123fa40
9 changed files with 174 additions and 11 deletions
+1
View File
@@ -739,6 +739,7 @@ public sealed class AdminPanel
GameServer.Log($"Save game backed up by {by}");
return "Backup created";
case "reset": return SaveStore.ResetOffline(dataDir, by);
case "newgame": return SaveStore.NewGameOffline(dataDir, by);
case "restore": return SaveStore.RestoreOffline(dataDir, name, by);
case "resetpoint": return SaveStore.SetResetPoint(dataDir) ?? "The current save game is now the reset point";
case "reloadsave": return "The server is stopped - it loads the save game when you start it";