94 lines
5.1 KiB
Markdown
94 lines
5.1 KiB
Markdown
# WorldOfSosal source versions and reset
|
|
|
|
The source map is independent of the running world. Keep every source revision
|
|
as a separate archive in Storage Box under `minecraft/map/versions/`.
|
|
Never replace an existing version. The original `minecraft/map/wow mine map.rar`
|
|
remains the parent source.
|
|
|
|
Each new version has a UTC timestamp in its filename and a JSON sidecar recording
|
|
its SHA-256, parent archive and hash, spawn dimension and coordinates, and changes.
|
|
Upload to a temporary filename, verify the remote SHA-256, then rename to the
|
|
final version filename. Pin that path and hash in
|
|
`nixos/system/neuro/minecraft/wow-mine-map.nix`.
|
|
|
|
The currently pinned source is the spawn revision described below. Resetting
|
|
restores its clean map with the Azeroth spawn datapack and no previous player
|
|
progress. The original RAR remains available as the parent version.
|
|
|
|
The server now uses the native `crafting_azeroth_height` datapack
|
|
(`min_y=-512`, `height=2544`). The modpack importer's `postStart` removes
|
|
`dynamicheight-0.2.0+neoforge-1.21-1.21.1.jar` and
|
|
`sable_dynamicheight_compat-1.0.0.jar` after every import.
|
|
The original pack archive remains unchanged.
|
|
|
|
With the previous mod configuration, saved Azeroth height changed from
|
|
MinY=-512, MaxY=2016 to MinY=-64, MaxY=320 and loaded chunks were rewritten.
|
|
The native-height trial checks the 81 chunks around `3742 89 8891`, saves them,
|
|
restarts Minecraft, and compares control blocks and chunk height metadata.
|
|
The 2026-11-12 trial passed on the main server: 12,798 sampled blocks matched the
|
|
source both before and after restart, all 81 chunks retained `yPos=-32` and
|
|
52-long heightmaps, and the cobblestone at `3742 88 8891` remained present.
|
|
No heightmap-size warnings appeared after restart. Temporary force-load tickets
|
|
are removed after the trial. This verifies server loading and persistence;
|
|
client login with the changed mod set is a separate check.
|
|
|
|
The active spawn revision is
|
|
`world-of-sosal-20261112T093842Z-spawn-3742-89-8891.tar.gz`, with SHA-256
|
|
`da3f79e5593a5b7485ed371d65341cc1516c78a19a1fba71874ae8c1d90e624c`.
|
|
Its parent is retained as `versions/world-of-sosal-original-bc80084d.rar`, with
|
|
SHA-256 `bc80084de10a06b0fc2cb1651c61936b9e2fd2288f3f0fe44c964d83a393aa30`.
|
|
The spawn revision includes `worldofsosal_spawn`, which initializes each new
|
|
character once at `3742 89 8891` in Azeroth and sets a personal respawn point.
|
|
Its source is `nixos/system/neuro/minecraft/world-of-sosal-spawn/`.
|
|
|
|
The spawn was re-enabled on 2026-11-12 after switching to native dimension height.
|
|
The working world was not reset or replaced: only the datapack, world spawn
|
|
metadata, and yukkop's personal respawn fields were changed. Player position,
|
|
inventory, and other player data were preserved. A full pre-change world copy is
|
|
kept at `/srv/minecraft/backups/wowMineMap-before-spawn-20261112T133407Z`.
|
|
After restart, the saved world spawn and personal respawn fields were verified
|
|
at `3742 89 8891`, with personal `SpawnDimension=crafting_azeroth:azeroth` and
|
|
forced respawn enabled. The spawn datapack was enabled in the running server.
|
|
Across 81 loaded chunks, all 12,798 control blocks matched the pre-change working
|
|
world; `yPos=-32`, 52-long heightmaps, and the cobblestone below spawn were
|
|
preserved. There were no heightmap-size warnings. The temporary force-load
|
|
tickets were removed after verification.
|
|
|
|
To discard all gameplay changes and return to the pinned source:
|
|
|
|
```sh
|
|
ssh neuro systemctl start minecraft-world-reset-wowMineMap.service
|
|
```
|
|
|
|
This command deletes the entire working world, including all dimensions,
|
|
inventories, player positions, advancements, and statistics. It first verifies
|
|
the cached source archive's SHA-256, stops the game and world importer, deletes
|
|
`/srv/minecraft/wowMineMap/world`, then starts the server. The existing importer
|
|
extracts the pinned archive before Minecraft starts.
|
|
|
|
Mods, server configuration, operator permissions, and source archives remain.
|
|
Ordinary server restarts preserve the working world; only the explicit reset
|
|
command discards it.
|
|
|
|
Check completion with:
|
|
|
|
```sh
|
|
ssh neuro systemctl status minecraft-world-reset-wowMineMap.service \
|
|
minecraft-world-import-wowMineMap.service minecraft-server-wowMineMap.service \
|
|
--no-pager
|
|
```
|
|
|
|
An inactive reset service with exit status 0 is expected after completion.
|
|
The cache must already contain the pinned archive. To switch source versions,
|
|
deploy the changed importer and cache the verified archive before resetting.
|
|
|
|
The initial deployment on neuro installs the generated import and reset units
|
|
under `/etc/systemd/system.control/`, with GC roots
|
|
`/nix/var/nix/gcroots/worldofsosal-world-{import,reset}-unit`. This avoids an
|
|
unrelated NixOS upgrade. These persistent units override ordinary NixOS units:
|
|
replace both links and GC roots when deploying another source revision, or
|
|
remove the overrides after a full NixOS activation includes the same revision.
|
|
The modpack importer also has an override under `/etc/systemd/system.control/`,
|
|
pinned by `/nix/var/nix/gcroots/worldofsosal-modpack-import-unit`. Update or remove
|
|
that override under the same rules when changing the modpack import configuration.
|