[PR #7096] [MERGED] Clear stale rest-005 rows main already implements #7333

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-rest-005-rows


📝 Commits (1)

  • 63e748b Clear stale rest-005 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/rest-005.tsv (+25 -25)

📄 Description

Clears 25 rows in tools/port_map/rest-005.tsv: twenty-one that said missing or unsure for code the tree has, and four citations the earlier pass left without a function name.

The tutorial is ported. crates/horizon-client/src/game/tutorial.rs has the whole client tutorial — the five steps, their hints and toasts, and the observations each step makes on its first tick — and Game::tick_tutorial drives it from game.rs. Nineteen rows that said missing ("Horizon has no tutorial steps", "no move and look tutorial toasts", "no punch-a-tree tutorial toast" and the like) now cite it:

  • Tutorial.tick → Tutorial::tick's driver Game::tick_tutorial; Tutorial.setStep → tutorial.rs::Tutorial::set_step; Tutorial.start → Game::reset_tutorial (a tutorial built from the persisted tutorialStep); Tutorial.stop → Tutorial::set_step; Tutorial.isSurvival → Game::tick_tutorial, which reads the game mode and passes it to the tick; Tutorial.onDestroyBlock → Game::tutorial_destroy; Tutorial.onLookAt → Game::tick_tutorial's pick.
  • MovementTutorialStepInstance.tick/onInput/onMouse/clear → Tutorial::tick's Movement arm, Tutorial::input, Tutorial::mouse, Tutorial::set_step.
  • FindTreeTutorialStepInstance.tick/onLookAt/hasPunchedTreesPreviously → Tutorial::tick, Tutorial::look_at_tree, and the previous.mined_tree of Game::tick_tutorial.
  • PunchTreeTutorialStepInstance.tick/onDestroyBlock → Tutorial::tick's PunchTree arm and Tutorial::destroy.
  • OpenInventoryTutorialStep.tick → Tutorial::tick, whose step ends in Tutorial::open_inventory.
  • CraftPlanksTutorialStep.tick/hasCraftedPlanksPreviously → Tutorial::tick and the previous.crafted_plank of Game::tick_tutorial.

Two further rows:

  • IntegratedServer.getScaledTrackingDistance was missing ("the Entity Distance option is not applied to what a LAN host tracks"); crates/horizon-client/src/game/lan.rs::Game::tick_lan sets the hub's entity range percent from the option for an integrated server or a LAN host, under a comment naming this very method. Now inline.
  • RemotePlayer.aiStep was unsure; crates/horizon-client/src/game/remote.rs::Game::tick_remote_entities lerps a remote living entity's head yaw over its steps, which is the first half of vanilla's aiStep, so the row now cites it and its note names the rest that is still absent (the smoothed delta movement and the push step).

Four citations the earlier pass left without a function name, which map-check rejects, are repaired — no verdict changes: Hotbar.isEmpty → game/creative_hotbar.rs::Game::refresh_saved_hotbars; IntegratedServer.isSingleplayerOwner → lan/hub.rs::Hub::player_info; IntegratedServer.reportChunkSaveFailure → chunk_io.rs::Pending::save_failed; SoundEngine.shouldChangeDevice → audio.rs::Audio::tick.

Rows left exactly as they are, because the tree still lacks them: RemotePlayer.lerpMotion (remote motion is set outright, not smoothed over three ticks), IntegratedServer.selectLevelLoadFocusPos (the load focus is the spawn chunk, not the owner's saved position), QuickPlay.getLatestSingleplayerWorld (a quick play without a world id picks nothing), CommandSourceStack.withPermission (a source has one permission level, not a copy raised per command), and GameProfileArgument.SelectorResult.getNames (op, deop, ban and whitelist are not command-tree literals). The gap notes on the other rows were checked and still hold.

map-check tools/port_map/rest-005.tsv: 149 rows, no problems.

Proven: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/rest-005.tsv → 149 rows, no problems. (Both jars: this file names client classes, which a server-only ledger cannot resolve.)

Not proven: no in-game check. No new survival world was started to watch the tutorial toasts appear, and no LAN world was opened to read back the entity tracking distance.


🔄 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/7096 **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/ledger-rest-005-rows` --- ### 📝 Commits (1) - [`63e748b`](https://github.com/horizon-rust/horizon/commit/63e748b461ee0aca0be1ce7c67cfa8652ae64c1c) Clear stale rest-005 rows main already implements ### 📊 Changes **1 file changed** (+25 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-005.tsv` (+25 -25) </details> ### 📄 Description Clears 25 rows in `tools/port_map/rest-005.tsv`: twenty-one that said `missing` or `unsure` for code the tree has, and four citations the earlier pass left without a function name. The tutorial is ported. `crates/horizon-client/src/game/tutorial.rs` has the whole client tutorial — the five steps, their hints and toasts, and the observations each step makes on its first tick — and `Game::tick_tutorial` drives it from `game.rs`. Nineteen rows that said `missing` ("Horizon has no tutorial steps", "no move and look tutorial toasts", "no punch-a-tree tutorial toast" and the like) now cite it: - `Tutorial.tick` → `Tutorial::tick`'s driver `Game::tick_tutorial`; `Tutorial.setStep` → `tutorial.rs::Tutorial::set_step`; `Tutorial.start` → `Game::reset_tutorial` (a tutorial built from the persisted `tutorialStep`); `Tutorial.stop` → `Tutorial::set_step`; `Tutorial.isSurvival` → `Game::tick_tutorial`, which reads the game mode and passes it to the tick; `Tutorial.onDestroyBlock` → `Game::tutorial_destroy`; `Tutorial.onLookAt` → `Game::tick_tutorial`'s pick. - `MovementTutorialStepInstance.tick`/`onInput`/`onMouse`/`clear` → `Tutorial::tick`'s Movement arm, `Tutorial::input`, `Tutorial::mouse`, `Tutorial::set_step`. - `FindTreeTutorialStepInstance.tick`/`onLookAt`/`hasPunchedTreesPreviously` → `Tutorial::tick`, `Tutorial::look_at_tree`, and the `previous.mined_tree` of `Game::tick_tutorial`. - `PunchTreeTutorialStepInstance.tick`/`onDestroyBlock` → `Tutorial::tick`'s PunchTree arm and `Tutorial::destroy`. - `OpenInventoryTutorialStep.tick` → `Tutorial::tick`, whose step ends in `Tutorial::open_inventory`. - `CraftPlanksTutorialStep.tick`/`hasCraftedPlanksPreviously` → `Tutorial::tick` and the `previous.crafted_plank` of `Game::tick_tutorial`. Two further rows: - `IntegratedServer.getScaledTrackingDistance` was `missing` ("the Entity Distance option is not applied to what a LAN host tracks"); `crates/horizon-client/src/game/lan.rs::Game::tick_lan` sets the hub's entity range percent from the option for an integrated server or a LAN host, under a comment naming this very method. Now `inline`. - `RemotePlayer.aiStep` was `unsure`; `crates/horizon-client/src/game/remote.rs::Game::tick_remote_entities` lerps a remote living entity's head yaw over its steps, which is the first half of vanilla's `aiStep`, so the row now cites it and its note names the rest that is still absent (the smoothed delta movement and the push step). Four citations the earlier pass left without a function name, which `map-check` rejects, are repaired — no verdict changes: `Hotbar.isEmpty` → `game/creative_hotbar.rs::Game::refresh_saved_hotbars`; `IntegratedServer.isSingleplayerOwner` → `lan/hub.rs::Hub::player_info`; `IntegratedServer.reportChunkSaveFailure` → `chunk_io.rs::Pending::save_failed`; `SoundEngine.shouldChangeDevice` → `audio.rs::Audio::tick`. Rows left exactly as they are, because the tree still lacks them: `RemotePlayer.lerpMotion` (remote motion is set outright, not smoothed over three ticks), `IntegratedServer.selectLevelLoadFocusPos` (the load focus is the spawn chunk, not the owner's saved position), `QuickPlay.getLatestSingleplayerWorld` (a quick play without a world id picks nothing), `CommandSourceStack.withPermission` (a source has one permission level, not a copy raised per command), and `GameProfileArgument.SelectorResult.getNames` (op, deop, ban and whitelist are not command-tree literals). The gap notes on the other rows were checked and still hold. `map-check tools/port_map/rest-005.tsv`: `149 rows, no problems.` **Proven:** `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/rest-005.tsv` → `149 rows, no problems.` (Both jars: this file names client classes, which a server-only ledger cannot resolve.) **Not proven:** no in-game check. No new survival world was started to watch the tutorial toasts appear, and no LAN world was opened to read back the entity tracking distance. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:37:51 +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#7333
No description provided.