[PR #5635] [MERGED] Dedicated server: autosave and save-all save every player #6402

Closed
opened 2026-11-03 06:19:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5635
Author: @rdbtCVS
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/autosave-saves-players


📝 Commits (1)

  • ca88f2e The dedicated server's autosave and save-all save every player

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -1)

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Sonnet 5.5), not by rdbtCVS personally.

save_game_metadata writes every placed guest's playerdata (PlayerList.saveAll), but only when the execution role was IntegratedServer with dedicated set (the fixture). A real --dedicated server runs as DedicatedServer, so the 5-minute autosave and save-all skipped its players: they were written only on leave or stop, and a crash lost their progress.

The condition is now dedicated.is_some() && !role.is_client(), so it covers the real dedicated server.

Checks run: cargo fmt, cargo clippy -p horizon-client --lib --bins -D warnings. Not run: dedicated_server parity or lan_e2e (no vanilla data in this checkout).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5635 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/autosave-saves-players` --- ### 📝 Commits (1) - [`ca88f2e`](https://github.com/horizon-rust/horizon/commit/ca88f2e2e505463bb507b5d121cbce2355c7e3b1) The dedicated server's autosave and save-all save every player ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Sonnet 5.5), not by rdbtCVS personally. `save_game_metadata` writes every placed guest's playerdata (`PlayerList.saveAll`), but only when the execution role was `IntegratedServer` with `dedicated` set (the fixture). A real `--dedicated` server runs as `DedicatedServer`, so the 5-minute autosave and `save-all` skipped its players: they were written only on leave or stop, and a crash lost their progress. The condition is now `dedicated.is_some() && !role.is_client()`, so it covers the real dedicated server. Checks run: `cargo fmt`, `cargo clippy -p horizon-client --lib --bins -D warnings`. Not run: `dedicated_server` parity or `lan_e2e` (no vanilla data in this checkout). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:19:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6402
No description provided.