commit 7126ee5cb799be6ad608a087e143d464972a972b
parent df76dca0907c83f145259aa5af4608879a18d37b
Author: anon <anon@example.com>
Date: Fri, 23 Oct 2026 19:29:51 +0000
Correct clothing slot names and verify backpack equipment
Diffstat:
4 files changed, 129 insertions(+), 18 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -60,21 +60,23 @@ recorded in [inventory behavior](docs/inventory.md).
each size opens correctly in the native client, accepts its full capacity,
rejects overflow without loss, and preserves contents across transfers,
reconnect and restart. Cover the control panel, looting, deletion and reclaim.
-- [ ] Equip portable bags with their authored requirements and effects. Check:
+- [x] Equip portable bags with their authored requirements and effects. Check:
back-slot bags and the Pre-Universe Storage Device use the correct slots;
ability/skill/level boundaries, signed bonuses, health and XP modifiers, use while
worn, and supported QL interpolation match recovered behavior. Storage support
alone must not enable unsupported equipment effects.
- Server catalog requirements, all six Pre-Universe positions, signed modifiers,
- ability trickle, Survival QL 50..150, atomic resource clamping and worn-use
- routing now have regression coverage. Keep this item open until real-client
- Pre-Universe placement/use/removal is verified beyond its default finger slot;
- distinguish native cursor/window state from missing server requests. Damage-type
- additions, critical chance and kill XP still have the separate milestones below.
-- [ ] Verify the Notum Threaded Backpack icon against original resource 10771.
+ All 27 wearable templates, Survival QL 100 and all six Pre-Universe positions
+ passed native-client checks. Requirements, signed modifiers, ability trickle,
+ Survival QL 50..150, resource clamping and worn-use routing have regression
+ coverage. Damage-type additions, critical chance and kill XP still have the
+ separate milestones below. See [backpack verification](docs/backpacks.md).
+- [x] Verify the Notum Threaded Backpack icon against original resource 10771.
Check: explain the solid magenta icon seen in the WASM inventory before changing
decoding or rendering; preserve any intentional source placeholder. Capture:
`local/backpack-equipment-smoke/phase-two-above-bottom.png`.
+ The selected RDB has no icon 10771. Original `ffr.dll` deliberately creates a
+ 48x48 magenta sprite on that lookup failure; preserve the native fallback.
+ Evidence: [backpack icon findings](docs/backpacks.md#missing-notum-icon).
Essence of Pure Jealousy now supports persistent native splitting and merging.
The historical merge cap remains unresolved, so the merge item stays open;
diff --git a/docs/backpacks.md b/docs/backpacks.md
@@ -233,7 +233,7 @@ ordinary server ports throughout; no extra gameplay server was started.
The 27 portable Chest records with Wear enabled can occupy their authored
clothing positions. All use the back slot (19), except Pre-Universe Storage
-Device, which permits right shoulder/arm (20/22), wrists (26/28) and fingers (29/31).
+Device, which permits shoulders (20/22), wrists (26/28) and fingers (29/31).
The nine portable props and Book of Knowledge remain storage-only. A spoofed
instance type or unsupported quality cannot enable wear.
@@ -363,11 +363,69 @@ private actor fields from
observer comparisons. There were no client exceptions or unimplemented adapter
calls. Screenshots and read-only native snapshots are retained in that directory.
-Pre-Universe placement beyond its default finger slot remains unverified in the
-real client. Several attempted shoulder/wrist/finger gestures emitted no matching
-move, despite all six server placement tests passing. Worn use and removal worked
-after reconnect. Preserve the distinction between emitted packets, native model
-state and cursor/window state while investigating; these attempts do not prove
-that the source slot mask or server persistence is wrong. The backpack equipment
-TODO remains open for these checks. The solid magenta Notum icon also needs
-comparison with its original image resource before changing rendering.
+All six Pre-Universe positions now have live-client verification below. Preserve
+the distinction between emitted packets, native model state and cursor/window
+state when investigating an attempted move. The Notum icon investigation below
+establishes the original missing-image fallback.
+
+## Missing Notum icon
+
+Notum Threaded Backpack template 164564 authors Icon stat 79 equal to 10771.
+The selected original ResourceDatabase index has 3,728 type-1010008 icon records,
+none with ID 10771. That ID exists under other resource types, which are separate
+identities. The index SHA-256 is
+`46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71`.
+The bounded index audit is retained in
+`local/container-equipment-followup/icon-10771-index.json`.
+
+Original `ffr.dll::GuiResourceManager_t::GetRDBTexture` at `1000d0d0` requests
+type 1010008. If the RDB lookup fails, it calls `FUN_1000e7a0`, which allocates a
+48x48 sprite and clears it to RGB `0xff00ff`. This explains the native magenta
+inventory square; preserve the authored missing-image fallback. No image decoder
+or renderer change is required.
+
+The original `ffr.dll` SHA-256 is
+`1e040f9fe8114952e18ea781abf7af86efcfb3820c36f436d663f8dcfa52c7f3`.
+REA evidence `ev_5d83d962818d7ff76a7b2cf707ea48b08fa2c30520b4ce5a0f576c36a00d651b`
+and `ev_02130a354e123737aeae78ff4c107e5b683dce5b6fd2b74a2536bb8ec4093979`
+is retained in `local/container-equipment-followup/ffr-icon-evidence.json`.
+
+## Clothing names and Pre-Universe placement
+
+Clothing slots 22..25 are left shoulder, right arm, hands and left arm,
+respectively. The control editor and tables use those names for the same native
+numbers. The Metaplast catalog corroborates right/left sleeves at 23/25 and gloves
+at 24. Pre-Universe's mask includes shoulders 20/22, wrists 26/28 and fingers
+29/31. Its native default position is the right finger, 29.
+
+`TestControlClothingNamesMatchNativeArmorSlots` submits compatible equipment
+through each of the four named control-editor fields, reloads SQLite and checks
+the native FullCharacter placement, YAML field and readable table row. All four
+requests reproduced HTTP 400 with the shifted names before the correction, then
+passed. The focused control run passed in 11.814s; the full maintained Go suite
+passed in 318.052s, with gamedata passing in 7.592s.
+
+The corrected `clothes_left_shoulder` field initialized Pre-Universe instance
+180 in native slot 22 and the visible LSHLD cell. Its native storage window
+opened there with 21 slots. Ordinary pickup/place then removed it to inventory
+and equipped it in the right shoulder, slot 20. Further native gestures moved
+that same instance through both wrists, both fingers and back to the left
+shoulder. Every position opened the native container window. EnergyAC remained
++30 and NCU +5 across equipment moves; final removal restored both bonuses to
+zero and the item to ordinary slot 86.
+
+An attempted placement on the unsupported chest cell produced a native request
+for default slot 29, not chest slot 21. Its resulting finger placement is not
+an authoritative-server acceptance of an invalid chest request. Explicit
+unsupported server requests remain covered by the equipment rejection tests.
+Held dragging did not produce the same requests as ordinary pickup/place in
+this run; no input or renderer behavior was changed to make these checks pass.
+
+`local/container-equipment-followup/tmp_verify.py` checks all 17 required native
+and SQLite captures, exact source/destination slots, endpoint pairs, quantities,
+bonuses and native container capacity. All other 185 item records and locations
+remained unchanged, and final accounting matches the initial 186-item snapshot.
+DOM input traces, screenshots, database snapshots, the red/green control results
+and full-suite output are retained in that directory. Both owned browser
+contexts closed, with no client errors or unimplemented adapter calls. The
+single normal preview remains on HTTPS 8443.
diff --git a/server/control_equipment_slots_test.go b/server/control_equipment_slots_test.go
@@ -0,0 +1,51 @@
+package main
+
+import (
+ "encoding/binary"
+ "fmt"
+ "net/http/httptest"
+ "net/url"
+ "strings"
+ "testing"
+)
+
+func TestControlClothingNamesMatchNativeArmorSlots(t *testing.T) {
+ for _, scenario := range []struct {
+ name string
+ template, slot uint32
+ }{
+ {"clothes_left_shoulder", 168658, 22},
+ {"clothes_right_arm", 85742, 23},
+ {"clothes_hands", 85596, 24},
+ {"clothes_left_arm", 85742, 25},
+ } {
+ t.Run(scenario.name, func(t *testing.T) {
+ useNPCData(t, testNPCData())
+ world := newTestServer(t)
+ postControlForm(world, "/control/users", url.Values{"name": {"Explorer"}})
+ created := postControlForm(world, "/control/items", url.Values{"template": {fmt.Sprint(scenario.template)}})
+ if created.Code != 303 {
+ t.Fatal(created.Code, created.Body.String())
+ }
+ data := fmt.Sprintf("equipment: {%s: 1}\n", scenario.name)
+
+ response := postControlForm(world, "/control/users/1", url.Values{"data": {data}})
+ restarted := newTestInventoryServer(t)
+ page := httptest.NewRecorder()
+ world.httpHandler().ServeHTTP(page, httptest.NewRequest("GET", "/control/users/1", nil))
+
+ if response.Code != 303 || len(restarted.characters[1].inventory.Items) != 1 {
+ t.Fatal("named clothing placement rejected compatible equipment", response.Code, response.Body.String())
+ }
+ item := restarted.characters[1].inventory.Items[0]
+ packet := targetPacket(fullCharacterPacket(restarted.characters[1]))
+ if item.ID != 1 || item.Template != scenario.template || item.Slot != scenario.slot || binary.BigEndian.Uint32(packet[37:41]) != scenario.slot {
+ t.Fatal("named clothing placement changed the native identity or slot", item)
+ }
+ if !strings.Contains(page.Body.String(), "<tr><td>"+scenario.name+"</td><td><a href='control/items/1'>") ||
+ !strings.Contains(page.Body.String(), scenario.name+": 1") {
+ t.Fatal("equipment table or YAML editor uses a different clothing name")
+ }
+ })
+ }
+}
diff --git a/server/slots.go b/server/slots.go
@@ -8,7 +8,7 @@ var equipmentSlots = map[uint32]string{
6: "weapons_right_hand", 7: "weapons_belt", 8: "weapons_left_hand",
9: "weapons_deck_1", 10: "weapons_deck_2", 11: "weapons_deck_3", 12: "weapons_deck_4", 13: "weapons_deck_5", 14: "weapons_deck_6", 15: "weapons_hud_2",
17: "clothes_neck", 18: "clothes_head", 19: "clothes_back", 20: "clothes_right_shoulder", 21: "clothes_chest",
- 22: "clothes_right_arm", 23: "clothes_hands", 24: "clothes_left_arm", 25: "clothes_left_shoulder",
+ 22: "clothes_left_shoulder", 23: "clothes_right_arm", 24: "clothes_hands", 25: "clothes_left_arm",
26: "clothes_right_wrist", 27: "clothes_legs", 28: "clothes_left_wrist", 29: "clothes_right_finger", 30: "clothes_feet", 31: "clothes_left_finger",
33: "implants_eyes", 34: "implants_head", 35: "implants_ears", 36: "implants_right_arm", 37: "implants_chest", 38: "implants_left_arm",
39: "implants_right_wrist", 40: "implants_waist", 41: "implants_left_wrist", 42: "implants_right_hand", 43: "implants_legs", 44: "implants_left_hand", 45: "implants_feet",