MC/docs/design/LOBBY-HOUSE-GUI.md
2026-11-27 23:43:05 +00:00

33 lines
7.3 KiB
Markdown

# Lobby House selection and Mentat welcome
`DunerealmsGUI.jar` is a standalone lobby plugin. It does not replace the newer live DuneCore or DuneLobby binaries. The initial release contains the five-House selector, explicit confirmation, matching existing adviser portrait, native Bedrock forms, a dedicated House Registrar NPC and the Imperial departure-window countdown. Only the lobby is deployed and restarted.
The owner deferred plugin removal until after the GUI is finished. Keep DuneMenus, AxiomPaper and AzLink installed for this rollout. Several older domain plugins declare DuneMenus as a hard dependency. The new plugin isolates its GUI classes under its own namespace to coexist with those older, incompatible bundled renderers.
## Client feedback update
The first live screenshots showed blurred artwork and a duplicated Inventory caption. Version 1.0.1 uses four-times-resolution source artwork split into a 4x4 grid of bounded bitmap glyphs; a single glyph stays under the native 256px texture limit. The font's negative spacing and per-row ascent preserve the existing logical click coordinates. The generator no longer bakes the vanilla Inventory title. Tile reconstruction and bounds are checked before building the additive immutable v2 pack.
Opening a GUI now says exactly `Jarvis executing matrix`. A persistent per-player scoreboard toggle is available through `/drscoreboard`, bare `/scoreboard`, `/drgui scoreboard`, and the Scoreboard button in either GUI/native Bedrock form. It defaults on, refreshes every 30 seconds while visible, and remembers hidden state through the player's persistent data. A separate private scoreboard prevents personal data entering the shared main board; existing sidebar objectives are respected and name-tag/collision teams are copied. Hiding restores the prior board only when this plugin still owns the current board.
The HUD reads Personal XP/level, Reputation XP/level, current active quest, House, visible clan/company names and the player's own active ordinary personal Postbank balances. It reuses the existing quest list readers and XP summary, current bank authority and account-view rules. It never collects facts, claims rewards, provisions bank identities or writes balances. Private actor-scoped cache lifetime is 30 seconds. Unavailable sections are null and display a dash, independently of available sections. It grants no new permissions or organisation authority.
The first bar-hiding attempt was insufficient: vanilla re-added the native dragon bar. The correction detaches only the live lobby's EndDragonFight controller after removing its viewers. It preserves the previous controller for a guarded restore on plugin shutdown, does not kill an entity or edit world NBT, and leaves other worlds alone. Unsupported server internals produce a warning rather than breaking the plugin. Verify the actual lobby startup and absence of the duplicate bar on the client.
The authoritative choices are Aerdrecht, Harkveen, Korenholt, Oordwijk and Vrijduin. Canonical faction IDs remain unchanged. The existing system-character catalogue and portrait atlas supply the adviser identities; no new accounts or portraits are invented. Java uses an additive resource pack with native inventory click regions; it is not an HTML renderer. Bedrock uses Floodgate forms with the same action semantics. No claim of identical Java/Bedrock artwork rendering is made.
`/house` opens the selector; `/mentat` opens the current adviser; `/drgui` and `/navigator` open the House service. The dedicated registrar is placed close to the lobby spawn. Existing world data and other NPCs are preserved.
The plugin reads the existing private DuneEss website bridge configuration and derives the acting UUID from the connected player. `/internal/game/house` accepts only authenticated game-service POSTs. No browser cookie, supplied account ID, arbitrary action, SQL or code is accepted. A confirmed initial choice issues the non-redeemable `character-allegiance` HOUSE record through the existing organisation key service. The service transaction rechecks the linked personal identity and expected character revision, writes the existing `site_character_choices` record, immutable typed key dossier and account audit together. Existing House allegiance cannot be switched through this initial-choice GUI. Changing an existing selection needs its separate authorised process. Confirming an existing legacy web selection of the same House can establish its HOUSE receipt.
Key codes never leave the service. Request UUIDs make an identical retry idempotent. Stale/conflicting requests, changed links, system identities and failed audits cannot partially update a character. Reading a House does not issue a key. House selection grants no kit, money, elected office, membership or teleport. Report opens the existing website mission journal rather than inventing unsupported in-game XP/reward actions.
## House-world Guild passage (1.0.2)
`/guildtravel`, `/drgui travel`, the Mentat Travel button and the existing lobby liaison's DuneEss travel command open the same key-driven menu. Only the current House destination is actionable: Aerdrecht to Kaladam, Harkveen to Giedermark, Korenholt to Kaiterhof, Oordwijk to Sigmadraken IV, Vrijduin to Arrakduin. Other worlds are grey and never book a journey. Without allegiance, the existing House selector opens. A legacy selection requires explicit confirmation to establish its normal HOUSE receipt before booking.
Booking holds a transient session until the next quarter-hour boundary; it issues no entitlement and charges nothing. A repeated identical booking cannot create duplicate departures. Quit, world change, shutdown and explicit cancellation clear it. Boarding re-reads the normal HOUSE key and revision, current fare, wallet funds and a fresh online destination status. Changed or unavailable data and boarding more than 60 seconds late cancel without a fare. The existing DuneEss consumer retains permission checks, fare collection and proxy transfer. The plugin replaces only its lobby command entry and restores the original executor on shutdown; DuneEss, DuneCore and DuneLobby binaries remain intact. The original proxy consumer requests a transfer without an arrival acknowledgement; this release does not claim confirmed arrival or add a new payment mechanism.
The bossbar counts down the existing 15-minute Imperial windows and announcements run at five minutes, one minute and ten seconds. Native Bedrock forms use grey unavailable buttons with no boarding action; Java uses five new tiled backgrounds in the immutable v3 pack. Smuggler and war departures remain subsequent work. Legacy Core House caches and Arrakis permissions are not overridden by the menu. No live paid journeys or House changes are performed as deployment tests.
Validation: isolated real-key/character transaction tests cover commit, replay, stale revision, changed link, synthetic system identity, failed-audit rollback, ordinary-key redemption denial and unauthenticated/forged requests. Java 21 builds the standalone plugin. The pack builder requires the exact live v8 SHA1 and verifies every pre-existing ZIP entry is byte-for-byte unchanged. The operator verifies startup, runtime JAR and resource-pack hashes after the lobby-only restart. Actual Java/Bedrock client visuals are verified separately, not inferred from a successful build.