Document the player list and world border parity harnesses
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,13 +34,13 @@ round-trip harness has not been rerun.
|
||||
| Network protocol and multiplayer | 0.75 | Opens worlds to LAN, but hosting is not tested against a vanilla client; no dedicated server mode |
|
||||
| Chunk storage and palettes | 1 | None: client and saves share paletted containers, identical to vanilla over 266 scenarios |
|
||||
| Section meshing | 1 | None: 112 scenes and over a million quads identical to vanilla |
|
||||
| Rendering | 0.75 | Entity models match over 150 layers; block entity renderers and HUD overlays not compared |
|
||||
| Rendering | 0.75 | Entity models and the world border wall match vanilla; block entity renderers and most HUD overlays not compared |
|
||||
| Lighting | 1 | None: saved and relit light matches vanilla, slabs and stairs included |
|
||||
| World generation | 1 | None: 2,352 whole chunks over 225 structure sites, in all three dimensions, identical to vanilla |
|
||||
| Region files and saves | 0.75 | Saves round-trip with vanilla, and worlds from 1.18.2 to 26.2 upgrade as vanilla's DataFixers do over 22 sample worlds; worlds older than 1.18.2 are not upgraded |
|
||||
| Entities and physics | 0.75 | Attributes, dimensions, death loot, spawn rules and natural spawning (15,500 NaturalSpawner cases) match; AI not compared; drowned, villagers, traders and the wither unverified |
|
||||
| Interaction and inventory | 1 | None: menu clicks match over 6,000 click sequences |
|
||||
| Menus, HUD and chat | 0.75 | Commands parse as vanilla over 39,685 inputs, but /item modify, /spectate, /waypoint and /dialog do not run; no tab list or world border rendering |
|
||||
| Menus, HUD and chat | 0.75 | Commands parse as vanilla over 39,685 inputs and the player list matches over 844,758 draw calls, but /item modify, /spectate, /waypoint and /dialog do not run; player list heads use default skins |
|
||||
| Audio | 0.75 | Sound engine, music and ambience not compared with vanilla |
|
||||
| Block behaviours and ticking | 0.75 | Block updates, random ticks, redstone and dispensers match vanilla; a container replaced by another block keeps its contents instead of spilling them, and there are no copper golems |
|
||||
|
||||
@@ -50,7 +50,7 @@ round-trip harness has not been rerun.
|
||||
2. Draw every item through the item model pipeline, and add the resource pack screen.
|
||||
3. An audio harness: sound engine attenuation, weighted sound events, music and ambience.
|
||||
4. A mob AI harness, and an oracle for drowned, villagers, traders and the wither.
|
||||
5. The missing commands, containers spilling when replaced, copper golems, the tab list and world border rendering.
|
||||
5. The missing commands, containers spilling when replaced, copper golems, and skins for player list heads.
|
||||
6. Test LAN hosting with a vanilla client, and add a dedicated server mode.
|
||||
|
||||
```sh
|
||||
|
||||
@@ -1288,3 +1288,45 @@ binding. Rendering, transport, full entity lifecycle integration and playable
|
||||
Linux gameplay remain unfinished. In this pinned version,
|
||||
`LivingEntity.updateDataBeforeSync` invokes dirty effect synchronization; it is a
|
||||
separate phase from `tickEffects`.
|
||||
|
||||
## Player list and world border rendering
|
||||
|
||||
`horizon_client::tab_list` lays out vanilla's `PlayerTabOverlay` as draw calls:
|
||||
the listed players in `PLAYER_COMPARATOR` order (higher list order first,
|
||||
spectators last, team name, profile name ignoring case), at most 80 of them in
|
||||
columns of 20 rows; heads with the default skin for the UUID, flipped for
|
||||
Dinnerbone and Grumm in the level, only in online mode; team prefix, suffix and
|
||||
colour; italic, translucent spectator names (italic at the component root);
|
||||
ping bars; the `list` objective as scores in their number format (the score's,
|
||||
the objective's, or yellow) or as hearts with `HealthState`'s change blink and
|
||||
the `hp` text when they no longer fit; and the header and footer wrapped by
|
||||
`Font::split_lines`, which now follows `StringSplitter.splitLines`, with legacy
|
||||
`§` codes applied by `Text::resolve_legacy`. `Hud.extractTabList`'s rule hides
|
||||
the list in single player unless a `list` objective is set.
|
||||
`tools/test_tab_list_parity.py` runs vanilla's own `extractRenderState` frame
|
||||
after frame (`VanillaTabListOracle`: stand-in connection, level and options,
|
||||
real `Scoreboard`) against `examples/tab_list_fixture` and compares every fill,
|
||||
styled text run, sprite and face blit: **1,000 cases, 3,476 frames and 844,758
|
||||
calls match**. The game draws the same layout while the player-list key is
|
||||
held, from the local player and scoreboard in single player and from
|
||||
`PlayerInfoUpdate`, the tab list header and footer, `onlineMode` and the
|
||||
objective, score, display-slot and team packets on a server (checked live
|
||||
against the 26.3 server jar). Real skins are not downloaded: every head uses
|
||||
its default skin. Horizon has no "chat background only" option, so the row
|
||||
background is vanilla's default.
|
||||
|
||||
The client `WorldBorder` wraps `horizon_core::geometry::border` (checked by
|
||||
`test_world_border_parity.py`) and `horizon_client::border_render` ports
|
||||
`WorldBorderRenderer`: `extract`'s fade (`(1 - distance / render distance)^4`)
|
||||
and status colour (growing, shrinking, stationary), the wall buffer that is only
|
||||
rebuilt when the border moves, the model offset and the texture scroll of
|
||||
`prepareDynamicTransforms`, and `draw`'s walls within the render distance,
|
||||
nearest first. The vignette takes `Hud.extractVignette`'s int colour and warning
|
||||
strength. `tools/test_world_border_render_parity.py` drives vanilla's border,
|
||||
renderer and vignette (`VanillaWorldBorderRenderOracle`, with a stand-in GPU
|
||||
device, dynamic-uniform writer and render pass) against
|
||||
`examples/world_border_render_fixture`: **1,500 cases and 16,859 frames match
|
||||
bit for bit** (8,513 with the wall drawn). The game draws the wall with
|
||||
`RenderPipelines.WORLD_BORDER`'s overlay blend and the mipmapped forcefield
|
||||
texture, and follows the server's border packets. One border is kept for all
|
||||
dimensions.
|
||||
|
||||
Reference in New Issue
Block a user