[PR #6973] [MERGED] Port map: PlayerList.broadcastSystemToAllExceptTeam is death_message_reaches #7242

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

📋 Pull Request Information

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

Base: main ← Head: chore/port-map-rest-020


📝 Commits (2)

  • eec7f84 Port map: PlayerList.broadcastSystemToAllExceptTeam is the same predicate
  • 716ff3e Merge remote-tracking branch 'upstream/main' into HEAD

📄 Description

PlayerList.broadcastSystemToAllExceptTeam was listed as missing ("when a dead player's team hides death messages from its own team, players outside the team should read the death in chat; Horizon sends it to nobody"), but Horizon filters every recipient through crates/horizon-client-core/src/scoreboard.rs::death_message_reaches, which answers for all three Team.Visibility cases: HIDE_FOR_OWN_TEAM reaches everyone outside the dying player's team - exactly this broadcast - and HIDE_FOR_OTHER_TEAMS only their teammates, the broadcastSystemToTeam row above it. Both death paths filter through it: a guest's death (game/lan_actions.rs, Hub::system_message_to per guest) and the host's (game/chat.rs), for the chat message and the host's own copy.

The row now says port and names that function. The two rows this file still marks missing were re-checked against the tree and are still absent: PlayerList.locateStatsFile (a name-based stats/<name>.json is never migrated - stats::player_json only builds <uuid>.json) and TagNetworkSerialization.deserializeTagsFromNetwork (the client never applies UpdateTags; only the LAN host sends it).

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-020.tsv -> 149 rows, no problems.
Not proven: no fresh ledger rebuild (map-check ran against the last build index), and no behaviour changed so nothing was run in the game.

The verify job fails on the pre-existing stale mod API output (xtask mod_api::tests::generated_output_is_current and new_hook_placeholder_is_reported_then_filled), which is fixed by #6724 and is not from this change; every other Rust test in that job passed.


🔄 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/6973 **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/port-map-rest-020` --- ### 📝 Commits (2) - [`eec7f84`](https://github.com/horizon-rust/horizon/commit/eec7f84ff6da47bc0da6322fb126575dab1d789e) Port map: PlayerList.broadcastSystemToAllExceptTeam is the same predicate - [`716ff3e`](https://github.com/horizon-rust/horizon/commit/716ff3eaa1a972a32261c938a3be051b9eacc454) Merge remote-tracking branch 'upstream/main' into HEAD ### 📄 Description `PlayerList.broadcastSystemToAllExceptTeam` was listed as `missing` ("when a dead player's team hides death messages from its own team, players outside the team should read the death in chat; Horizon sends it to nobody"), but Horizon filters every recipient through `crates/horizon-client-core/src/scoreboard.rs::death_message_reaches`, which answers for all three `Team.Visibility` cases: `HIDE_FOR_OWN_TEAM` reaches everyone outside the dying player's team - exactly this broadcast - and `HIDE_FOR_OTHER_TEAMS` only their teammates, the `broadcastSystemToTeam` row above it. Both death paths filter through it: a guest's death (`game/lan_actions.rs`, `Hub::system_message_to` per guest) and the host's (`game/chat.rs`), for the chat message and the host's own copy. The row now says `port` and names that function. The two rows this file still marks `missing` were re-checked against the tree and are still absent: `PlayerList.locateStatsFile` (a name-based `stats/<name>.json` is never migrated - `stats::player_json` only builds `<uuid>.json`) and `TagNetworkSerialization.deserializeTagsFromNetwork` (the client never applies `UpdateTags`; only the LAN host sends it). **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-020.tsv` -> `149 rows, no problems.` **Not proven:** no fresh ledger rebuild (map-check ran against the last build index), and no behaviour changed so nothing was run in the game. The `verify` job fails on the pre-existing stale mod API output (`xtask mod_api::tests::generated_output_is_current` and `new_hook_placeholder_is_reported_then_filled`), which is fixed by #6724 and is not from this change; every other Rust test in that job passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:36:17 +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#7242
No description provided.