horizon-prepare sounds: the sound copy in Rust, run by the launcher

tools/fetch_sounds.py (and the lab.py functions it used) becomes
`horizon-prepare sounds` (horizon_prepare::sounds): the pinned asset index,
sounds.json and every .ogg from the player's own launcher install, each SHA-1
checked, into .local/horizon-client/<version>. The launcher runs it as part of
Prepare (in-process, the version's own binary when its sources differ and it
knows the subcommand, in-process for older versions), and a launcher install
without the assets only logs that the game will be silent. Player docs no
longer mention Python for sound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-14 18:10:13 +02:00
parent b2462d54c4
commit 8355a6ff14
15 changed files with 408 additions and 65 deletions
+4 -4
View File
@@ -19,10 +19,10 @@ Downloaded this archive directly?
To prepare this folder by hand you need Minecraft Java Edition 26.3, played
once from the official launcher, and Java 25 (a JDK). Then, in this folder:
./horizon-prepare --prepare --server-jar PATH/TO/server.jar
python3 tools/fetch_sounds.py (optional, for sound; needs Python 3.10+)
(Windows: horizon-prepare.exe, and py instead of python3.) The 26.3 server jar is the
downloads.server.url in your launcher's versions/26.3/26.3.json. Add
--minecraft-dir PATH if your launcher keeps the game elsewhere. Then run
./horizon-prepare sounds (optional, for sound)
(Windows: horizon-prepare.exe.) The 26.3 server jar is the downloads.server.url
in your launcher's versions/26.3/26.3.json. Add --minecraft-dir PATH to both if
your launcher keeps the game elsewhere. Then run
./horizon-client (horizon-client.exe on Windows; on macOS the first time:
right-click > Open). horizon-client --help lists the options.