Add saved Spacing Guild lobby with Dune II starport and smuggler market

This commit is contained in:
unimatrixgit 2026-10-18 17:23:29 +02:00
commit 5677340853
31 changed files with 1028 additions and 0 deletions

28
.github/workflows/lobby.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Build Guild Lobby companion
on:
workflow_dispatch:
push:
branches: [main, beta]
paths: ['DuneLobby/**', 'worlds/**', '.github/workflows/lobby.yml']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.14'
- run: gradle -p DuneLobby build
- uses: actions/upload-artifact@v4
with:
name: Dune-Guild-Lobby
path: |
DuneLobby/build/libs/*.jar
worlds/Dune-Guild-Lobby-1.0.0.zip
DuneLobby/README.md
DuneLobby/VALIDATION.md
if-no-files-found: error

77
DuneLobby/README.md Normal file
View file

@ -0,0 +1,77 @@
# Spacing Guild lobby world
A separate **Minecraft Java / Paper 1.21.4 / Java 21** End-dimension lobby. The world is already built and saved in [`../worlds/Dune-Guild-Lobby-1.0.0.zip`](../worlds/Dune-Guild-Lobby-1.0.0.zip); the deterministic builder and runtime companion are here. It does not replace a planet world.
![Design concept](previews/guild-lobby-concept.png)
The image above is AI concept art generated with the built-in image tool, not an in-game screenshot. Actual architecture uses vanilla block geometry; the End sky is vanilla, not a shader or a custom purple sky. Ordinary vanilla light is not coloured. The saved world contains enclosed roofs; the concept removes them to show the rooms. [`previews/saved-world-plan.png`](previews/saved-world-plan.png) is generated from the actual saved blocks.
## Rooms
| Room | Centre X/Z | Contents |
|---|---|---|
| Central spawn | 0 / 0 | Safe arrival at **0.5, 81, 10.5**, facing north; block-built aquatic Navigator inside an amber glass tank, Guild liaison |
| Starport / teleport | -78 / -58 | Dune II inspired square arrival apron, grounded frigate, control tower and **five raised launch pads** with striped edges, lights and destination consoles |
| Official Exchange | -66 / 40 | CHOAM counters, commodities, storage and Exchange Broker |
| News | 62 / -42 | Illustrated dispatch panel, reading benches and interactive news lecterns |
| Rules | 62 / 37 | Charter panel, benches and interactive rules lecterns |
| Smuggler exchange | -66 / 101 | Dim side passage, screens, brown awnings, crates, worn copper; separate **water** and **spice** seller NPCs |
All rooms connect by enclosed corridors. Launch consoles ask for confirmation. There are no Nether portals: the starport is a landing/launch design.
## Install the already built world
1. Use a **separate lobby Paper backend**. Stop that server before copying files. Leave existing planet servers and worlds in place.
2. Extract the ZIP into the server directory. It contains `guild_lobby/`, `plugins/DuneLobby-1.0.0.jar`, and these setup instructions. Do not extract over an existing `guild_lobby`; preserve it separately first.
3. Install [ImageFrame from Spigot](https://www.spigotmc.org/resources/106031/). The tested version is **2026.1.5.0**, which lists Minecraft 1.21.4 support. With Python available, `python DuneLobby/tools/install_imageframe.py /path/to/lobby-server` downloads that exact dependency and verifies its SHA256. The third-party JAR is not vendored in this repository/package. Dependency source: <https://github.com/LOOHP/ImageFrame> (GPL-3.0).
4. Start Paper. DuneLobby loads `guild_lobby` as **THE_END**, preserves the saved blocks and restores the eleven ImageFrame panels. Artwork is included in DuneLobby's JAR, so no remote artwork hosting is required. ImageFrame map IDs are allocated for this server rather than trusting IDs from another world. Keep ImageFrame installed to render the pictures.
5. `/lobby` returns to central spawn. Console `dunelobby verify` checks spawn clearance, room/pad/vendor accessibility, NPCs and artwork. Console `dunelobby artwork` restores decorations if required; it reuses registered image maps instead of creating duplicates.
DuneLobby creates a world only when **console** runs `dunelobby build`, and refuses if a folder with that name already exists. This command is for reproducing a new world, not installing the included map. No planet file or existing lobby structure is regenerated on startup.
Keep Paper's default primary world as a small bootstrap world; the plugin loads the End lobby as a secondary world and routes joins/respawns there. Do not use `guild_lobby` as `level-name`, since that loads it as the primary overworld before the plugin can select THE_END. Example **lobby backend** settings:
```properties
level-name=lobby_bootstrap
level-type=minecraft:flat
generator-settings={"layers":[],"biome":"minecraft:the_void","structures":{}}
generate-structures=false
allow-nether=false
spawn-protection=0
```
For an existing multiworld server instead of a dedicated backend, set `join-at-lobby: false` and `respawn-at-lobby: false` in `plugins/DuneLobby/config.yml` to preserve other plugins' routing. The shipped ZIP is a **Paper multiworld import**, not a standalone singleplayer save or a schematic. DuneLobby supplies the void generator and prevents new End terrain around the build.
## Network and economy
- Optional DuneEss: launch consoles call the player's existing `/duneess travel <planet>`, preserving configured fares, permissions and Arrakis checks. The Navigator liaison opens `/duneess travel`.
- Without DuneEss: consoles teleport to an already loaded planet world, or request a Velocity/Bungee `Connect` using the names in the lobby config. Requests have no delivery acknowledgment and charge no fare. Configure and test the destinations on your own network; no live server deployment is performed by this package.
- The Exchange Broker opens `/dune exchange` when DuneCore is installed. Without DuneCore it explains that the official market needs that integration; no fake Solaris balances are created.
- Both smuggler sellers work without DuneCore/Vault: one drinking water potion for 4 emeralds, one orange-dye spice sample for 8 emeralds (configurable). **These are lobby barter goods**, deliberately not tagged finite Arrakis water or redeemable DuneCore spice. This avoids minting Solaris or faction rewards outside the existing economy. They are stationary, named, invulnerable villagers with custom merchant menus.
- News and rules lecterns display the text in the companion config. Run `dunelobby reload` after edits. Illustrated noticeboards are static artwork, not a live website feed.
Velocity example (adapt the backend address):
```toml
[servers]
lobby = "127.0.0.1:25570"
# Keep existing planet entries.
try = ["lobby"]
[advanced]
bungee-plugin-message-channel = true
```
Use your existing modern forwarding configuration and forwarding secret. Do not install DuneTerrain on a dedicated lobby backend, since it is intended to create a selected planet. DuneCore/DuneEss remain optional and their shared economy/database setup is unchanged.
## Protection and build
Visitors cannot break/place blocks, manipulate frames, use ordinary container blocks or damage entities in the lobby. Explosions do not damage blocks, hostile spawns are suppressed, and falling below the build returns the player to spawn. Operators have `dunelobby.build` for maintenance; other worlds are unaffected. This companion does not implement a general-purpose region protection system for other plugins' console edits.
Build the companion with `gradle -p DuneLobby build` using Java 21 and Gradle 8.14+. Typographic boards are reproducible with `python DuneLobby/tools/prepare_boards.py` (Pillow). Existing project artwork is copied unchanged from `docs/artwork`. The build embeds the local artwork; it downloads no artwork.
Design references: [1984 Navigator / heighliner production artwork](https://www.duneinfo.com/arrakis/navigators/), [Dune II Starport](https://dunerts.wiki.gg/wiki/Starport_(Dune_II)). Reference designs are interpreted in blocks; the original game sprites and film stills are not included as new assets.
## Validation
See `VALIDATION.md` for the recorded build, actual saved-world checks and limitations. The package includes `manifest.json` with file hashes. No live network, paid Solaris transfer or real player account is used in local validation.

31
DuneLobby/VALIDATION.md Normal file
View file

@ -0,0 +1,31 @@
# Guild lobby delivery validation — 2026-10-18
## Delivered
- Saved End world: `worlds/Dune-Guild-Lobby-1.0.0.zip`, **10,893,624 bytes**, SHA256 `6ecfef68a94a603d1f0a7a0485c3bcfd40eeb2180205347e2a2a7eb0f143dda8`.
- ZIP contains the actual `guild_lobby/level.dat`, End Anvil region/entity/data files, DuneLobby 1.0.0 companion JAR, verified dependency installer, setup instructions and per-file SHA256 manifest. It contains no server executable, player data, session lock or world UUID file.
- Source, original panels and reused project artwork are in `DuneLobby/`. Source builds embed the artwork and do not fetch remote images.
- AI design preview and an independent plan rendered from the saved chunks are in `DuneLobby/previews/`.
## Checks completed
1. Compiled with Java 21.0.12.1 and Gradle 8.14 against Paper API 1.21.4. Build passed. This module has no separate unit-test suite; validation below runs the actual server/world.
2. Started a local, loopback-only **Paper 1.21.4 build 232** server with pinned **ImageFrame 2026.1.5.0**. Generated all six rooms, block Navigator, starport arrival apron, five launch platforms, frigate, corridors and four NPCs. Installed eleven ImageFrame panels (276 map tiles).
3. Runtime flood-fill checks passed: **16,274 reachable standing cells**, clear supported central spawn, routes to every room, both smuggler counters and all five raised launch pads. World environment reported **THE_END**.
4. Stopped and restarted the server. The imported world was reused, NPCs remained and artwork restored. Runtime verification passed after restart, without duplicate frames or merchants.
5. `dunelobby build` refused an existing world folder, as intended.
6. Extracted the package into a **second fresh Paper server** with no ImageFrame data or primary-world map data. It imported the End world, recreated its own image-map registry and restored all eleven panels. Runtime verification passed there too. A subsequent restart checked the final panel-facing adjustment and passed again.
7. Independently decoded the saved Anvil/NBT data after shutdown: Minecraft data version **4189**; spawn **0,81,10**; clear headroom; **109,535 non-air blocks in build height**; six supported room centres; five marked launch pads; exactly **4 villagers** (one each liaison, official broker, water seller, spice seller); exactly **276 glowing item frames**; **no Ender Dragon**. See `previews/saved-world-plan.json`.
8. ZIP integrity check passed. All included file hashes are recorded in its `manifest.json`. Temporary validation servers were shut down after testing.
Final runtime output:
```text
GUILD_VERIFY PASS walkable=16274 artwork=276 []
```
## Practical limits
The preview is concept art. The map uses real vanilla blocks, End atmosphere and ordinary vanilla light. There was no graphical Minecraft client available for an in-game visual walkthrough; the saved-block plan was visually inspected. Paid Solaris transactions, actual player merchant clicks and remote proxy destinations were not exercised. DuneEss/DuneCore integration routes through their existing player commands; configure those optional plugins before using the official economy. Lobby merchants use emerald barter and their spice/water are separate sample goods, not faction reward currency. No live server was deployed.
The dedicated lobby has its own join/respawn routing. On an existing mixed backend, disable that routing in the companion config. Install ImageFrame separately using the pinned installer or its official distribution. Keep its data and primary-world map data with normal server backups after installation.

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
DuneLobby/artwork/news.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
DuneLobby/artwork/rules.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 KiB

View file

@ -0,0 +1,8 @@
plugins { java }
group = "com.example"
version = "1.0.0"
repositories { mavenCentral(); maven("https://repo.papermc.io/repository/maven-public/") }
dependencies { compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT") }
java { toolchain.languageVersion.set(JavaLanguageVersion.of(21)) }
tasks.withType<JavaCompile> { options.encoding = "UTF-8" }
tasks.processResources { from("artwork") { into("artwork") } }

View file

@ -0,0 +1,8 @@
# Lobby previews
- `guild-lobby-concept.png`: built-in ImageGen concept rendering, generated 2026-10-18. This is a visual design reference, not a Minecraft screenshot.
- `saved-world-plan.png` and `.json`: rendered and inspected from the actual saved Anvil world by `tools/inspect_world.py`; no image-generation model is used for the plan.
Final ImageGen prompt (reference image was the preceding five-room starport concept):
> Update this Minecraft Dune Spacing Guild lobby rendering with a SIXTH room, a shady SMUGGLER EXCHANGE. Preserve every existing room: central spawn with amber Guild Navigator tank, Dune II-inspired STARPORT / TELEPORT upper left with square landing and launch pads and block-built frigate, official EXCHANGE left, NEWS upper right, RULES right, purple End atmosphere and gold/blackstone architecture. Widen framing or pull back as needed to show all six distinct connected rooms clearly. Add the new smugglers' den as a substantial enclosed annex in the lower foreground below the official Exchange, attached via a narrow dim side corridor branching off the official Exchange. It must be visibly different: lower vaulted ceiling (removed for cutaway), dark worn stone, rusty copper pipes, patchwork brown cloth awnings/screens, stacked barrels and crates, low amber lanterns, discreet violet accents. TWO separate Minecraft villager seller NPCs behind separate screened market counters: WATER SELLER next to blue glass water vessels and a cauldron, SPICE SELLER beside orange spice samples and sacks represented by brown blocks and barrels. Small clear labels over counters 'WATER' and 'SPICE'. Shady illicit back-room atmosphere but navigable and readable. Clearly label the new annex 'SMUGGLER EXCHANGE' with matching clean external architectural callout. Keep five other callouts correctly pointing to their rooms. Floor of annex is fully supported and bounded, no unsafe holes; visible corridor connection. High-quality architectural Minecraft shader concept overview, block-built geometry and pixel textures, no photoreal smooth creatures. Retain wall artwork in framed maps. One wide coherent elevated isometric roofless cutaway, clean presentation, no HUD or watermark.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 MiB

View file

@ -0,0 +1,21 @@
{
"minecraft": "1.21.4",
"data_version": 4189,
"spawn": [
0,
81,
10
],
"saved_non_air_blocks_in_build_height": 109535,
"entities": {
"minecraft:glow_item_frame": 276,
"minecraft:villager": 4
},
"npc_roles": {
"exchange": 1,
"water": 1,
"spice": 1,
"liaison": 1
},
"checks": "PASS: saved spawn, five launch pads, six rooms, four unique NPCs, 276 artwork frames, no dragon"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View file

@ -0,0 +1 @@
rootProject.name = "DuneLobby"

Some files were not shown because too many files have changed in this diff Show more