Commit Graph

4750 Commits

Author SHA1 Message Date
Ludovic Marie b1a560264d jmath: rustfmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:33:20 +02:00
Ludovic Marie 4ce4e983e7 jmath: rustfmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:33:03 +02:00
Ludovic Marie 7826a221c5 jmath: satisfy clippy (fdlibm's constants and NaN idiom, verbatim)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:32:48 +02:00
Ludovic Marie ed1ea50c8e Merge parity-base into parity/platform-maths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:31:39 +02:00
Ludovic Marie b15db4749f Net harness client: wait for each chat reply instead of 1.5 s
On a busy machine the /list reply sometimes came after the client had
left. Each step now waits for a new chat line, up to 15 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 04:04:17 +02:00
Ludovic Marie 85242053e2 save_roundtrip: accept the promotion of vanilla's border proto chunks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:59:11 +02:00
Ludovic Marie 8e26af99a1 Merge remote-tracking branch 'origin/parity/spawn-gear' into parity/save-roundtrip 2026-10-13 03:54:23 +02:00
Ludovic Marie 4078118c71 Generate superflat worlds with their layers (FlatLevelSource)
Horizon generated noise terrain in minecraft:flat worlds. Since chunk
streaming finishes the corners of the spawn neighbourhood, save_roundtrip's
flat test world got four noise chunks where vanilla had saved flat proto
chunks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:54:23 +02:00
Ludovic Marie 7322bba2b5 dedicated_server: read the game time as the console prints it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:51:40 +02:00
Ludovic Marie df18d60d14 Merge branch 'parity/warden-sculk' into parity-base 2026-10-13 03:45:25 +02:00
Ludovic Marie ab0d708f87 Merge branch 'parity-base' into parity/menus-golem 2026-10-13 03:43:32 +02:00
Ludovic Marie 4093112bb6 Update the README for player skins, the focused chat and copper golem sorting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:43:32 +02:00
Ludovic Marie 75336660bb Compare the focused chat with vanilla
The HUD harness's chat cases now also draw the chat as the open chat
screen does: foreground, at the focused height, scrolled, with the scroll
bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:42:57 +02:00
Ludovic Marie 71e677ed6a dedicated_server: settle the generated world in game ticks, without random ticks
The world was saved 20 wall-clock seconds after force-loading the area, so
on a busy machine chunks were still generating or their fluids flowing,
and random ticks changed blocks while the client was being sent its
chunks: which chunks differed varied from run to run. Wait until every
force-loaded chunk is loaded and 600 game ticks have passed, with
random_tick_speed 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:40:50 +02:00
Ludovic Marie a9fa46fd0a Run the copper golem on CopperGolemAi's brain and compare its chest sorting
The golem's goals are replaced by vanilla's brain (core and idle activities,
the transport cooldown, look-at-player-sometimes, stroll or wait), and
TransportItemsBetweenContainers moves into the library: nearest wanted
chest in chunk and block entity map order, queueing behind golems with a
chest open, the 60-tick interaction with its states, sounds and opener
counts, picking up and putting down (with vanilla's overcounting), visited
and unreachable positions. Weathering draws from the level random after the
living tick; the spin sound is client-local. mob_ai gains seven copper golem
scenarios that print each golem's state, hand and opened chest and every
chest's contents and openers; all match vanilla.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:40:13 +02:00
Ludovic Marie 9ac6d665fb Merge branch 'parity/rendering-gaps' into parity-base 2026-10-13 03:32:19 +02:00
Ludovic Marie 9b1c29463b Test: worlds from 1.12.2 and 1.16.5 are upgraded on opening 2026-10-13 03:29:13 +02:00
Ludovic Marie 2db50eeca1 Merge branch 'parity-base' into parity/old-saves 2026-10-13 03:27:26 +02:00
Ludovic Marie 3d20af9a9c Datafix: every server fix ported; saves without a DataVersion upgrade from -1 2026-10-13 03:27:20 +02:00
Ludovic Marie 1ded8799fc Merge branch 'parity/spawn-gear' into parity-base 2026-10-13 03:18:39 +02:00
Ludovic Marie 8c818c6f84 1.8.9 world: real maps by right click, objectives its scoreboard knows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 03:17:12 +02:00
Ludovic Marie 585a41acfa Satisfy clippy in the SHA-1 helper
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:17:04 +02:00
Ludovic Marie 19d4146f04 Draw player list heads from players' skins as vanilla does
Profiles' textures properties are unpacked as authlib does and looked up
as SkinManager does (signatures, the local player, allowed texture URLs,
downloads), skins are fetched and processed as SkinTextureDownloader does
and shown from atlas slots. The tab_list harness now runs a real
SkinManager and compares processLegacySkin over 400 PNGs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:16:04 +02:00
Ludovic Marie 991df3d23c Merge remote-tracking branch 'origin/parity/old-saves' into parity/old-saves-flat 2026-10-13 03:13:32 +02:00
Ludovic Marie 19802a4a65 Keep what the schema of the data did not know untyped, read the legacy data again at 1.14
DataFixerUpper reads the data once with its own schema: an entity tree of an id that
schema lacks stays untyped for good, and a list of trees is typed only if all of them
are. Spawner potentials follow that, the spawner wrapping skips untyped data, and a stack
without a string id is an empty equipment slot. The raw maps entities remember are taken
again where the fixes of before 1.14 end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 03:13:32 +02:00
Ludovic Marie 6aa875c6c2 Compute the breeze's long-jump vector with jmath; run every harness on the Mac
The Mac mini no longer excludes options, chunk_generation,
world_border_render and mob_ai: their float maths now matches vanilla's
on Apple silicon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:13:05 +02:00
Ludovic Marie ab9109c787 Route world generation's and mob AI's Math calls through jmath
Beardifier, density pow/log, Marsaglia's Gaussian, dripstone, ores, fancy
trunks, icebergs, end spikes, strongholds, note pitches, sculk charge
particles, the warden's and brains' weighted shuffles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:06:48 +02:00
Ludovic Marie 558d140fca Compute Math.sin/cos/pow/log10 as HotSpot does on the host architecture
Rust's float functions use the platform libm, and vanilla's own Math
results differ between x86-64 (Intel stubs, close to glibc) and AArch64
(fdlibm, with sin/cos evaluated using fused multiply-adds). jmath picks
the same implementation HotSpot uses on the machine, so options, the
world border's alpha and RandomPos match vanilla on an Apple silicon Mac
as well as on Linux.

The vanilla protocol client no longer records the game-time sync sent
every 20 ticks: whether one arrives before the first chunk batch depends
on when the client joined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:05:34 +02:00
Ludovic Marie 811e4ff6de Merge parity-base into parity/warden-sculk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:03:24 +02:00
Ludovic Marie 085cca6aa4 Merge branch 'parity/rendering-gaps' into parity-base 2026-10-13 03:02:44 +02:00
Ludovic Marie 9c3e98403d Merge branch 'parity/spawn-gear' into parity-base 2026-10-13 03:02:44 +02:00
Ludovic Marie 8dc1859369 Merge branch 'parity-base' into parity/spawn-gear
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 03:02:28 +02:00
Ludovic Marie b8ee0b27b3 Datafix harness: pre-1.17 worlds in worlds-pre-1.17, which other worktrees' harnesses do not read 2026-10-13 02:54:04 +02:00
Ludovic Marie 1705653912 Datafix harness: worlds saved before 1.17 stay in the branch's own .local until integrated 2026-10-13 02:53:54 +02:00
Ludovic Marie 360ddcbdba Merge branch 'parity/villager-social' into parity-base 2026-10-13 02:53:42 +02:00
Ludovic Marie e4f4f57e9b Merge branch 'parity/render-distance' into parity-base 2026-10-13 02:53:42 +02:00
Ludovic Marie b7aa3b0d07 1.10.2 world: no thrown potions or 1.8 zombie villagers (vanilla fixes cannot handle them)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:44:39 +02:00
Ludovic Marie c46ac98b1a Port the fixes of 1.9 to 1.12 (keys 100 to 820) and read names and arrays like DataFixerUpper
Entity, block entity and item schemas below 1.11 (CamelCase ids, Equipment, Riding,
numeric item ids), their read hooks, and the fixes: equipment, item ids, potions, spawn
eggs, spawners, minecarts, UUIDs, health, saddles, paintings, riding, signs and books,
the 1.10 splits, id namespacing, banners, shulkers, totems. 1.11.2 passes the bands
1343 and 1631.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:33:59 +02:00
Ludovic Marie 43155d7822 Sample world for 1.11.2, and 1.8.9 to 1.10.2 in the version list
datafix_scene_12.py builds one scene for 1.8 to 1.12 from per-era tables (blocks, entity ids and merged types, riding, equipment, potions, items probed on the server, achievements by command instead of advancements).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:32:43 +02:00
Ludovic Marie 5e48972bff README and docs: the recipe book's drawing, the loom's banner preview and End gateway beams match vanilla
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 02:26:40 +02:00
Ludovic Marie eec52f9055 The recipe book draws as vanilla's widgets do; test_recipe_book_render_parity
horizon_client::recipe_book_screen lays out RecipeBookComponent's drawing
(background, search EditBox, tab buttons, the filter CycleButton, the page
of RecipeButtons with its number and arrows, the alternatives overlay,
tooltips) and GhostSlots as vanilla's GUI calls with their poses, and the
game paints them. The new harness builds vanilla's widgets for 600 random
states (VanillaRecipeBookScreenOracle) and compares every call: 600/600.

Ingredients keep their HolderSet order (tags in TagLoader order), which is
how the overlay and ghost slots cycle; the book centres over the menu on
narrow screens as widthTooNarrow does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 02:22:55 +02:00
Ludovic Marie ba20b8eb29 Port the fixes of 1.11.2 to 1.12 (keys 1022 and 1125): shoulder entities, bed block entities, bed item colour
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:05:39 +02:00
Ludovic Marie d9054baf44 The loom's result preview draws vanilla's banner flag picture in picture
GuiBannerResultRenderer's flag model and pattern layers, lit with
Lighting.Entry.ITEMS_FLAT and clipped to the 20x40 rectangle, through the
GUI item pipeline. The block entity render harness gains loom result cases
(the oracle submits vanilla's renderToTexture under the PiP pose): 407/407.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 02:03:08 +02:00
Ludovic Marie 1efc825a75 Merge parity/old-saves into parity/old-saves-flat
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 02:00:29 +02:00
Ludovic Marie 39cacbdf83 Rich 1.12.2 sample world and a flat one for the DataFixer harness
tools/datafix_scene_12.py builds it in 1.12 command syntax: the whole block id/data space, block entities, items, entities, player, scoreboard, advancements, maps and statistics (real ones from a bot, plus a few hand-written fixtures).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 01:59:37 +02:00
Ludovic Marie acdbb3d27a End gateways tick their beam in game: client beamAnimationTick beside the server copy's portalTick
The anim harness now runs vanilla's TheEndGatewayBlockEntity on a client and
a server stand-in (triggerCooldown every 2400 ticks and on entry, block event
1) and compares the beam render state; 40 cases match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:55:46 +02:00
Ludovic Marie 2b1981acbb Drop a stale warden memory test and collapse the fixture's seeding ifs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:45:07 +02:00
Ludovic Marie 7011c5cddd Merge branch 'parity/dedicated-server' into parity-base 2026-10-13 01:44:30 +02:00
Ludovic Marie 955f2be4ae Flattening fixes: numeric block names normalised by the chunk rewrite, unknown entities stay untyped, spawn egg default; band harness also upgrades the old saved data
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 01:26:43 +02:00
Ludovic Marie 5565cc3a41 Give player-less mob AI scenarios the oracle's far-away player
The oracle's player stays 5000 blocks east between scenarios, and
Mob.checkDespawn draws for it once a mob idles past 600 ticks
(warden_alone).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:26:25 +02:00