From 344776fd00b250554332c57ba378bf2cffb93c10 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 13 Jun 2026 08:50:00 +0100 Subject: [PATCH] Demote player settings from MessagePack --- .voidbot/state/aetheria.cc | Bin 19656 -> 19948 bytes Assets/Scripts/ServerShared/PlayerSettings.cs | 29 ++++++++---------- docs/aetheria-perfect-machine-map.md | 13 +++++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index 30b5d7081f5eabf25d9e9861fd03a1218fc98ff3..f6ff18c901b45c71e2e43751fc6d7b976003f52e 100644 GIT binary patch delta 1308 zcmZWpO=}cE5Oot#112Q6IYbjJQB*=QA**f@MKt0?B_0Hsok`h=^na!vMwGL z_39;z7ZFb?0TDmgyNDooQo&QiU*N}25Uie^NwVv;s=D8+_g?p>N4ejRb8lALI>t{F z3eNcG@%fcpZ~U?CL0TwGBn8=iCoLQsO$s}<4z!(mTR*(@^1ci2CebXS;tWEcRZ)RP zW4I`5(1saY)lm>IRb88zN!qhnmkAF9YJ*;OB7SwCKmIwmv!)kWh}wDX`iuwPb4RW& zBKTNlZWWp@aROZqnY#oP#SKAMmvBoFTC3gRmOvw29_U;-;;UdflJLxh3t`wvs0%;A`P-z6aI8ky| z4GO!!+UIp`(c^}ol-+{+e#?pk*tjbCRp^uwf*G=;Z$rKlZb`&ONC-b$3m+-dP zkgp=u5@@o-_fm~h@fw<}XO9ab(=E9mF3hw16zWJRa*y)a8jCDSWF+%EJHUwXL5ems zl2PL1V@axj8RrEPF4=emOZvx_UG+bQ2DY6)KgB|bLXSlBlH9Z)Y$#=;uP~tSS(t_w zskl&PVSRGACl|BcJ#m=t>}*PW+>`H{JGUu}M3PuCYk;FO7P+9bNc>h5B^>kl+v)J8}{6b?B#rbE3l}Xrq{cf>8*ZrCzK_AO-W^Vn-SXal6 zY&c$-+@1bT#X|Bs{W|kLD>Obd*}g6QG8tyY@nq`8*?VbW?5Hi&|DOHOkyVQG{{YG0 B+UEcO delta 1126 zcmZ8hJ!=&~6g4r#1VK?_BZ@bT7Me{ANuHmGF)BfWA83>AzMcDaM`vf2nb|xSi{}T} zS;%4`778i>u@D}DSgDn0BUlCe33j55jd$PM7fjl-GxwZ(&YAuBr0?_NzBkML!&676 zXM&m9k;R97JBzKegT>eW`xSU(vIClpw|c-#2N)XI(|`Oyd;h@Yy{&hr$j4+Q!nJv@ znf5Xvn7ew>ExRm9(B>;Q&r@DEXay+DP3Aja0WEZrhlq-jhU6xEetb1-sAI*5#>;AN;#CM$pDb(;ALU9!XoQm&$FLdqxf zs?HRxqj4b}!#VJ6=g0+6ydN8FK@%PDUGgLjf-`G03Tj}cd~a@VjU@BP#{qp;DdQ-P zfhA|u60hmVXDP7U(CCKLeA1iFdWs?pSpj-fCSqDwOiXQRp_fKO-DFy@lfkkl?HF14 zyMQ`}2ooxWj|-EOTUGkOd8ri7vNm5M8ojr&o_TUmrw}to5N6hr_OOn>be*$ob;30D z>lAv3ET*xmhR3 HashedStoryFiles = new Dictionary(); - [Key(4)] public PlayerGameplaySettings GameplaySettings = new PlayerGameplaySettings(); - [Key(5)] public PlayerInputSettings InputSettings = new PlayerInputSettings(); - [Key(6)] public PlayerGraphicsSettings GraphicsSettings = new PlayerGraphicsSettings(); + public string Name = "Anonymous"; + public bool TutorialPassed; + public Dictionary HashedStoryFiles = new Dictionary(); + public PlayerGameplaySettings GameplaySettings = new PlayerGameplaySettings(); + public PlayerInputSettings InputSettings = new PlayerInputSettings(); + public PlayerGraphicsSettings GraphicsSettings = new PlayerGraphicsSettings(); public string FormatTemperature(float t) { @@ -49,25 +47,22 @@ public class PlayerSettings } } -[MessagePackObject] public class PlayerGameplaySettings { - [Key(0)] public TemperatureUnit TemperatureUnit = TemperatureUnit.Celsius; - [Key(1)] public int SignificantDigits = 3; + public TemperatureUnit TemperatureUnit = TemperatureUnit.Celsius; + public int SignificantDigits = 3; } -[MessagePackObject] public class PlayerGraphicsSettings { - [Key(0)] public Quality NebulaQuality = Quality.Normal; - [Key(1)] public bool ShowAsteroidsInMinimap; + public Quality NebulaQuality = Quality.Normal; + public bool ShowAsteroidsInMinimap; } -[MessagePackObject] public class PlayerInputSettings { - [Key(0)] public Dictionary<(string action, int binding), string> InputActionMap = new Dictionary<(string action, int binding), string>(); - [Key(1)] public List ActionBarInputs = new List(); + public Dictionary<(string action, int binding), string> InputActionMap = new Dictionary<(string action, int binding), string>(); + public List ActionBarInputs = new List(); } public enum Quality diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 5bb0edd51..90cf12c2e 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -21,7 +21,8 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. item/name catalog through `LegacyCatalogBoundary`, but `ActionGameManager` no longer owns a global legacy cache. Local run saves, loadouts, player settings files, zone files, and generated keyboard layout caches no longer write - bespoke durable files. + bespoke durable files. The legacy `PlayerSettings` runtime object is no + longer decorated as a MessagePack persistence shape. - Shared domain state is still partly built around `DatabaseEntry`, GUID identity, MessagePack attributes, and static cache references. Newtonsoft, JsonKnownTypes, RethinkDB, LiteNetLib client transport, and the broken @@ -93,9 +94,11 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. MessagePack resolver. Resolver registration is confined to legacy catalog deserialization. Unused Unity asset formatters for GameObject, Material, Sprite, and Texture2D are deleted. Keyboard layout DTOs are plain runtime - parse/display models, not MessagePack save shapes. The global scene-load - MessagePack resolver hook is deleted. The slime compute settings path no - longer serializes its local parameter struct for change detection. + parse/display models, not MessagePack save shapes. `PlayerSettings` is a + plain session-local runtime object until typed Verse settings are imported + into Unity. The global scene-load MessagePack resolver hook is deleted. The + slime compute settings path no longer serializes its local parameter struct + for change detection. - The dead story compiled-JSON cache sketch and its SHA helper are deleted; story compilation currently reads Ink source directly until a typed Verse story/cache document exists. @@ -277,6 +280,8 @@ First Aetheria surfaces to publish: unused Unity asset MessagePack formatters. - Done: demote keyboard layout DTOs from MessagePack shapes and delete the global scene-load MessagePack resolver hook. + - Done: demote `PlayerSettings` and nested settings from MessagePack shapes + after the legacy settings writer was disabled. - Remaining: delete or quarantine old cache abstractions that no longer protect an invariant once catalog migration has a typed reader.