Commit Graph

1755 Commits

Author SHA1 Message Date
Ludovic Marie 98321f5d8d World Options: tests of the layout and active states
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 02:52:47 +02:00
Ludovic Marie 9f7c1c3ce5 World Options: vanilla layout, headings, port box, lock, game rules and restrictions
WorldOptionsScreen in a HeaderAndFooterLayout: the title in the 33 pixel
header, the content in a ScrollableLayout over the in-world list
background between the separators, the footer buttons at h - 27.
Bold underlined category headings (FocusableTextWidget), the difficulty
button 130 wide beside its lock, Edit Game Rules... and Restrictions...,
the port EditBox always shown with its hint and error colour, and the
buttons' active states from updateButton and the update*Button methods.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 02:46:19 +02:00
Ludovic Marie d333780478 Merge pull request #420 from ludovic111/contrib/cull-leaves-387
Optional leaf and entity culling (Online5277's #387, rebased)
2026-10-16 02:13:02 +02:00
Ludovic Marie 457a5d7ce2 Merge pull request #440 from ludovic111/feat/launcher-owner-download
Launcher: download Minecraft from Mojang for a signed-in owner
2026-10-16 00:53:49 +02:00
Ludovic Marie 310a3fb73b Merge pull request #438 from ludovic111/feat/launcher-other-launchers
Launcher: prepare from Prism, MultiMC, Modrinth App, ATLauncher or GDLauncher
2026-10-16 00:53:37 +02:00
Ludovic Marie d56c6dfd23 Merge pull request #437 from ludovic111/fix/launcher-missing-files-error
Launcher: when Minecraft isn't found, say where it looked and what to do
2026-10-16 00:53:23 +02:00
Ludovic Marie d30df8ce33 launcher: download Minecraft from Mojang for a signed-in owner
When no folder has the pinned version and the selected Microsoft account
owns Minecraft: Java Edition (the mcstore entitlement, asked again with the
saved token), Prepare downloads it the way other launchers do: the version
JSON from piston-meta by its pinned sha1, the client jar, this system's
libraries (the JSON's os.name rules) and the asset index with its objects
(the sounds), each checked against its sha1, written whole, 8 at a time,
into the data folder's minecraft/ in the official layout. The next
preparations find it there first. An asset that fails is a line in the log;
anything else is an error.

Not signed in, or signed in without the game, the not-found error says so as
its last line. Ownership stays required: there is no other path to the
download, and nothing of Mojang's is part of Horizon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:46:57 +02:00
Ludovic Marie b2e9fafbe0 launcher: prepare from Prism, MultiMC, Modrinth App, ATLauncher or GDLauncher
The official launcher crashes on some Linux systems (rdbt's Arch), and
Horizon only read its layout. Preparing now finds the pinned version in the
chosen folder (or a folder above it, so an instance folder works), then in
every launcher's default folder on Linux (Flatpak included), macOS and
Windows:

- the official launcher: versions/<v>/<v>.jar
- Prism Launcher, MultiMC: the jar their meta/net.minecraft/<v>.json names
  (a Maven name in libraries/), libraries/com/mojang/minecraft/<v>/...
- the Modrinth App: meta/versions/<v>/<v>.jar, meta/libraries
- ATLauncher, GDLauncher (data/, Next's datastore/):
  libraries/net/minecraft/client/<v>/client-<v>.jar

The client jar is checked against the lock's sha1. horizon-prepare reads the
official layout and pins the version JSON's own sha1, so files found
elsewhere are linked into that layout in the data folder
(linked-minecraft/), with the pinned version JSON from piston-meta (by its
sha1, checked) when the launcher keeps only its own format or a rewrite.
Nothing else is copied or downloaded. Every preparer, old Python ones
included, reads the linked folder as an official one.

When nothing is found, the error lists the chosen folder and every installed
launcher's, with what each lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:40:31 +02:00
Ludovic Marie 71fc3482ba Merge pull request #404 from Online5277/fix/rail-mipmap-cutout
Preserve native sprite mipmaps in mixed-size texture arrays
2026-10-16 00:37:42 +02:00
Ludovic Marie 561efb340e launcher: say which folders were checked when Minecraft is not found
Prepare used to stop with "Minecraft 26.3 is not in <dir>. Play 26.3 once from
the official launcher, or choose another folder." followed by an unrelated log
line ("Checking Java and your Minecraft install"). It now lists every folder it
looked in with what each one lacks (no such folder, no versions/26.3/26.3.json,
no 26.3.jar) and the two ways out, one per line. A missing client jar is caught
here too, instead of later inside horizon-prepare.

Only a preparer process's "Exited with ..." gets the last log line appended;
the launcher's own errors are full sentences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:24:43 +02:00
Cosmic 23cadd8b65 Keep entity culling description within the UI line limit 2026-10-16 00:12:58 +02:00
Cosmic 6aea14c8a0 Add conservative opt-in entity culling 2026-10-16 00:12:58 +02:00
Cosmic 504a70c062 Add an opt-in Cull Leaves graphics setting 2026-10-16 00:12:45 +02:00
Ludovic Marie 5350f3465b Merge pull request #424 from ludovic111/test/lan-e2e
tools/lan_e2e.py: a LAN host and guest, checked from both sides
2026-10-16 00:10:22 +02:00
Ludovic Marie 99cd0ec0ad Merge pull request #430 from ludovic111/fix/lan-guest-damage
LAN guest: fall damage, regeneration and hunger on the host
2026-10-16 00:10:16 +02:00
Ludovic Marie a42db752d7 Merge pull request #429 from ludovic111/fix/lan-guest-crafting
LAN guest: crafting in the 2x2 grid and at a crafting table
2026-10-16 00:10:10 +02:00
Ludovic Marie de53b7c14e Merge pull request #428 from ludovic111/fix/lan-player-nametags
LAN: name tags over other players, and the host under its own name
2026-10-16 00:09:58 +02:00
Ludovic Marie e2fa721c7a Merge pull request #427 from ludovic111/fix/lan-chest-lids
LAN: chest and shulker box lids open and close for every player
2026-10-16 00:09:53 +02:00
Ludovic Marie 1c91fad962 Merge pull request #426 from ludovic111/fix/lan-player-armour
LAN: every player wears their own armour
2026-10-16 00:09:45 +02:00
Ludovic Marie 824fad45cf Merge pull request #425 from ludovic111/fix/lan-guest-self-model
LAN guest: the guest sees himself (own player model on a server)
2026-10-16 00:09:40 +02:00
Ludovic Marie 5f45cf3830 Merge pull request #431 from ludovic111/fix/release-tag-order
Release train: two-digit same-day counter so GitHub lists releases in order
2026-10-15 23:22:49 +02:00
Ludovic Marie 08c4805e10 Release train: pad the same-day counter to two digits
GitHub's releases page sorts a day's tags as text, so v2026.10.15.9 showed
above v2026.10.15.18 (reported by rdbt on Discord). Tags now count .01, .02...
Every reader (release_train.tag_key, the launcher's compare_versions) compares
the parts as integers, so older unpadded tags still order correctly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:17:09 +02:00
Ludovic Marie d28521f765 Merge pull request #362 from ludovic111/feat/dualsense-lights
DualSense lightbar and player LEDs
2026-10-15 22:31:10 +02:00
Ludovic Marie 7d6936e000 Merge pull request #361 from ludovic111/feat/dualsense-vibration
DualSense vibration: shaped pulses, HD haptics on USB (opt-in)
2026-10-15 22:30:54 +02:00
Ludovic Marie 5419ef0ed4 Merge pull request #360 from ludovic111/feat/dualsense-triggers
DualSense adaptive triggers
2026-10-15 22:30:46 +02:00
Ludovic Marie 457fb77ab0 Merge pull request #403 from Online5277/fix/server-ping-tooltip
Show ping tooltips over multiplayer network bars
2026-10-15 22:29:59 +02:00
Ludovic Marie 13c4230431 Merge pull request #347 from ludovic111/feat/shader-pack-screen
Shader packs (3/3): pick a pack in Video Settings
2026-10-15 22:07:21 +02:00
Ludovic Marie 99dfeabfa5 Merge pull request #346 from ludovic111/feat/shader-pack-render
Shader packs (2/3): run a pack's composite stages over the world, with hot reload
2026-10-15 22:07:01 +02:00
Ludovic Marie 4a0c639f63 Merge pull request #345 from ludovic111/feat/game-mods
Mods in the game: Options > Mods, hooks and HUD panels, off by default
2026-10-15 22:06:46 +02:00
Ludovic Marie 18b5310b0f Merge pull request #343 from ludovic111/fix/sprite-interpolation
Interpolate animated textures like vanilla (prismarine, magma, stems, lit furnaces)
2026-10-15 22:06:39 +02:00
Ludovic Marie b66eea6506 Merge pull request #348 from ludovic111/feat/dualsense-hid
DualSense output over HID: the report, a writer thread, and rumble through it
2026-10-15 21:52:08 +02:00
Cosmic 725146c0ca Generate sprite mips before array-only enlargement 2026-10-15 15:41:53 -04:00
Cosmic d675918db9 Show server latency when hovering network bars 2026-10-15 15:30:10 -04:00
Ludovic Marie 0c103a4a97 Merge pull request #402 from Online5277/fix/menu-hotbar-keys
Prevent hotbar selection from changing behind menus
2026-10-15 21:30:02 +02:00
Cosmic 9b4d5d5613 Keep gameplay hotbar selection out of open menus 2026-10-15 15:20:09 -04:00
Ludovic Marie 292873e11a Merge pull request #397 from ludovic111/feat/inventory-sort
Sort buttons for the inventory and chests (extra, off by default)
2026-10-15 21:08:49 +02:00
Ludovic Marie c6aefdb82b Merge pull request #396 from ludovic111/feat/mouse-tweaks
Mouse Tweaks-style inventory controls (extra, off by default)
2026-10-15 21:08:44 +02:00
Ludovic Marie 66dc8ce3a4 Merge pull request #395 from ludovic111/fix/creative-search-select
Clicking a creative search result selects the query
2026-10-15 21:08:36 +02:00
Ludovic Marie 6bf89f912c Merge pull request #393 from ludovic111/fix/quick-craft-highlight
Drag highlight and counts as AbstractContainerScreen draws them
2026-10-15 21:08:28 +02:00
Ludovic Marie 17feed1620 Merge pull request #392 from ludovic111/fix/shift-double-click
Shift + double-click moves every matching stack
2026-10-15 21:08:19 +02:00
Ludovic Marie 32f7356eda Merge pull request #391 from ludovic111/fix/creative-item-tab-clicks
Creative item tabs click as CreativeModeInventoryScreen does
2026-10-15 21:08:12 +02:00
Ludovic Marie 2f23a776f8 Merge pull request #398 from ludovic111/fix/pick-block
Pick Block picks from the inventory in survival
2026-10-15 21:08:03 +02:00
Ludovic Marie bf4fcc3aa9 Merge pull request #394 from ludovic111/fix/text-highlight
Vanilla text selection colours and blinking cursors in the creative search and anvil
2026-10-15 21:07:57 +02:00
Ludovic Marie 8e6a129f6b LAN: every player model wears its own armour
The host drew each guest with the host's own armour (player_armor_layers),
and a guest ignored ClientboundSetEquipmentPacket, so it drew the host and
other guests bare-handed and without armour. Player models now carry what
they wear in extra.head..feet: the host fills it from the guest's armour,
the guest from SetEquipment (main and off hand too, for mobs as well), and
both draw HumanoidArmorLayer from it. The host also draws what a guest holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:57:07 +02:00
Ludovic Marie dd856ec5f6 LAN guest: tick the player's own model on a server, so the guest sees himself
The player model (third person, the inventory's preview) was only ticked by
the single-player tick; on a server it was never created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:57:07 +02:00
Ludovic Marie fd1acd5ed7 tools/lan_e2e.py: a host and a guest on LAN, checked from both sides
Two Horizon games under horizon-ctl, each with its own scratch home: the
host opens a survival world to LAN with commands, the guest joins by
address, and each check (tab, self, armour, nametags, chest, crafting,
damage) is reported on its own with screenshots of both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:56:45 +02:00
Ludovic Marie 227edf7517 LAN guest: crafting in the inventory grid and at a crafting table
A guest could not craft: the host's inventory menu for guests had no
crafting slots (0-4 were always empty), and a crafting table the guest
used switched the host's own grid to 3x3 and opened nothing for the guest.

The guest's inventory menu (window 0) and a crafting table window
(minecraft:crafting) now run the host's vanilla-checked menu engine
(horizon_client::menu, Kind::Inventory / Kind::Crafting) over the guest's
inventory, kept between clicks so drags work, with the usual click
corrections. The 2x2 grid and its result are real slots of the guest's
inventory menu, so the slot sync carries them. Closing a menu puts its grid
back into the inventory (dropped if full); a guest leaving keeps it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:37:56 +02:00
Ludovic Marie 9948ff42aa LAN: other players' name tags, and the host under its own name
No player had a name tag: only mobs with a custom name drew one. The other
players now get theirs on both sides (the guests on the host, the players a
server sends on a client), shown as LivingEntityRenderer.shouldShowName
allows: no custom name or crosshair needed, a crouching player's only within
32 blocks, team visibility and colours by player name, the below-name score.

The host also joined its own LAN world as "Player": the guests' player
list, name tags and chat, the MOTD and the offline UUID now use the host's
profile name, as IntegratedServer does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:37:56 +02:00
Ludovic Marie 8d6b8b3f03 LAN: a trading screen a guest opens releases the chest it replaces
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:37:49 +02:00
Ludovic Marie f601630f05 LAN guest: fall damage, regeneration and hunger on the host
Nothing hurt a guest: the host only set a guest's position from its move
packets, so a fall did nothing, and their body never ticked on the server
(no damage clock, no regeneration, no food tick).

Each tick the host now runs a guest's server-side body like ServerPlayer:
the damage clock and Entity.baseTick's fluid phase, then
ServerPlayer.doCheckFallDamage for every move packet accepted that tick
(the supporting block, the fall distance and the landing, through the same
landing code as the host's own falls, so water resets a fall and lava
halves it), then peaceful regeneration and the food tick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:28:36 +02:00