Vending machines, purchases and sales
Current catalogs cover all 345 actual placed shop templates, plus NPC-specific catalogs, with best-effort original-era stock. See stock expansion for sources, inference policy and validation. The narrower subsets documented below remain the verified early gameplay examples; they no longer describe the complete sale selection.
The server restores the original vending-machine placements and accepts staged sales from ordinary inventory. An offer remains owned by the player until Accept commits its removal and the credit award in one SQLite transaction. Cancel and removing an offer restore the same item. Tools, Devices, General Tools and Bases, and basic Pharmacy Tools expose documented fixed entries. Basic medical terminals offer a supported QL1 subset with authored charges. Complete historical stock membership, random generation and stock rotation remain unresolved. Map terminals offer the five supported reader upgrades described below. Basic armor booths expose an explicit QL5 Metaplast subset, with the evidence limits below.
Original placements and access
tools/data/extract_shops.py extracts all 795 type 51035 placements from the
original 14.9.1 resource 1000026 records into server/gamedata/shops.yaml.
They reference 346 original templates across 37 playfields; 482 machines belong
to the eight standard combined shop interiors 1180..1187. All source positions,
582 nonidentity XYZW rotations and 188 HighLow mesh-stat overrides are retained.
The extractor validates complete record and descriptor lengths and retains raw
bytes and hashes under local/shop-room-research/. Unavailable dependency and
developer worlds remain unavailable; their source records do not grant entry.
| Interior | Playfield | Machines |
|---|---|---|
| Clan basic / advanced / superior | 1180 / 1181 / 1182 | 55 / 44 / 44 |
| Omni basic / advanced / superior | 1183 / 1184 / 1185 | 76 / 68 / 68 |
| Neutral basic / advanced | 1186 / 1187 | 55 / 72 |
Every target-client entry sends only that playfield's authored objects. The same registry resolves Use and supplies the active trade's template and sale modifier. Trades retain the machine identity and catalog indices, so opening and completing a transaction share the same immutable contract.
Native default interaction N3Msg_DefaultActionOnDynel at 0x1002c350 requires
Can stat 30 mask 8 before dispatching Use. This also rejects forged Use requests
for dependency placeholder 41325 without an item-specific exception. Vending
criterion callback 0x100a9430 invokes wrapper 0x1008fc40 with action 3. Missing or
empty action 3 passes; action 0 is not substituted. The shared template Use
helper evaluates the complete authored postfix list, as it does for nanos.
This supports faction, profession, level and effective skill gates without
per-shop branches. Fourteen templates have side restrictions on action 0 only;
the observed native Use path does not apply those restrictions.
Five templates require Expansions stat 389 BitAnd operator 22 mask 1 (Notum
Wars). They remain closed while no trusted entitlement value exists. Native
formatter 0x10024a40 and interpreter 0x100056e0 establish the stat/mask semantics; this is
not evidence for granting accounts an expansion. See the retained native
access audit at docs/research-notes/shop-room-research/access/README.md.
The server also requires a living authenticated current session, world readiness, no pending equipment change, and five-metre distance in the same playfield. Every trade action rechecks the contract, including specialist eligibility changes while a basket is open. Five metres remains provisional server policy; the native player-trade distance does not establish historical vending range. These are reconstructed server admission rules grounded in the native client, rather than a recovered historical server implementation.
Vending Use and trade messages identify the machine as type 51035. Static type-51005 objects with equal numeric IDs have their own templates and positions. The numeric Use alias incorrectly opened the Startup Shop when clicking About the Guard and has been removed. All 795 maintained original vending placements retain their authored type. See typed identities for the source census, failing baseline and native verification.
local/shop-research/catalog.json retains parsed templates, raw placement
bytes and hashes. The Omni training-ground placement record SHA-256 is
43ada4f7f2ee7d507b45888758ea61e1e90277656e23c1bdd4af30fe6c5ea9a5.
Both starter templates name stock category QETS. A bounded scan of all 278644
resource payloads found category descriptors but no authoritative membership
list. See docs/research-notes/shop-research/stock/README.md; starter-looking item names
are insufficient evidence for a purchase catalog.
Supported stock and purchases
The original Anarchy Arcanum NCU Hacker Interface guide, updated 19 February
2003 and captured 7 March 2003,
explicitly places Lock Pick in the local Tools booth. Original item 95577 is
Lock Pick, fixed QL 1, type 51005, price stat 74 equal to 230.
shop_stock.yaml binds each {template, quality} entry to an original terminal
template. Qualities must be exact authored values or belong to a reviewed item
family; invalid rows fail startup. No stock quality is inferred from an anchor
record. Existing fixed entries keep QL1:
| Terminal family | Templates | Item | Native type | QL | Base price |
|---|---|---|---|---|---|
| Tools | 9 | Lock Pick 95577 | 51005 | 1 | 230 |
| Tools | 9 | Mission Key Duplicator 28564 | 51054 | 1 | 20 |
| Devices | 9 | Nano Programming Interface 161699 | 51022 | 1 | 900 |
| General Tools and Bases | 3 | Expendable Hologram Camera 156054 | 51005 | 1 | 1300 |
| General Tools and Bases | 3 | ID-extractor 156339 | 51005 | 1 | 9500 |
| Basic Pharmacy and Chemistry Tools and Bases | 1 | Basic Bio-Comminutor 154331 | 51005 | 1 | 420 |
| Basic medical supplies | 3 | Treatment Laboratory 25812 | 51005 | 1 | 150 |
| Basic medical supplies | 3 | Simple Nano Kit 85366 | 51005 | 1 | 20 |
| Basic medical supplies | 3 | Basic Nano Recharger 25820 | 51005 | 1 | 250 |
| Omni clothing | 1 | Seven Omni-Med designs 27381..27387 | 51022 | 1 | 500..1500 |
The duplicator uses its original QL1 definition. Shipped mission-window help establishes shop acquisition; the later Missions wiki supplies its Tools-kiosk placement. This bounded entry does not recover the period per-terminal stock list. Native purchase and immediate use of the same instance, exact debit and cold ownership are documented in mission keys.
The Omni clothing subset follows a May 2002 account and the original seven garment records. Purchases, two separate sleeves, wear bonuses and laboratory eligibility use the shared item rules. See Omni-Med suit stock for the evidence, exact prices and acceptance boundaries.
The pharmacy guide updated 27 June 2003 places the reusable Bio-Comminutor in Pharmacy and Chemistry Tools and Bases. Basic terminal 155287 now offers original QL 1 definition 154331. This is a bounded stock subset; the guide does not recover an exact quality distribution or complete inventory. Its capture date and the supported conversion of production Monster Parts are recorded in Blood Plasma.
The original Personal Lockpick guide, updated 28 August 2002 and captured 7 March 2003, places the camera and ID-extractor in General Tools and Bases. Applying the documented fixed entries across each booth family is reconstruction policy; it does not claim to recover their complete inventories, original random selection or refresh policy. Unknown categories retain their working sales without invented purchase entries.
The NCU guide places Nano Programming Interface in a Devices booth.
A later guide places it in Tools; that later wording is insufficient to change
the period mapping. The original public
2002 domain pages are framesets pointing to the separately archived content
host. Exact captures, CDX metadata, original item bytes and hashes are retained
under local/shop-purchase-research/sources/. The later emulator's full stock
tables include expansion data and are not imported as historical truth.
The original ACG code OTIM occurs in both Tools and Computers templates.
Their remaining descriptor fields differ, and no complete generator was
recovered. Sharing that code does not establish identical stock; the fixed
bindings do not infer lockpicks for Computers. Devices and General Tools use
HKJM and ABEG, respectively, but these opaque descriptors are not treated as
recovered membership lists or QL rules. The bounded audit is retained under
local/shop-stock-expansion-research/.
Medical stock is a bounded reconstruction, rather than a recovered exact list. Original Budget MediStim Shop 25886 and AllOverYou MediStim Shop 27062 descriptions explicitly sell First Aid Kits, Nano Recharging Kits and other stims. Their DMLA category is shared only by medical vendors in the retained 428-template catalog. The basic faction/neutral templates 99481/99508/99574 repeat descriptor byte pairs 1/1 through 20/20; advanced and superior descriptors differ. The current subset selects the three supported regular QL1 recovery definitions for basic terminals only. Family membership and the authored definitions support this inference; neither the descriptions nor opaque descriptors enumerate these exact IDs. Advanced/superior and starter medical stock remain unresolved. The separate ammunition supplier subset retains the original 100-round packages with explicitly provisional basic-weapon-template stock membership.
The original Anarchy Arcanum treatment guide, updated 27 June 2003 and
captured 10 September 2003,
independently describes 50-charge laboratories and 25-charge First-Aid packages
and the importance of matching qualities for stacking. It describes crafting
components, not the regular terminal's exact stock. The capture postdates the
target; its page date and limited corroborating use are retained explicitly.
The fresh original item/vendor records, hashes, descriptions and placement audit
are under local/charged-shop-research/catalog/; source bytes are under sources/.
Selected-quality basic armor
Original OT Basic Armor (99383) describes a shop selling basic armor. The Clan (99502) and neutral (99570) templates share its basic armor category, with their authored faction contracts and price modifiers. These are existing placed booths, including the reachable combined shops 1180/1183/1186. The original category ranges do not enumerate item membership or recover random generation/rotation.
The fixed six-piece QL5 Metaplast selection is an explicit reconstruction, not a recovered historical stock table. The basic booths additionally offer a fixed QL1/2 Low-Tech glove subset; see early armor. Metaplast uses the already reviewed original QL1/200 endpoint families: gloves 85596, sleeves 85742, boots 85638, pants 85512, helmet 85557 and body 85686. Both arms can use separate sleeve instances. Advanced, superior, starter and unrelated terminal stock is unchanged. There is no new family-specific pricing, requirement, delivery or equipment branch.
At QL5 the gloves have native curved value 346, strict Strength>16 and Agility>17 requirements, and ACs 6/5/6/5/2/2/2/2 in stat 90..97 order. Effective Computer Literacy 40 quotes 343 credits in the Omni basic booth and 360 in Clan/neutral. This does not establish affordability from ordinary starter earnings: the previous first-level NT run earned 53 before recovery spending. The P0 earned upgrade scenario remains open until ordinary income funds a useful purchase.
Catalogs resolve both reviewed endpoints for intermediate rows and collapse to the exact endpoint at a boundary. Different QLs of the same family retain separate catalog indices, quotes, basket counts and durable item records. Buy, pending-sale funding, Accept, AddTemplate and cold inventory all use the selected quality. Existing transaction, first-free-slot and replay rules apply unchanged.
A headed WASM client on the GPU verified the production Omni booth's six QL5 entries, 343-credit glove quote and native strict Strength 17/Agility 18 requirements. Add/remove/cancel retained cash and ownership; buying created item 683 at QL5 and debited the controlled wallet 400->57. Strength 16 rejected wear without losing it. Qualifying at 17 allowed wear, removal and re-equip; a server/client restart restored the same item, wallet and all eight AC bonuses. A later stock pick rejected the exact 286-credit shortfall. Cancelled sale retained the item; accepted sale credited 20 once, leaving wallet 77, no owned item and no armor bonus. No page exception or adapter abort occurred.
These were controlled funds, stats and location. They verify the shared purchase
path rather than ordinary earned progression. The owned QA client closed and
its account was removed; unrelated table hashes and SQLite integrity passed.
Original vendor/item records, native streams, read-only samples, screenshots,
regression negative controls and verification are retained in local/quality-shop/.
The complete server suite passed 1,426 roots / 15,003 results, and gamedata passed
23 roots / 50 results. The affected selection passed 78 server roots / 250
results plus one gamedata test; race checks passed 7 / 23, and go vet ./server/... passed. Separate
negative overlays prove that reverting selected-quality quotes, catalog pairs
or purchase delivery is caught by the new handler regressions.
Catalog and transaction protocol
ShopUpdate key 0x58362220 belongs to the selected machine. Its body is a count
token (entries + 1) * 1009, followed by low template, high template and QL
for each entry. It contains neither prices nor owned identities. The native
client computes quotes from the original item, terminal and character stats.
Catalog row identities are (111,index), in packet order. Each purchase Add
or Remove selects one package using A=machine, B=that catalog reference. The
server retains the catalog for the life of the draft and validates page,
index, machine identity, quantities and Unique acquisition.
The native Add echo receiver repeats its affordability check and silently ignores an unaffordable purchase. The server checks the same pending basket cost before acknowledging Add; an excess aborts the draft. This prevents rapid requests from creating a server selection absent from the native basket. KKR 0x100a9f60 credits each pending sale row once, without charge normalization or count, using signed price and terminal modifier:
base = T(signedItemPrice * signedTerminalStat426 * binary64(0.01))
markup = T(effectiveComputerLiteracy * float32(0.025))
pendingSaleCredit = base + T(markup * base * float32(0.01))
The native sentinel price 1234567890 contributes zero. This admission formula differs from the displayed and accepted sale calculations below; it does not replace the authoritative funds check on Accept.
For each selected stock entry, Accept creates one durable owned record per selected package. It validates eligibility, all offered sale items, net funds, final inventory capacity and Unique ownership again. Sold items, purchased instances and the resulting cash commit in the same SQLite transaction. Sale proceeds can fund a purchase and vacated sale slots can hold its result. Rejection or a database failure publishes none of those changes; concurrent/repeated Accept or a lost reply cannot allocate another instance. Required SQL writes are checked even when SQLite silently ignores a statement. The five-row mixed basket, rollback/retry cases and open live-skill quote discrepancy are recorded in mixed-shop verification.
Complete clears the native selection and consumes staged sales; it does not
create purchases or debit cash. After the durable commit the server sends
Complete, AddTemplate for each purchase, and absolute cash stat 61. AddTemplate
carries {low,high,QL,count} and initially creates a native template entry with
null instance identity. The durable server item identity survives reconnect,
whose full inventory supplies it. No extra ID word is invented in either
packet. Charged stackable type 51005 purchases carry the positive authored
stat 212 count: laboratories/rechargers 50 and nano kits 25. KKR 1005ef90/1002d580
copies AddTemplate's count directly into one native row; it does not multiply
by 212 or expand packages. KKR 100a9710 displays selected packages times 212,
while the quote still prices whole packages. One selected package therefore
creates one durable record/slot and one AddTemplate with its full charge count.
This packing policy keeps native first-free allocation aligned with SQLite;
automatic merging, historical stack limits and original server packing remain
unknown. Existing partial stacks do not absorb purchases. Explicit joins remain
separate inventory actions. Admission tests require representable positive
counts and exact supported types. Fixed-QL weapons and containers now have a
verified live delivery path, using typed FullUpdates with
real identities and the original first-free sentinel. Historical stock admission,
finite purchase clip state and historical stock generation remain separate work.
Selected-quality armor uses the same AddTemplate path with its resolved endpoint
pair, selected QL and count; pricing and persisted ownership use that same QL. The interface
uses the shared stat-equipment path for HUD/utility wear.
The buy quote recovered from KKR 0x100a9610 is:
base = T(itemPrice * terminalStat427 * binary64(0.01))
discount = min(T(effectiveComputerLiteracy * float32(0.025)), 90)
unitQuote = base - T(discount * base * float32(0.01))
lineQuote = unitQuote * selectedPackages
Discounts round per package, not once after multiplying quantity. Negative
Computer Literacy retains the observed signed arithmetic, and the original
90-percent cap takes precedence over later guides. Charging the quoted line
total on Accept is the reconstruction policy: a distinct historical server
debit algorithm was not recovered. The finalizer inspected in the client
contains no purchase debit. Native procedures, fields and remaining boundaries
are recorded in docs/research-notes/shop-purchase-research/native/README.md.
Map-reader upgrade subset
The three original Maps templates are OT Maps 117649, Clan Maps 117749 and Maps 118050. Their shared category descriptor is TIAM; the selected client has one placement in each combined shop room 1180..1187 and one developer-world placement. The vendor modifiers remain authored: Omni sale/buy 6/100, Clan and neutral 4/105. Their faction criteria belong to action 0, so they do not add a faction restriction to the native vending Use action 3.
The shipped cd_image/text/help/The Map Window.txt says area maps and radar
upgrades are sold in shops. It describes People, Monsters, Machines and
Directional Arrow functionality. The original item catalog supplies the five
complete reader-upgrade contracts:
| Template | Upgrade | Base price | Required effective Map Navigation |
|---|---|---|---|
| 116683 | Side | 35000 | 450 |
| 116684 | Monsters | 12000 | 130 |
| 116685 | People | 3500 | 80 |
| 116692 | Machines | 1200 | 50 |
| 116694 | Directional Arrow | 350 | 25 |
Offering those five fixed QL1 entries at all three templates is a bounded
reconstruction policy. The help does not name Side, enumerate template IDs or
prove identical faction/grade stock. Later player documentation corroborates
all five, including the later map-terminal list,
but does not establish their exact 14.9.1 availability. Neither the
TIAM descriptor nor a complete scan of all 278644 resource payloads recovered
an authoritative membership list or generator. Raw vendor/item/placement
records, hashes and the dated source ledger are retained under
local/map-shop-research/catalog/ and sources/.
Area maps and Startup bundles remain outside this purchase subset. Their authored records establish upload behavior, rather than retail availability. A 13 May 2002 player report could not find Broken Shores in Clan stores; its status in 14.9.1 is unresolved. Broken Crest retains an upload contract but has no corresponding playfield resource in the selected client. The later wiki includes post-target zones; importing its list would silently mix versions. These gaps remain in TODO.
Reader upgrades are nonstackable one-charge items. One purchase creates one durable record, one free slot and an AddTemplate count of 1. Checkout does not apply upload skill or known-map criteria: an unskilled player can buy an upgrade, and an installed upgrade can be bought again. The shared map upload path checks use requirements, consumes an eligible owned item and commits its flags atomically. A rejected duplicate or low-skill upload retains the purchased item and its already-paid purchase price.
Native handshake and inventory references
The target is anarchy-vanilla-14.9.1/kkr.dll, SHA-256
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
The UI target ddr.dll SHA-256 is
3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883.
Addresses below use the original image base 0x10000000.
VendingMachineFullUpdate, key 0x7f544905, creates the machine using inherited SimpleItem marker 11, Lockable marker 2 and Chest marker 3. Its world quaternion is XYZW; the extractor reverses the source statel's WZYX order. Template stat 23 and quality stat 701 select the original contract. Authored HighLow stat pairs follow them in the counted stat array, before the inherited markers. The native full-update path creates only absent vending identities, so fresh object creation is necessary when verifying placement and orientation. The client can also retire these objects when a scene section unloads. Shared world-scene replay handles native CharZoneMove transitions so walking away and back restores the authored vending identity; see scene reentry.
After successful GenericCmd Use, initialize two distinct native state objects:
- Machine-subject Trade action 0, A=player, B=zero, creates the machine's per-player transaction record through KKR 0x100a9cf0.
- Player-subject Trade action 0, A=machine, B=(111,0), opens shop mode. DDR TradeViewModule startup 0x100485b0 uses nonzero B as a catalog GUI tag. A zero B selects ordinary player trading and omits shop credit displays.
DDR refresh 0x10048f50 fetches catalog and purchase entries using A, then
passes B only to classify catalog rows. Row renderer 0x10048a20 compares that
tag before either basket owner. Giving B the same identity as A causes selected
purchase rows to alias the catalog and leaves the buy grid blank despite its
updated cost. B must also differ from the player sale owner. The original
server's precise tag was not recovered; (111,0) is an explicit reconstruction
choice using the native catalog namespace. Actual purchase Add/Remove still
address A=machine. The retained evidence is
docs/research-notes/shop-purchase-research/native/ui-basket.md.
TradeIIR key 0x36284f6e has six body words: version 1, action, A.type, A.id, B.type and B.id. Player sale Add action 4 uses A=player and B=(104,inventory slot). Native ordinary inventory slots 48..77 translate to shared slots 64..93. The reply moves the item into native TradeInv and emits the existing TradeUpdated notification. Remove action 5 uses B=(108,trade slot); page 111 belongs to machine stock. Basket slots remain stable when another is removed.
Player Abort action 2 restores native offered items and clears the machine's record. Remove returns its selected row into the first free ordinary slot; Abort does the same for each remaining TradeInv slot in ascending order. Neither operation remembers original inventory positions. The server commits this layout before acknowledging Remove/Abort. Other offered roots retain durable ownership in reserved slots, with their draft snapshots updated to match; those reservations do not occupy the client's ordinary inventory. Failed restoration leaves the draft available for retry. Native evidence is in player trading; regression tests include noncontiguous source slots, reverse offer order and a failed SQLite placement write.
The actual GPU WASM test reproduced the old slot-65/slot-70 discrepancy
with a 25-charge kit. After the fix, removal, re-addition and selling only that
kit preserved the other offered item's identity; native rows and SQLite agreed
after cancellation and cold restart. Captures and assertions are retained in
local/player-trade-smoke/verification.txt and tmp_verify.py.
The native Accept button first sends SetCash action 6 with zero cash, then Accept action 1. The server echoes that zero reset without changing credits; a nonzero cash offer is rejected. Complete action 3 invokes the vending finalizer 0x100a99d0. That function consumes offered items but does not credit player cash, so the server sends the authoritative absolute cash stat 61 after completion.
An empty ShopUpdate would print the original "contact a GM" warning. Categories without documented stock omit that update. Native empty catalog and purchase-basket lists still permit sale offers.
Evidence is retained under local/shop-research/wire/. Key records:
| Observation | Evidence |
|---|---|
| Packet registrations | ev_26009c7c7f943a6942cbffd43a260613f1ef722f51d073d62248e83f64600c95 |
| Native serialization | ev_5fe35f4305fb3b2ec2b32dd82476cb8f06a0e6e886698554938a898003b9f24b |
| Shop UI mode and price refresh | ev_f5717956dbc1f446ae83949a01f62f1535d4e2f743295d46fb199db6490f039e |
| Trade-start UI receiver | ev_1f9fdd961d7afda27c01e108a5821b696d81f3110667a7078b29988ec7ae0e19 |
Pricing and commit rules
Prices use original item stat 74, including its special quality curve. The
rounded linear interpolation is followed by min + (value-min)^2/(max-min);
equal endpoints and exact endpoint values are unchanged. Ordinary item price
reader 0x100f0c80 and shop price reader 0x100aa630 use that same curve.
The accepted-transfer calculation in KKR 0x100a99d0 is the chosen server policy. It is client evidence, not a recovered historical server algorithm. Let T truncate toward zero, U be float32(item price), N the offered count, S the terminal's authored sell modifier and CL effective Computer Literacy:
if type != 51018 and maximum charges > 0:
U = float32(U / maximum charges)
base = T(N * U * S * binary64(0.01))
markup = T(CL * float32(0.025))
sale = base + T(markup * float32(0.01) * base)
The float32 constants and truncation boundaries matter. Accepted-transfer
pricing has no observed CL cap. The UI staging calculation 0x100a9e20 rounds
the CL addition per unit before applying count and modifier, so some boundary
values can differ from accepted-transfer pricing by a credit. Preserve this
distinction when adding purchases or investigating displayed quote rounding.
See docs/research-notes/shop-research/pricing/findings.md and its retained REA evidence.
NoDrop flag 0x04000000 rejects a sale. Dynamic items require absent/default TimeExist or explicit stat 8 equal to -1. Backpacks are currently rejected; selling their contents and container policy remain separate work.
The server snapshots each offered owned item and revalidates it on Accept. Changed ownership, slot, quantity or item properties abort the draft, as do lost proximity, authored eligibility, life or readiness. Ordinary inventory actions cancel the draft before proceeding, so an offered item cannot also disappear into an equipment change. Credit overflow rejects the whole transaction.
The draft stays in memory. Accept removes item records and awards credits through the existing atomic inventory save before publishing Complete. Failed SQLite writes leave both RAM and disk unchanged. A lost completion reply or repeated/concurrent Accept cannot award the sale twice. Reconnect discards an unaccepted draft and reloads authoritative inventory and credits.
Stale owned sale sources
A controlled missed-refresh fixture isolates a stale shop offer: three QL2 Treatment Laboratories show 3/5/7 charges, while an earlier committed merge has consumed the first and retained eight charges in the second. Real native pickup and SELL placement request the now-empty ordinary slot. The original cancellation closes the shop but restores the three-charge ghost and leaves the survivor showing five.
For an authenticated sale Add with a valid, missing ordinary slot, cancellation now precedes the shared ordinary-stack refresh. This removes stale rows and rebuilds the selected template endpoints, QL and current counts while preserving live individual rows. It does not acknowledge a sale or write ownership/cash. Other invalid offer guards retain their existing cancellation policy.
TestShopStaleOfferRefreshesStacksWithoutWrites checks repeated requests,
cancellation order, the selected QL2 endpoints, unchanged cold ownership and
allocation, no checkpoint writes, and preservation of an unrelated live weapon.
TestBrowserShopSaleRefusal reproduces the actual native request, verifies
usable eight/seven-charge rows, reopens the shop on the same page to offer and
cancel the survivor, then checks exact page replay and cold ownership. This is
a controlled state fixture, not earned-progression evidence.
The failing native capture is
local/shop-sale-refusal/20261103-175253/; the corrected 16-second check is
local/shop-sale-refusal/20261103-175424/. The screenshots show the baseline
3/5/7 ghost state and corrected 8/7 state. The broader disappearance audit
remains open.
Verification
server/gamedata/shops_test.go checks all 795 authored identities, templates,
positions, rotations and stat overrides against the digest from an independent
full-resource audit. Re-running the extractor produces identical YAML.
server/shop_machines_test.go checks native socket entry for Clan, Omni and
neutral rooms and a world without machines; native full-update layout and mesh
overrides; ordinary and specialist access including strict level/skill
boundaries; unknown expansion entitlement; and loss of specialist eligibility
before sale confirmation. A room terminal's own sale modifier survives a
SQLite reopen with ownership and credits changed together.
server/shops_test.go covers socket Use and sale dispatch, price curves,
charges, Computer Literacy boundaries, stable basket slots, cancellation,
stale items, NoDrop, backpacks, forged identities/actions, session replacement,
faction/range/life checks, overflow, concurrent Accept, lost replies, SQLite
write failures and equipping an offered item.
server/shop_purchases_test.go covers catalog tuples and independent GUI tags,
buy-price boundaries including negative skill and the native discount cap,
multiple selected packages and removal, cancellation, insufficient cash and
space, forged catalog references, Unique acquisition, mixed sale funding and
freed slots, concurrent/repeated confirmation, lost replies and SQLite failure
with retry. Rapid unfunded Adds abort before they can leave a server purchase
absent from the native basket. Charged tests verify separate package records,
exact AddTemplate counts, unchanged partial stacks, second-package rollback,
charge-normalized sales and purchase-to-use persistence with cooldown rejection.
Stock admission tests require positive representable charge counts and keep
unverified weapon/container membership outside production stock. Separate live
delivery checks cover original subclass grants, first-free placement after sales,
immediate wear/open/transfer, SQL failure, overflow and cold recovery; see
live purchase verification.
Two headed Chromium WASM clients ran on the GPU. Before restoration,
Omni room 1183 had the static identity but no native vending object or visible
machine. After restoration, native object-tree and vehicle reads matched all
76 Omni, 55 Clan and 55 neutral machine transforms, including all 61 HighLow
mesh overrides in those rooms. Vehicle_t::GetGlobalRot in original qqr.dll
(RVA 0x11220, lifted sub_42011220) selects the vehicle's actual global quaternion
at 0x7c or 0xf4 according to its parent, so these checks observe native pose
rather than only the incoming packet.
Real mouse picking and right-click Use opened the native shop window for Omni armor 3221226655, Clan devices 3223913628 (mesh 90937) and neutral vendor 3221226658. Captured Use acknowledgements and both Trade initializations used each selected machine identity. The Omni terminal displayed a 734-credit quote for owned Kinetic Axe 96 at effective Computer Literacy 40. While offered, the same item remained in SQLite and cash stayed 100. Accept removed it and changed both native and persisted cash to 834. A fresh WASM connection retained 834 and an empty inventory. A server restart followed by fresh WASM clients retained all 131 Omni/neutral poses and appearances and the same committed sale. This placement and sale run preceded the fixed purchase catalog. Historical stock generation and refresh remain unresolved.
The purchase run used two fresh headed GPU WASM clients. Omni Tools 3221488799 quoted 228 credits for Lock Pick and Clan Tools 3223651484 quoted 239 at effective Computer Literacy 40. Accept delivered one item and left 772 and 761 credits respectively. Reconnect and a server restart retained the same durable instances. With the distinct catalog tag, actual mouse clicks displayed a BUY icon, selected two Clan packages for 478, removed one to leave 239, and cancelled without changing cash or ownership.
A mixed Omni basket started with zero cash, offered axe 101 for 734 and selected a lockpick for 228. SQLite retained the axe and zero cash while the draft was open. Accept replaced the axe with lockpick 102 in its freed slot and changed both native and persisted cash to 506. Reconnect and fresh clients after another cold server restart retained all purchase identities and balances. A later attempted third package exceeded 506 credits; the native input path retained only two selections at 456, and cancellation preserved every owned item and credit. Wire captures confirm real Add/Remove messages, Complete followed by AddTemplate and absolute cash, with no client errors.
The documented-stock expansion run purchased interface 103 for 892 from Omni Devices 3221816479, leaving 19108 credits. General Tools 3225158815 showed camera/extractor quotes of 1288/9406; selecting their rows in reverse order still delivered camera 104 and extractor 105 in catalog order, leaving 9306. Both clients retained their exact identities and balances after reconnect and cold restart. The interface's Unique rejection and complete wearable effect path are recorded in stat equipment. Native picking in world 1191 also opened Computers 3221292199 with no inferred Tools catalog and preserved both purchased tools and cash.
The charged-purchase run used two fresh GPU WASM clients. Two Simple Nano Kit packages displayed 50 charges for 40 credits; removing one left 25 for 20, and cancelling spent nothing. An Omni basket containing one laboratory, two nano kits and one recharger cost 437 and delivered four separate stacks with 50/25/25/50 charges. Native count words, captured AddTemplate counts and SQLite agreed. Using the supplies left 49/24/25/49 charges; a repeated nano-kit use during cooldown and a standing laboratory attempt consumed nothing. Laboratory and recharger use each restored exactly 30 to the appropriate resource.
Selling the 24-charge kit for 1 and buying a fresh 25-charge package for 20 reused its freed slot without merging into another existing kit. Both native and durable cash became 19544. Neutral basic medical supplies sold a 50-charge recharger for 260; Clan sold a 25-charge nano kit for 21. Cold server startup followed by fresh clients retained every purchased instance, count and balance.
An owned capacity fixture occupied 29 of 30 slots, including an existing nano kit. Selecting two more packages for 42 and accepting rejected the whole draft: cash, all 29 items and native rows stayed unchanged, the basket cleared, and no AddTemplate was sent. After cold startup, one package filled the final slot with the next unused durable ID, proving the rejected draft had published no allocation. A subsequent purchase with all 30 slots occupied also rejected without changing cash or merging stacks. Reconnect retained all 30 items.
local/shop-room-research/ retains the independent catalog audit, reproducible
extraction provenance and original-client access evidence.
local/shop-room-smoke/ retains screenshots, native memory snapshots, database
snapshots and complete WebSocket traces with reconnect/replay handling. The
checks use genuine native objects and input; no clickable proxy or client
source change was required. Owned test clients are closed between runs, and
the dummy-HDMI display's power-saving state is restored afterward.
local/shop-purchase-smoke/ retains the purchase screenshots, native/database
snapshots, WebSocket captures and assertion script.
local/shop-stock-expansion-smoke/ retains the additional terminal, multi-row
purchase, worn Unique, observer-effect and cold-recovery checks.
local/charged-shop-smoke/ retains charged package, partial-sale, medical-use,
three-faction, capacity and cold-recovery captures and assertions.
The complete tracked Go suite passed (server 713 seconds, gamedata 8 seconds),
as did shop/medical race checks (179 seconds), the final focused shop suite
(27 seconds), and go vet -stdversion=false.
Cleanup removed only the two test-owned players and their 34 remaining items.
All unrelated database rows
were unchanged, foreign-key and integrity checks passed, and the single shared
HTTPS preview remains available on port 8443.
Map-reader purchase tests cover all eight standard-room catalogs and the five exact upgrade templates, six-item single-charge delivery, original quote rounding, purchased-item uploads, replays, retained duplicates and low-skill rejection. Cancellation, removal, forged rows, insufficient final cash, full inventory and a failed second SQLite insertion preserve ownership and credits; retry allocates each item once. Focused shop tests, purchase race checks and vet pass. The final complete tracked Go suite passed (server 719 seconds, gamedata 8 seconds); purchase race checks passed in 103 seconds.
Actual HTTPS WASM clients on the GPU bought upgrades from Omni, Clan and
neutral terminals. At effective Computer Literacy 40, the six-item Omni basket
cost 51881; an Arrow cost 347 there and 364 at Clan/neutral terminals. Native
quotes and paid balances matched. All five purchased upgrades uploaded, while
an extra Arrow and a low-skill buyer's paid Arrow remained owned on rejection.
Cold server/client recovery retained map flags, balances and durable IDs; a
recovered purchased Arrow could then be used after raising Map Navigation.
Nineteen native/SQLite snapshots and five draft totals agree, with no browser
errors. local/map-shop-smoke/ retains screenshots, warm/cold WebSocket traces,
native snapshots, database snapshots and the assertion script. Both test clients
are closed. Cleanup removed only the two owned players and three remaining
items; unrelated rows were unchanged and SQLite integrity/foreign-key checks
passed. The sole shared HTTPS preview remains on port 8443.