Add native crossplay menus and organic Arrakis highlands

Recovered from the attached four-commit source patch (original tip 1686291). Includes native Java/Bedrock menus, minimal Essentials, organic highlands, finite Dense Spice, desert villages, Harkonnen fortress and three personal highland sietches. Original validation reports 50 passing tests on Java 21/Paper 1.21.8. Live Paper/Velocity/Bedrock/ViaVersion staging remains pending. Existing world, configuration and player data must be preserved.
This commit is contained in:
unimatrix 2026-10-21 17:12:41 +02:00
commit d988ea2983
3 changed files with 2005 additions and 138 deletions

View file

@ -0,0 +1,17 @@
# Arrakis update validation
Development branch: `feature/organic-arrakis-plateaus`.
Built on Java 21 for Paper 1.21.8: DuneRealms-Core 1.0.11, DuneRealms-Essentials 1.0.3, and DuneRealms-Terrain 1.0.9. Existing compiled NPC and Lobby JARs remain unchanged. 50 JUnit tests pass across Core (11), Essentials (19), Terrain (15), and NPC (5). Lobby has no unit tests.
Terrain tests cover deterministic asymmetric contours, cardinal gaps 300–500, upper and lower terrace groups, bounded erosion ridges, biome footprint alignment, exact 900-column rich patches including negative coordinates, seeded fortress attempt rate, persistent deposit identity consumption across listener restarts, farm-free village palette/bed/job-site generation, and fortress entrance/vault geometry. Deposit tests use mocked Paper chunk PDC and creative harvesting; real server event dispatch still requires staging.
The development preview invokes the actual compiled private Arrakis formation generator using a ChunkData recording proxy. At X 166, Z 165 the lower flat sand surfaces are Y 85 / 89 / 93 and upper surfaces Y 117 / 121 / 125. Each group has four-block steps. The rocky shoulder between groups is intentionally taller. Both exposed block positions and material types are recorded for the renderer. [Generator render](../DuneTerrain/previews/dune-highlands.png) is not an in-game screenshot or shader promise.
Biome and loot JSON parse successfully; data pack archive and all five project JARs pass ZIP integrity checks. Release packaging verifies pinned crossplay SHA-256 checksums and includes the server-side Arrakis datapack alongside all server JARs in one ZIP.
No live Minecraft server or Java/Bedrock clients were run. Biome registry startup, Geyser biome translation, ViaVersion handling, asynchronous chunk generation/population, natural village AI, real block physics, protection-plugin interactions and economy/NPC purchases need a separate staging world. No existing world, configuration, economy database or player data was modified. Install the updated Core and Terrain together for authoritative Harkonnen kit loot, and Essentials for seller purchases.
Publication requires authenticated DuneGit access. The current browser runtime cannot resume native credential state and Git has no credential helper. No credentials from chat are used; local commits and packages are not proof of a remote push.
Highland sietch placement: 441 default highland regions across positive and negative coordinates each have three deterministic, distinct sites at least 26 blocks apart inside the highland footprint. A population test also checks three actual chest placements and the highlands-only disable switch. The original open-desert placement formulas and spacing are unchanged; highland sites use separate cache identities. Compact cave geometry, real chunk population, cave connectivity, fluid physics and personal loot still need live staging.

View file

@ -0,0 +1,37 @@
# Native GUI branch validation — 2026-10-21
Branch: `feature/native-gui-1.21.8`, based on `c692949a78f09a117d84684dbae7f9aef39189af`.
Java: Temurin 21.0.12.1; Gradle: 8.14; Paper API: 1.21.8.
| Module | Compile/build | Automated tests |
| --- | --- | --- |
| DuneRealms Essentials | Passed | 19 passed |
| DuneRealms Core | Passed | 11 passed |
| DuneRealms Terrain | Passed | 2 passed |
| DuneRealms NPC | Passed | 5 passed |
| DuneRealms Lobby | Passed | No existing automated tests |
New checks include owner-bound menu sessions, stale screen invalidation, one-use selection,
expiry, normalized/validated home names and teleport consent with repeated acceptance rejected.
The existing SQL exchange, economy, announcements, terrain, and NPC tests remain enabled.
The Paper API upgrade required stubbing `Plugin.namespace()` in the sandworm mock; production
sandworm code was unchanged. Mockito is now installed explicitly as a test-only Java agent.
Geyser/Floodgate Spigot and Velocity variants and ViaVersion downloaded successfully and
matched the official pinned SHA-256 metadata. The all-server ZIP has eleven plugin JARs;
the network ZIP verifies 45 JAR placements across the proxy and six backends. ZIP integrity,
plugin descriptors, workflow YAML, Python syntax and `git diff --check` were checked.
No existing worlds, runtime configuration, database or player data were opened or modified.
The local packaging test creates fresh-install templates only in ignored generated directories.
## Pending
* Live Paper 1.21.8/Velocity, Java 1.21.8, supported older Via clients, and Bedrock clients.
* Visual dialog/form behavior, bed/anchor death/respawn, actual transfers and live shared SQL.
* DuneGit push: unauthenticated HTTPS write requires repository authentication.
* GitHub publishing: connected API returned 403, "Your account was suspended".
No production deployment or merge has been performed. This is a staging candidate, not a
claim of live compatibility. Follow the checklist in Native-GUI.md before production rollout.

111
docs/Native-GUI.md Normal file
View file

@ -0,0 +1,111 @@
# DuneRealms native menus and Essentials
Target: Paper 1.21.8, Java 21. No resource pack or client mod is needed.
## Plugin filenames
| Module | Published filename | Existing internal ID / data folder |
| --- | --- | --- |
| DuneCore | DuneRealms-Core.jar | DuneCore |
| DuneEss — DuneRealms Essentials | DuneRealms-Essentials.jar | DuneEss |
| DuneTerrain | DuneRealms-Terrain.jar | DuneTerrain |
| DuneNPC | DuneRealms-NPC.jar | DuneNPC |
| DuneLobby | DuneRealms-Lobby.jar | DuneLobby |
The internal IDs intentionally remain stable. Do not rename existing plugin data folders.
Stop each backend and replace its old project JARs; do not leave duplicate old/new copies.
Do not replace existing worlds, server properties, configs, balances, SQL databases or player data.
Back up the existing server and database first. The network ZIP is a **fresh-install template**;
never extract it over an existing deployment. Existing configuration files are not rewritten.
## Menus
CHOAM Exchange, DuneEss help/travel, the configurable Navigator (including its economy pages),
lobby departures and `/essentials` now use a shared renderer:
* Bedrock: Floodgate native SimpleForms, checked before Java protocol detection.
* Java 1.21.6+ (protocol 771+): native Paper dialogs, including Paper 1.21.8 clients.
* Earlier clients supported by the existing Via stack: clickable chat actions.
* Unknown Via protocol: clickable chat fallback, avoiding unsupported dialog packets.
CHOAM listings retain the SQL transactions, tagged item payloads, ownership checks,
capacity checks, purchase/reclaim confirmations and Solaris economy. Actions are owner-bound,
expire after two minutes, accept only one selection and become invalid when a new menu opens.
Bedrock responses schedule gameplay actions on the Bukkit thread. The shared layer does not
shade or duplicate Geyser, Floodgate, ViaVersion or Cumulus APIs.
The existing DuneNPC/admin-only inventory interfaces are outside this player-menu migration.
Older client login support still depends on the installed ViaBackwards/ViaRewind configuration;
ViaVersion by itself permits newer clients, not every older version.
## Crossplay package
`tools/crossplay-lock.json` pins official download URLs and SHA-256 hashes:
* Geyser 2.12.0 build 1267 (Spigot and Velocity)
* Floodgate 2.2.5 build 141 (Spigot and Velocity)
* ViaVersion 5.12.1 (universal)
Run `python3 tools/download-crossplay.py built-crossplay` to obtain and verify the JARs.
Upstream metadata was checked on 2026-10-21. These are pinned builds, not moving `latest` URLs.
Run `python3 tools/package-server.py` after the Gradle builds for a local all-JAR ZIP.
The actual supported Bedrock versions follow the selected Geyser release; staging must verify
that version against the production Bedrock clients before rollout.
For a standalone Paper server: install the Spigot variants and ViaVersion in `plugins/`.
For Velocity: install Geyser-Velocity and Floodgate-Velocity on the proxy; install
Floodgate-Spigot and ViaVersion on every Paper backend. Do not also install Geyser-Spigot
behind a proxy running Geyser. Do not install ViaVersion at both proxy and backend layers.
Retain existing ViaBackwards/ViaRewind plugins if used.
For backend forms, enable `send-floodgate-data` on the proxy and use the same Floodgate
`key.pem` on the proxy and backends. Keep that private key out of Git and ZIPs.
Set Geyser's `auth-type` to `floodgate`, retain existing UUID/link settings, and keep backend
ports protected. Do not regenerate keys, forwarding secrets or player UUID settings during an upgrade.
GitHub build.yml publishes **DuneRealms-All-Server-Jars.zip**, containing every Dune plugin,
Vault and the platform-specific crossplay plugins together, plus the lock manifest and instructions.
The network workflow puts the appropriate JARs into each server directory and includes the lobby
plugin only on the Spacing Guild backend. Paper/Velocity engine executables are obtained separately;
this package contains server **plugin** JARs.
## Minimal essentials
`/duneess` and `/essentials` open **DuneRealms Essentials**. The existing `/duneess help`,
economy, trade, administration, spice sale and travel commands continue to work.
* `/sethome [name]`, `/home [name]`, `/delhome [name]`, `/homes`
* `/tpa <player>`, `/tpaccept`, `/tpdeny` (60-second consent requests)
* `/spawn` for the current world
* `/server [planet]` for the existing paid Guild server travel
Permission: `duneess.basics` (default true); default home limit: three, configurable through
`essentials.max-homes`. Homes persist atomically in `plugins/DuneEss/homes.yml`, keyed by UUID.
They are local to the backend, not synchronized across the proxy. Player requests and home/spawn
teleports remain within the current world, so they cannot bypass planet permits or fares. Use
Guild travel first, then the destination's local homes. Vanilla handles valid bed/anchor respawns;
this plugin does not overwrite existing spawn locations, beds, anchors or respawn event behavior.
HuskHomes was evaluated as a focused alternative to EssentialsX. It supports global homes and
cross-server player teleports, but also exposes a substantially broader command surface. This
change implements a small original subset inside DuneEss; it does not embed or bundle HuskHomes.
If global homes or cross-server player-to-player teleports are wanted, that requires an explicit
shared destination/arrival design rather than bypassing the existing Guild economy.
## Verification and rollout
Run Gradle 8.14 `clean build` for all five modules on Java 21. The feature branch workflows
also compile/test before creating ZIPs. Unit tests cover session ownership, expiry/invalidation,
repeated selection and home-name validation, alongside the existing trading/economy tests.
Before merging/deployment, verify on an isolated Paper 1.21.8/Velocity staging copy:
1. Java 1.21.8 dialogs, supported older Via client fallback, and current Bedrock forms.
2. Listing, filtered browsing, pagination, buy, reclaim, full-inventory rejection, offline database,
stale confirmation and repeated click. Compare Solaris and item counts before and after.
3. Help pagination, configured Navigator actions, fares/permits, lobby departures and proxy failure.
4. Save homes, restart, reconnect, request/accept/decline/expiry, permission denial, full home limit,
absent worlds, and vanilla death at a valid bed; test broken beds and anchors as well.
5. Compare world/config/player/database snapshots before and after; deploy only replacement JARs.
Compilation and unit tests do not establish live Bedrock rendering or proxy transfer compatibility.