aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit f389fdbc953622d73924ad4dbe58d7adad03deba
parent a36fa454fd3f767efc2005ea02046225f3b4eff6
Author: anon <anon@example.com>
Date:   Thu,  5 Nov 2026 23:01:31 +0000

Enable starter ROLL and Blubbag encounters and verify Clan corpses

Diffstat:
MTODO.md | 10++++++++--
Mdocs/alpha-item-recovery.md | 36+++++++++++++++++++++++++++++-------
Mdocs/starter-fauna.md | 39++++++++++++++++++++++++++++++++++++++-
Mserver/browser_training_corpses_test.go | 14+++++++++-----
Mserver/gamedata/npc_combat.yaml | 48++++++++++++++++++++++++++++++++++++++++++++++--
Mserver/npc_shared_pursuit_test.go | 2+-
Mserver/starter_fauna_test.go | 11+++++++++--
Mtools/client/test_training_corpses.mjs | 11+++++++++--
8 files changed, 149 insertions(+), 22 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -152,6 +152,9 @@ research separately. More screenshots and test cases do not count as new gamepla native corpse picking, loot transfer, reconnect and database recovery. The matrix lists remaining body checks and their A7 encounter dependencies; living appearance coverage alone does not close them. + ROLL, Blubbag and the Salamander boss now pass the same native checks, + including both generated boss items. This completes the matrix's distinct + Clan creature bodies; the remaining Neutral bodies depend on A7 profiles. - [ ] **A7: All-faction early-game loop through levels 1-10.** Name the finite training/hunting routes, starter/basic shops, supported mission encounters @@ -171,8 +174,11 @@ research separately. More screenshots and test cases do not count as new gamepla The A6 corpse check also reproduced missing combat rewards and lifecycle on the Clan Green Lizard. LZ01/LZ02 now have an explicit provisional level-1..4 profile using the original LizardBite weapon; see [starter fauna](docs/starter-fauna.md). - Blubbag and the five distinct Neutral creature bodies still lack profiles, - as does the Clan ROLL population (the separate RR01 Rollerrats are supported). + ROLL Rollerrats and BB01 Blubbags now also have bounded provisional profiles, + resolving the same reproduced missing rewards and lifecycle. The Clan RT02 + Reet population still lacks a profile despite sharing RT01's visible body; + its original levels 1..4 are a separate A7 gap. The five distinct Neutral + creature bodies still lack profiles. The six human opponent populations remain appearance-only combat scope. - [x] **A8: Isolate administration before public hosting.** The current HTTP diff --git a/docs/alpha-item-recovery.md b/docs/alpha-item-recovery.md @@ -51,7 +51,7 @@ relevant placement check. | Route | Corpse evidence established | Remaining body checks | | --- | --- | --- | | Omni training | Leet (17655), Giant Snake (30252), Tiny Stalker (17708), Aquaan (30369), Reet (30365), Malle (17660) | None in this finite creature list | -| Clan training | Green Lizard / Grecko (22794), plus shared species above | Rollerrat (17687), Blubbag (40075), Salamander (30354) | +| Clan training | Green Lizard / Grecko (22794), Rollerrat (17687), Blubbag (40075), Salamander (30354), plus shared species above | None in this finite creature list | | Neutral training | Shared species use the evidence above | Android (17649), Biofreak (30258), Clawfinger (38387), Eye Mutant (17653), Blackout (45873) | The six clothed human opponent populations also have living-body evidence only @@ -62,12 +62,12 @@ Living outfit inspection alone must not be reported as corpse evidence. The November 5 Clan run exposed a content dependency: LZ01 had no combat profile, so its death generated no rewards, expiry or respawn. LZ01/LZ02 are now admitted under the explicit [starter lizard policy](starter-fauna.md#clan-lizard-admission-november-5). -The other remaining profile gaps are Blubbag, all five distinct Neutral bodies, -and Clan ROLL. The separate RR01 Rollerrat population has a supported profile; -the representative ROLL placement selected for A3 does not inherit it. Record -these as A7 content gaps rather than seeding loot into unsupported encounters -and claiming ordinary corpse coverage. Salamander and RR01 corpse checks can -proceed with their existing profiles. +ROLL and BB01 subsequently reproduced the same missing rewards/lifecycle and +now have their own bounded admission, with native coverage below. All five +distinct Neutral bodies still lack profiles. Clan RT02 Reets also lack a +profile, although their body is shared with the checked RT01 Reet. Record these +as A7 content gaps rather than seeding loot into unsupported encounters and +claiming ordinary corpse coverage. The remaining check is small: reach a fresh corpse through controlled combat at an original route placement, inspect its recognizable body, use native picking @@ -120,3 +120,25 @@ retained in `clan-diagnostic.log`. Lizard behavior changes are documented in the fauna policy; Reet and Malle required no gameplay change. A6 remains open. The retained Snake scenario also passed with the shared runner in 13.69 seconds (`snake-shared.log`, capture `20261105-145639/`). + +### Clan Rollerrat, Blubbag and Salamander + +The shared fixture now takes every generated item through its native loot-grid +cell, comparing each identity before proceeding. This preserves the Salamander's +actual two-item drop table under the controlled zero roll. It does not insert +loot or reduce the boss to a one-item fixture. + +| Capture under `local/alpha-training-corpses/` | Original population | Exact collected state | +| --- | --- | --- | +| `20261105-145952/952/district/2/group/2/authored_point/` | ROLL Rollerrat | Monster Parts template 42640, item 1, QL1, count 1, slot 64; one credit | +| `20261105-150007/952/district/3/group/0/authored_point/` | BB01 Blubbag | Monster Parts template 42640, item 1, QL1, count 1, slot 64; one credit | +| `20261105-150027/952/district/5/fixed/0/` | Salamander Boss | Templates 85596/123742, items 1/2, QL4, count 1, slots 64/65; one credit | + +All three native runs passed in 50.29 seconds and their captured bodies were +visually inspected. Reconnect and a fresh database load retain the exact owned +items and cash with empty sources. ROLL and BB01 required the +[profile fix](starter-fauna.md#clan-roll-and-blubbag-admission-november-5); +Salamander needed no gameplay change. Logs are under `local/alpha-clan-fauna/`. +This completes the distinct Clan creature-body checks in this matrix, not +earned progression, RT02 combat, humanoid encounters or the remaining Neutral +corpse bodies. A6 and A7 remain open. diff --git a/docs/starter-fauna.md b/docs/starter-fauna.md @@ -3,13 +3,15 @@ | Body | Admitted codes | Levels | Selected original attack | | --- | --- | --- | --- | | Rollerrat 17687 | RR01 | 1..2 | Faceroll 121050/121051 | +| Rollerrat 17687 | ROLL | 1..4 | Faceroll 121050/121051 | | Giant Snake 30252 | SN01, SN02 | 1..4 | GiantserpentBite 120846/120847 | | Malle 17660 | ML01 | 1..4 | MalleBite 120922/120923 | | Green Lizard / Grecko 22794 | LZ01, LZ02 | 1..4 | LizardBite 125277/125278 | +| Blubbag 40075 | BB01 | 1..3 | BlubbagBite 120751/120752 | These are bounded profiles for the existing inferred species bindings. Names, bodies, authored levels, positions and confidence remain unchanged. Matching -bodies with different codes, including ROLL and the weaker DZRA assignment, +bodies with different codes, including the weaker DZRA assignment, do not inherit these profiles. Other regular starter families and later levels remain open. @@ -98,6 +100,41 @@ were also visually inspected. Logs are under `local/alpha-training-corpses/`; the individual capture paths and remaining encounters. Ordinary earned combat balance and affordability remain A7 acceptance work. +### Clan ROLL and Blubbag admission (November 5) + +Controlled kills at `952/district/2/group/2/authored_point` (ROLL) and +`952/district/3/group/0/authored_point` (BB01) reproduced deaths with no generated +items, credits, expiry or respawn. Both lacked admitted combat profiles. +`local/alpha-clan-fauna/reproduced.log` retains those failures before the data +change. The profiles now supply ordinary retaliation, pursuit, XP, loot and +lifecycle through the shared handlers. + +ROLL uses the same original Faceroll endpoints as RR01. Both codes are admitted +at levels 1/2; explicit level-3/4 entries admit only ROLL, preserving RR01's +reviewed boundary. BB01 uses original BlubbagBite 120751/120752 from +`server/gamedata/items/items_036.yaml`: QL1 damage 6..12, critical bonus 6, +MA100 against Evade Close155, MeleeAC91, range 2 and 235-centisecond attack and +recharge. The original QL400 endpoint supports the shared quality interpolation. +Selecting Bite rather than Spit is provisional. + +The three Clan ROLL positions retain their authored range 1..4; the five BB01 +positions retain 1..3. Shared code/body admission also enables matching low-level +ROLL populations elsewhere, including Neutral training. Other codes and bodies +do not inherit a profile. HP, XP, raw skills, credits, Monster Parts and lifecycle +follow the explicit starter policy above; no original complete NPC template or +species-specific loot probability is claimed. + +Verification passed 21 focused server roots / 269 results, including population +reload, code/body/level rejection, original damage/timing, pursuit/return, +six killing actions and the existing boss transaction tests. Gamedata tests, +server/gamedata vet, JavaScript syntax, formatting and whitespace checks passed. +The native Rollerrat, Blubbag and Salamander corpse checks passed in 50.29 seconds +with exact loot/cash after reconnect and database recovery; the bodies were +visually inspected. See [the A6 captures](alpha-item-recovery.md#clan-rollerrat-blubbag-and-salamander). +Logs are under `local/alpha-clan-fauna/`. These controlled checks do not establish +earned progression pace. RT02 Reets and the unprofiled Neutral creatures remain +separate A7 work. + ### Earlier fauna verification Public-handler tests cover all six starter groups, selected levels and weapon diff --git a/server/browser_training_corpses_test.go b/server/browser_training_corpses_test.go @@ -12,6 +12,7 @@ import ( "path/filepath" "reflect" "runtime" + "slices" "testing" "time" ) @@ -24,6 +25,7 @@ func TestBrowserTrainingCorpses(t *testing.T) { for _, route := range []string{ "950/district/2/group/1/authored_point", "950/district/4/group/1/authored_point", "952/district/0/group/1/authored_point", "952/district/2/group/1/authored_point", + "952/district/2/group/2/authored_point", "952/district/3/group/0/authored_point", "952/district/5/fixed/0", } { t.Run(route, func(t *testing.T) { testBrowserTrainingCorpse(t, route) }) } @@ -64,15 +66,18 @@ func testBrowserTrainingCorpse(t *testing.T, route string) { t.Fatal(err) } world.advanceCombat(player.nextAttack) - if target.corpse == nil || len(target.corpse.items) != 1 { - t.Fatalf("controlled attack did not produce one corpse item: health=%d corpse=%+v player=%v target=%v appearance=%d range=%v visible=%v", + if target.corpse == nil || len(target.corpse.items) == 0 { + t.Fatalf("controlled attack did not produce corpse loot: health=%d corpse=%+v player=%v target=%v appearance=%d range=%v visible=%v", target.health, target.corpse, player.position, target.position, target.appearance, world.combatInRange_locked(player, target, time.Now()), world.combatVisible_locked(player, target, time.Now())) } if target.corpse.expiresAt.IsZero() || len(world.npcRespawns) != 1 { t.Fatal("training death did not schedule corpse expiry and respawn") } - item, credits := target.corpse.items[0], target.corpse.credits + items, credits := slices.Clone(target.corpse.items), target.corpse.credits + for index := range items { + items[index].Slot = 64 + uint32(index) + } delete(world.clients, 1) player.position[2] = target.position[2] + 4 player.position[1], _ = world.terrain[player.playfield].elevation(player.position[0], player.position[2]) @@ -103,8 +108,7 @@ func testBrowserTrainingCorpse(t *testing.T, route string) { t.Fatal(err) } cold := newTestInventoryServer(t) - item.Slot = 64 - if !reflect.DeepEqual(cold.characters[1].inventory.Items, []ownedItem{item}) || cold.characters[1].inventory.Credits != credits || + if !reflect.DeepEqual(cold.characters[1].inventory.Items, items) || cold.characters[1].inventory.Credits != credits || len(cold.characters[target.id].corpse.items) != 0 || cold.characters[target.id].corpse.credits != 0 { t.Fatal("native corpse pickup changed exact ownership after cold load") } diff --git a/server/gamedata/npc_combat.yaml b/server/gamedata/npc_combat.yaml @@ -181,8 +181,8 @@ 17687: 1: &starter_rollerrat - # Original RR01 starter population; the full species binding remains inferred. - template_codes: [RR01] + # Original RR01/ROLL populations; the full species bindings remain inferred. + template_codes: [RR01, ROLL] # Shared provisional starter baseline, not historical species statistics. health: 100 experience: 100 @@ -206,6 +206,27 @@ quality: [1, 3] chance: 50 + 3: &starter_roll + <<: *starter_rollerrat + # ROLL's authored training range extends to 4; RR01 remains bounded to 1..2. + template_codes: [ROLL] + health: 125 + experience: 125 + skills: {100: 10, 153: 10, 154: 10, 155: 10, 168: 10} + loot: + - template: 42640 + quality: [2, 4] + chance: 50 + 4: + <<: *starter_roll + health: 150 + experience: 150 + skills: {100: 15, 153: 15, 154: 15, 155: 15, 168: 15} + loot: + - template: 42640 + quality: [3, 5] + chance: 50 + 30252: 1: &starter_snake <<: *starter_rollerrat @@ -277,6 +298,29 @@ quality: [3, 5] chance: 50 +40075: + 1: &starter_blubbag + <<: *starter_lizard + # Original BB01 starter population; its body assignment remains inferred. + template_codes: [BB01] + # Original BlubbagBite; choosing Bite instead of Spit is provisional. + weapon: [120751, 120752] + 2: + <<: *starter_blubbag + loot: + - template: 42640 + quality: [1, 3] + chance: 50 + 3: + <<: *starter_blubbag + health: 125 + experience: 125 + skills: {100: 10, 153: 10, 154: 10, 155: 10, 168: 10} + loot: + - template: 42640 + quality: [2, 4] + chance: 50 + 30369: 4: # Only the authored Omni Training BNMO uses this level/body/code combination. diff --git a/server/npc_shared_pursuit_test.go b/server/npc_shared_pursuit_test.go @@ -14,7 +14,7 @@ func TestAdmittedNPCProfilesSharePursuitAndReturn(t *testing.T) { level uint16 }{{17655, 1}, {17655, 2}, {30365, 1}, {30365, 2}, {17708, 2}, {17708, 3}, {17708, 4}, {30354, 4}, {17687, 1}, {17687, 2}, {30252, 1}, {30252, 2}, {30252, 3}, {30252, 4}, {17660, 1}, {17660, 2}, {17660, 3}, {17660, 4}, - {22794, 1}, {22794, 2}, {22794, 3}, {22794, 4}} { + {22794, 1}, {22794, 2}, {22794, 3}, {22794, 4}, {17687, 3}, {17687, 4}, {40075, 1}, {40075, 2}, {40075, 3}} { for _, roaming := range []bool{false, true} { t.Run(fmt.Sprintf("%d/%d/roaming=%t", profile.monster, profile.level, roaming), func(t *testing.T) { world, _, start := newNPCPursuitWorld(t) diff --git a/server/starter_fauna_test.go b/server/starter_fauna_test.go @@ -17,6 +17,8 @@ func TestStarterFaunaPopulationsRecoverProfilesAndNativeWeapons(t *testing.T) { levels []uint16 damage [][2]uint32 }{ + {"952/district/2/group/2/authored_point", 17687, [2]uint32{121050, 121051}, []uint16{1, 2, 3}, [][2]uint32{{6, 12}, {7, 14}, {7, 15}}}, + {"952/district/3/group/0/authored_point", 40075, [2]uint32{120751, 120752}, []uint16{1, 2, 3, 1, 2}, [][2]uint32{{6, 12}, {6, 13}, {7, 15}, {6, 12}, {6, 13}}}, {"952/district/0/group/1/authored_point", 22794, [2]uint32{125277, 125278}, []uint16{1, 1, 1}, [][2]uint32{{6, 12}, {6, 12}, {6, 12}}}, {"952/district/2/group/1/authored_point", 22794, [2]uint32{125277, 125278}, []uint16{1, 2, 3, 4, 1}, [][2]uint32{{6, 12}, {6, 13}, {7, 15}, {7, 16}, {6, 12}}}, {"952/district/4/group/2/authored_point", 17687, [2]uint32{121050, 121051}, []uint16{1, 2}, [][2]uint32{{6, 12}, {7, 14}}}, @@ -64,7 +66,7 @@ func TestStarterFaunaRejectsUnreviewedCodesBodiesEvidenceAndLevels(t *testing.T) code string monster uint32 outside uint16 - }{{"RR01", 17687, 3}, {"SN01", 30252, 5}, {"SN02", 30252, 5}, {"ML01", 17660, 5}, {"LZ01", 22794, 5}, {"LZ02", 22794, 5}} { + }{{"RR01", 17687, 3}, {"ROLL", 17687, 5}, {"BB01", 40075, 4}, {"SN01", 30252, 5}, {"SN02", 30252, 5}, {"ML01", 17660, 5}, {"LZ01", 22794, 5}, {"LZ02", 22794, 5}} { for _, change := range []string{"code", "body", "placeholder", "level"} { t.Run(species.code+"/"+change, func(t *testing.T) { data := testNPCData() @@ -102,7 +104,8 @@ func TestStarterFaunaCombatUsesOriginalDamageAndTiming(t *testing.T) { monster uint32 phase time.Duration }{{"RR01", 17687, 3200 * time.Millisecond}, {"SN01", 30252, 2350 * time.Millisecond}, {"SN02", 30252, 2350 * time.Millisecond}, {"ML01", 17660, 2350 * time.Millisecond}, - {"LZ01", 22794, 2350 * time.Millisecond}, {"LZ02", 22794, 2350 * time.Millisecond}} { + {"LZ01", 22794, 2350 * time.Millisecond}, {"LZ02", 22794, 2350 * time.Millisecond}, + {"ROLL", 17687, 3200 * time.Millisecond}, {"BB01", 40075, 2350 * time.Millisecond}} { t.Run(scenario.code, func(t *testing.T) { data := testNPCData() group := &data.Playfields[0].Districts[0].Groups[0] @@ -146,6 +149,10 @@ func TestStarterFaunaDeathsRetainSharedRewardsAcrossKillingActions(t *testing.T) quality uint32 xp uint32 }{ + {"952/district/2/group/2/authored_point", 17687, 1, 1, 100}, + {"952/district/2/group/2/authored_point", 17687, 4, 5, 150}, + {"952/district/3/group/0/authored_point", 40075, 1, 1, 100}, + {"952/district/3/group/0/authored_point", 40075, 3, 4, 125}, {"952/district/0/group/1/authored_point", 22794, 1, 1, 100}, {"952/district/2/group/1/authored_point", 22794, 4, 5, 150}, {"952/district/4/group/2/authored_point", 17687, 1, 1, 100}, diff --git a/tools/client/test_training_corpses.mjs b/tools/client/test_training_corpses.mjs @@ -45,10 +45,17 @@ try { await game.click(...await game.pick(51050, evidence.before.target), 'right'); await game.wait('original training loot appears', state => state.grids.some(grid => grid.cells.some(cell => cell.identity[0] === 107 && !cell.dummy))); await game.save(output + '/loot'); - await game.click(30, 45); + for (const item of evidence.before.items) { + await game.wait('exact corpse source icon', state => state.grids.some(grid => grid.cells.some(cell => + cell.identity[0] === 107 && cell.identity[1] === item.Slot && !cell.dummy))); + const cell = game.state.grids.flatMap(grid => grid.cells).find(cell => + cell.identity[0] === 107 && cell.identity[1] === item.Slot && !cell.dummy); + await game.click((cell.bounds[0] + cell.bounds[2]) / 2, (cell.bounds[1] + cell.bounds[3]) / 2); + await game.waitFor('exact source transferred', async () => !(await server()).items.some(source => source.ID === item.ID)); + } await game.waitFor('exact original loot collected', async () => (await server()).items.length === 0); evidence.collected = await server(); - assert.deepEqual(evidence.collected.inventory.Items, [{...evidence.before.items[0], Slot: 64}]); + assert.deepEqual(evidence.collected.inventory.Items, evidence.before.items.map((item, index) => ({...item, Slot: 64 + index}))); assert.equal(evidence.collected.inventory.Credits, evidence.before.credits); await page.reload(); await game.ready();