[PR #116] [MERGED] SMP 0.14.0: the sidebar as an SMP scoreboard, the player's own block first #118

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/116
Author: @ludovic111
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/smp-scoreboard


📝 Commits (1)

  • 3749d67 SMP 0.14.0: the sidebar as an SMP scoreboard, the player's own block first

📊 Changes

7 files changed (+271 additions, -110 deletions)

View changed files

📝 native/smp/Cargo.lock (+1 -1)
📝 native/smp/Cargo.toml (+1 -1)
📝 native/smp/README.md (+12 -9)
📝 native/smp/mixins/smp/glue.rs (+32 -8)
📝 native/smp/mixins/smp/horizon-mixin.toml (+1 -1)
📝 native/smp/mixins/smp/smp_board.rs (+218 -86)
📝 native/smp/proof.py (+6 -4)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Why

Feedback from the mods (rdbt, Team moderator), passed on by the orchestrator: the sidebar should look like a standard
SMP scoreboard, with the player's own information first. Ludovic asked to keep the richest players.

What (SMP 0.14.0)

The sidebar, titled board.title ("Horizon SMP"):

Line Shows
your name your nickname if you set one (a sidebar line can't show a hover, so the real name isn't there)
Balance yours, 125.4k / 3.2M style
Playtime yours, 2h 05m
Online the players on
Richest the board.top (3) richest, in one block, your own line in green
footer board.footer, play.playhorizon.dev ("" hides it)
  • /sidebar on|off and board.refresh_seconds (60) are unchanged.
  • Cost:
    • the ranking is still built once for everyone (on a balance change, at most every min_seconds, or every
      refresh_seconds);
    • each player's own lines are looked at on the same refresh_seconds, and the nickname and playtime are only read
      then;
    • a sidebar is sent only where its lines changed, and to newcomers;
    • between refreshes nothing is computed per player (a unit test counts the lookups).
  • Migration: a server that kept 0.13's defaults (Richest players, top 10) gets the new ones on its first start;
    values that were changed stay.
  • No new hook: no stamp, same pins (horizon c348d5d, API 62).

Proof

  • cargo test (native/smp): 64 passed (new: the layout, the migration, the refresh and lookups). clippy
    -D warnings and fmt clean.
  • native.py proof smp at the pinned revision: "ok": true. Steve's sidebar on a dedicated server:
    • title "Horizon SMP";
    • Steve, Balance 400, Playtime 3m, Online 2;
    • Richest: 1. Alex 415, 2. Steve 400;
    • play.playhorizon.dev;
    • 10 lines; /sidebar off and /sidebar on still work.

🤖 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-mods/pull/116 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/smp-scoreboard` --- ### 📝 Commits (1) - [`3749d67`](https://github.com/horizon-rust/horizon-mods/commit/3749d679bd5fd61e524751f1b1cf48961b26fa78) SMP 0.14.0: the sidebar as an SMP scoreboard, the player's own block first ### 📊 Changes **7 files changed** (+271 additions, -110 deletions) <details> <summary>View changed files</summary> 📝 `native/smp/Cargo.lock` (+1 -1) 📝 `native/smp/Cargo.toml` (+1 -1) 📝 `native/smp/README.md` (+12 -9) 📝 `native/smp/mixins/smp/glue.rs` (+32 -8) 📝 `native/smp/mixins/smp/horizon-mixin.toml` (+1 -1) 📝 `native/smp/mixins/smp/smp_board.rs` (+218 -86) 📝 `native/smp/proof.py` (+6 -4) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## Why Feedback from the mods (rdbt, Team moderator), passed on by the orchestrator: the sidebar should look like a standard SMP scoreboard, with the player's own information first. Ludovic asked to keep the richest players. ## What (SMP 0.14.0) The sidebar, titled `board.title` ("Horizon SMP"): | Line | Shows | |---|---| | your name | your nickname if you set one (a sidebar line can't show a hover, so the real name isn't there) | | Balance | yours, `125.4k` / `3.2M` style | | Playtime | yours, `2h 05m` | | Online | the players on | | Richest | the `board.top` (3) richest, in one block, your own line in green | | footer | `board.footer`, `play.playhorizon.dev` ("" hides it) | - `/sidebar on|off` and `board.refresh_seconds` (60) are unchanged. - Cost: - the ranking is still built once for everyone (on a balance change, at most every `min_seconds`, or every `refresh_seconds`); - each player's own lines are looked at on the same `refresh_seconds`, and the nickname and playtime are only read then; - a sidebar is sent only where its lines changed, and to newcomers; - between refreshes nothing is computed per player (a unit test counts the lookups). - Migration: a server that kept 0.13's defaults (`Richest players`, top 10) gets the new ones on its first start; values that were changed stay. - No new hook: no stamp, same pins (horizon c348d5d, API 62). ## Proof - `cargo test` (native/smp): 64 passed (new: the layout, the migration, the refresh and lookups). clippy `-D warnings` and fmt clean. - `native.py proof smp` at the pinned revision: `"ok": true`. Steve's sidebar on a dedicated server: - title "Horizon SMP"; - Steve, Balance 400, Playtime 3m, Online 2; - Richest: 1. Alex 415, 2. Steve 400; - `play.playhorizon.dev`; - 10 lines; `/sidebar off` and `/sidebar on` still work. 🤖 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 04:03:23 +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-mods#118
No description provided.