Materialize typed catalog state

This commit is contained in:
Meta Vens 2026-06-13 06:52:19 +01:00
commit 2617f3fdbd
150 changed files with 447 additions and 4 deletions

1
.gitignore vendored
View file

@ -112,4 +112,5 @@ Aetheria.State.Smoke/obj/
Packages/packages-lock.json
GameData/PlayerSettings.msgpack
GameData/*.cultmesh/
Vault/Aetheria/.obsidian/plugins/copilot/data.json

View file

@ -9,6 +9,8 @@ var root = args.Length > 0 ? Path.GetFullPath(args[0]) : Directory.GetCurrentDir
var statePath = args.Length > 1
? Path.GetFullPath(args[1])
: AetheriaStatePaths.ResolveDefaultStatePath(root);
var sourceRoot = Path.GetRelativePath(Directory.GetCurrentDirectory(), root).Replace('\\', '/');
var outputStatePath = Path.GetRelativePath(root, statePath).Replace('\\', '/');
var gameData = Path.Combine(root, "GameData");
var catalogPath = Path.Combine(gameData, "AetherDB.msgpack");
@ -46,7 +48,7 @@ await using var node = await AetheriaStateNode.OpenAsync(statePath, "aetheria-le
await node.PutLegacyCatalogQuarantineAsync(new AetheriaLegacyCatalogQuarantine
{
RootPath = root,
RootPath = sourceRoot,
CapturedAtUtc = capturedAtUtc,
CatalogFile = catalog.RelativePath,
CatalogFingerprint = catalog.Fingerprint,
@ -102,7 +104,7 @@ await node.PutMigrationLedgerAsync(new AetheriaMigrationLedger
[
"Legacy catalog quarantine captured file fingerprints and mapped stable old MessagePack union payload fields into typed CultCache documents.",
"The mapper intentionally reads only stable scalar/catalog fields. Runtime object graphs, behavior payloads, and Unity-specific shapes remain legacy until dedicated typed documents exist.",
$"State path: {statePath}"
$"State path: {outputStatePath}"
]
});

View file

@ -6,8 +6,10 @@ It uses modern `GameCult.Caching`, `GameCult.Caching.MessagePack`, and
`GameCult.Mesh`. It does not reference the old `Assets/Scripts/ServerShared`
tree, RethinkDB, JsonKnownTypes, or Newtonsoft.Json.
The first live state file is `GameData/aetheria-world.cc`. Legacy files such as
`GameData/AetherDB.msgpack` are migration inputs only.
The first live state file is `GameData/aetheria-world.cc`. It is generated by
`Aetheria.State.Import` from checked-in legacy catalog inputs without embedding
machine-local absolute paths. Legacy files such as `GameData/AetherDB.msgpack`
are migration inputs only.
The typed runtime state model is split into player settings, run state, zone
state, entity snapshots, item slots, weapon groups, action-bar bindings, and

BIN
GameData/aetheria-world.cc Normal file

Binary file not shown.

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