[PR #7367] [MERGED] Port map: rest-014's scoreboard load/store and ticking step rows, and two answered notes #7555

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7367
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/vol-e-rest-014


📝 Commits (3)

  • 24ed9b6 Port map: three rest-014 methods the file never answered
  • ad657c6 Port map: answer rest-014's defaultgamemode and loaded-condition notes
  • 186ed92 Merge main into #7367

📊 Changes

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

View changed files

📝 tools/port_map/rest-014.tsv (+5 -2)

📄 Description

Rows of tools/port_map/rest-014.tsv (149 rows before this change, 152 after, map-check clean against 26.3). Three methods the file never answered now have rows, and two unsure: notes are answered.

Rows added

row verdict where
ServerScoreboard.load port crates/horizon-client-core/src/scoreboard.rs::Scoreboard::unpack
ServerScoreboard.store port crates/horizon-client-core/src/scoreboard.rs::Scoreboard::pack
ServerTickRateManager.updateStepTicks inline crates/horizon-client/src/lan/hub.rs::Hub::sync_ticking
  • Scoreboard::unpack (scoreboard.rs:1172) reads the saved data's Objectives, Scores, DisplaySlots and Teams, which is what ServerScoreboard.load does after ScoreboardSaveData decodes; its doc names ServerScoreboard.load.
  • Scoreboard::pack (scoreboard.rs:1043) writes ScoreboardSaveData.Packed's fields, leaving out the ones equal to their codec default, which is ServerScoreboard.store.
  • updateStepTicks broadcasts ClientboundTickingStepPacket.from(this). Hub::sync_ticking (hub.rs:1870) does that when the step's revision changes, and sends the ticking state in the same call when the rate or the freeze changed.

Notes answered

  • DefaultGameModeCommands.setMode: the unsure: is gone. Vanilla sets the world's game type, then enforceGameTypeForPlayers(getForcedGameType()), then the success message. set_default_game_mode (lan.rs:1645) sets the world's default and runs enforce_guest_game_mode when forcing is on — the same two steps — but it also sets self.level.creative = mode == 1, so /defaultgamemode creative gives the host creative abilities without the force setting.
  • ExecuteCommand#isChunkLoaded: the unsure: is gone. Vanilla wants the chunk at FullChunkStatus.ENTITY_TICKING and level.areEntitiesLoaded(pos). The loaded arm of condition_matches (commands/execute.rs:944-952) tests a chunk present in the map and streaming.is_lit, with no entity-load check, so a lit column whose entities are not in counts as loaded.

Map-check:

PORT_LEDGER_OUT=/tmp/led-volE python3 tools/port_ledger.py map-check tools/port_map/rest-014.tsv
152 rows, no problems.

Proven: the vanilla side read from the 26.3 classes (DefaultGameModeCommands.setMode, MinecraftServer.setDefaultGameType/enforceGameTypeForPlayers, ExecuteCommand.isChunkLoaded, ServerTickRateManager.updateStepTicks), and the Horizon side at the cites: set_default_game_mode's two assignments and its enforce_guest_game_mode call, the loaded arm's chunks.contains_key + streaming.is_lit, Scoreboard::pack/unpack, and Hub::sync_ticking's two broadcasts. Every where cell resolves under map-check.

Not proven: that is_lit is the right bound for the client's own view of a chunk — the note records the difference from vanilla's ENTITY_TICKING + entity check, not whether the client can answer the entity half at all. I also did not watch a /defaultgamemode run flip the host's abilities in game.


🔄 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/7367 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/vol-e-rest-014` --- ### 📝 Commits (3) - [`24ed9b6`](https://github.com/horizon-rust/horizon/commit/24ed9b6d46f21604e795dd054be7e1dcb94da55b) Port map: three rest-014 methods the file never answered - [`ad657c6`](https://github.com/horizon-rust/horizon/commit/ad657c67b21e57d3041b842a00e79abde0ef1b31) Port map: answer rest-014's defaultgamemode and loaded-condition notes - [`186ed92`](https://github.com/horizon-rust/horizon/commit/186ed92f7bc35e81b81da498da03a58e8b949e76) Merge main into #7367 ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-014.tsv` (+5 -2) </details> ### 📄 Description Rows of `tools/port_map/rest-014.tsv` (149 rows before this change, 152 after, map-check clean against 26.3). Three methods the file never answered now have rows, and two `unsure:` notes are answered. **Rows added** | row | verdict | where | | --- | --- | --- | | `ServerScoreboard.load` | port | `crates/horizon-client-core/src/scoreboard.rs::Scoreboard::unpack` | | `ServerScoreboard.store` | port | `crates/horizon-client-core/src/scoreboard.rs::Scoreboard::pack` | | `ServerTickRateManager.updateStepTicks` | inline | `crates/horizon-client/src/lan/hub.rs::Hub::sync_ticking` | - `Scoreboard::unpack` (scoreboard.rs:1172) reads the saved data's `Objectives`, `Scores`, `DisplaySlots` and `Teams`, which is what `ServerScoreboard.load` does after `ScoreboardSaveData` decodes; its doc names `ServerScoreboard.load`. - `Scoreboard::pack` (scoreboard.rs:1043) writes `ScoreboardSaveData.Packed`'s fields, leaving out the ones equal to their codec default, which is `ServerScoreboard.store`. - `updateStepTicks` broadcasts `ClientboundTickingStepPacket.from(this)`. `Hub::sync_ticking` (hub.rs:1870) does that when the step's revision changes, and sends the ticking state in the same call when the rate or the freeze changed. **Notes answered** - `DefaultGameModeCommands.setMode`: the `unsure:` is gone. Vanilla sets the world's game type, then `enforceGameTypeForPlayers(getForcedGameType())`, then the success message. `set_default_game_mode` (lan.rs:1645) sets the world's default and runs `enforce_guest_game_mode` when forcing is on — the same two steps — but it also sets `self.level.creative = mode == 1`, so `/defaultgamemode creative` gives the host creative abilities without the force setting. - `ExecuteCommand#isChunkLoaded`: the `unsure:` is gone. Vanilla wants the chunk at `FullChunkStatus.ENTITY_TICKING` and `level.areEntitiesLoaded(pos)`. The `loaded` arm of `condition_matches` (commands/execute.rs:944-952) tests a chunk present in the map and `streaming.is_lit`, with no entity-load check, so a lit column whose entities are not in counts as loaded. Map-check: ``` PORT_LEDGER_OUT=/tmp/led-volE python3 tools/port_ledger.py map-check tools/port_map/rest-014.tsv 152 rows, no problems. ``` **Proven:** the vanilla side read from the 26.3 classes (`DefaultGameModeCommands.setMode`, `MinecraftServer.setDefaultGameType`/`enforceGameTypeForPlayers`, `ExecuteCommand.isChunkLoaded`, `ServerTickRateManager.updateStepTicks`), and the Horizon side at the cites: `set_default_game_mode`'s two assignments and its `enforce_guest_game_mode` call, the `loaded` arm's `chunks.contains_key` + `streaming.is_lit`, `Scoreboard::pack`/`unpack`, and `Hub::sync_ticking`'s two broadcasts. Every `where` cell resolves under map-check. **Not proven:** that `is_lit` is the right bound for the client's own view of a chunk — the note records the difference from vanilla's `ENTITY_TICKING` + entity check, not whether the client can answer the entity half at all. I also did not watch a `/defaultgamemode` run flip the host's abilities in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:19:40 +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#7555
No description provided.