web/website/docs/KIT-ATELIER-V3.md

67 lines
3.9 KiB
Markdown

# Netherite kit atelier
The v3 designer uses one bounded equipment contract for personal, clan, office,
faction and server kits. Every armour piece carries a netherite material, literal
name, up to six structured lore lines and a vanilla trim pattern/material. An
optional banner carries its base colour, up to six ordered pattern layers and
its own name and lore. Text components do not accept commands, click events,
HTML or arbitrary Minecraft component data. Blank lore lines are preserved;
colour, bold and italic are explicit.
Website validation lives in `control-panel/public/kit-design-model.mjs`. The
private game bridge uses `network/server-control/kit_equipment.py` and the
checked-in matching contract and cross-language fixtures.
Versioned equipment is saved in the same transaction as its blueprint revision
and audit entry. Updating a current design must never rewrite a paid order's
`snapshot_json`. Existing receipts retain the original purchased contract.
The rotatable browser preview uses the Minecraft 1.21.4 netherite, trim palette
and banner textures. The exact official client URL and Mojang SHA-1 are recorded
in `web/assets/kit-textures/source.json`. Only the small required PNGs are kept;
the downloaded client archive was removed. Minecraft textures are copyright
Mojang Studios; this is an independent fan project.
## Migration dependency corrected
The private bridge at 2.28.33.142 previously connected gameplay SQL to the old
website host. Its kit routines join the `website` schema, so removing that schema
broke the catalogue even though the main website was healthy. The gameplay
connection now uses a separate SSH forward at local port 13308 to 91.107.196.242.
The current 41 gameplay tables / 661 rows were copied during a brief pause of
the private control service and savings timer. Both services were resumed; the
catalogue was checked successfully against current website publications.
The LuckPerms connection remains on its existing separate port 13307. Do not
remove that tunnel or its database as part of website-file cleanup. No website
account, balance, receipt or current publication was restored from an older
website backup to make this correction.
Native bridge modules captured here originate from the running private bridge.
Their configuration and credentials are not part of the repository. Install
the v3 bridge and verify native item delivery before publishing the new editor
or changing live kit revisions. The previous Alpha 1.0.0.5 handoff's plugin
deferral described that older task; this rebuild includes the requested native
item implementation and its verification.
## Active inventory and activation
The active lobby runs DuneCore 1.0.27-layout1-jobs1 with MySQL inventory.
Its game worlds share that process. The inactive Arrakis directory has a
PostgreSQL configuration; it must not be mistaken for the active inventory.
For MySQL, DuneKits locks the paid, requested, buyer-bound `dune_kit_sales` row
and commits its delivery acknowledgement inside DuneCore's inventory transaction.
The PostgreSQL dispatcher service is **not enabled** for this deployment: running
both delivery paths against independent inventory databases could duplicate kits.
Its prepared configuration and additive outbox schema remain unused.
The lobby's existing private database credentials also match the gameplay bridge.
Before moving its connection from port 13307 to 13308, stop the empty lobby,
compare all gameplay tables, preserve any quest event delta and newer quest
schedule in a transaction, and retain a backup on the new mounted volume.
LuckPerms continues using its separate existing tunnel at port 13307.
Apply `scripts/remake-current-kits.mjs --apply` only after native delivery is
active. It locks current revisions, backs up the affected designs, adds distinct
rarity/faction heraldry, increments publication versions, and audits each change.
It preserves existing v3 edits and never updates paid receipt snapshots.