1888 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
56 lines
3.9 KiB
Markdown
56 lines
3.9 KiB
Markdown
# Native merchant buying and corrected actual-client opcode routing
|
|
|
|
Actual Forever70334 PID644849/owner644848, legitimate localTortoise authentication,
|
|
external gateway stopped. Normal original merchant UI rightclick bought one real
|
|
water159 bundle5 for25c. Server SAME existing GUID36242 root29 count11->16, money
|
|
9950->9925. Original UI backpack count16, native API print9925/16, wallet99s25c,
|
|
merchant remains open and game stable. Normal .save persisted state; all prior
|
|
non-water item/GUID/slot/count records unchanged. HP5859/gear/progression/position
|
|
preserved. No SQL writes, GM item delivery or fabricated success. This verifies
|
|
one real automatic storage/merge purchase, not every category/destination/failure.
|
|
|
|
Generic native3F003B parses vendor/container128GUIDs, original ItemInstance and
|
|
quantity/Muid/slot/type. Match real19F offer slot+item; require genuine merchant
|
|
and unambiguous source entry. Native quantity is individual units; Turtle uint8
|
|
count is bundles: exact division by real offer stack count, reject zero/fraction/
|
|
overflow, no silent truncation. Auto1A2, authenticated root/bag1A3; modified/bonus
|
|
or currency descriptors unsupported explicitly. Tortoise1A4 success converts
|
|
bundle count back to units;1A5 failures preserve actual item-ID Muid and reviewed
|
|
reason0,1,2,4,5,7,8,11,12. Server remains authoritative for stock/money/requirements.
|
|
|
|
Initial source-writer parity/full61tests passed but the actual client crashed:
|
|
pre-fix response470171 was WRONG for actual70334. First638208 purchase still
|
|
executed on server (water1->6/money10000->9975), then one passive instrumented
|
|
reproduction640371 (6->11/9975->9950) captured public executable parser code at
|
|
natural hardware stop818318; no direct engine call, code/IP/protection modification
|
|
or argument/auth memory read. Hardware registers restored. Actual getters prove:
|
|
SellResponse470171 getter8181B0/constructor8181C0 reads vendor, GUID-vector count,
|
|
reason, GUID vector. BuySucceeded470172 getter818360/constructor818370 reads
|
|
vendor/Muid/stock/units. BuyFailed470173 getter818420/constructor818430 reads
|
|
vendor/itemID/reason. Feeding Muid3 to the sell-vector decoder led to reading past
|
|
body and null read WowB+4633074. Exact observed source matches body format, not
|
|
the assumed uniform family opcode offset. Thus this crash was routing, not Lua
|
|
or missing engine session ownership. Earlier live sell failures were unverified;
|
|
that route470170 was also corrected. Do not reinstate family-offset assumptions.
|
|
|
|
Versioned getter bytes+SHA+layouts in evidence/protocol/merchant-opcodes-70334.json;
|
|
ops/merchant_opcode_profile.py generates named header, checks source enums/code
|
|
shape. New source-merchant-opcode-profile CTest. Original response writers retained
|
|
verbatim from reference ItemPackets.cpp; appended ABI mode29 keeps ABI1/older
|
|
indices.42 response variants,72concurrent ABI calls,9source oracle fixture groups.
|
|
Full62/62 passed36.57s before corrected actual test; extra owned bag/slot/descriptor
|
|
bounds fixtures pass. References/server/original client assets remain untouched.
|
|
|
|
Corrected automation reported exit2 because32row public metadata ring overwrote
|
|
the outgoing request (lost23 surrounding rows). It DID capture genuine source1A4
|
|
20bytes and native47017221bytes. No transaction retry: independent followup checked
|
|
live original UI, .save, same GUID/count, wallet and healthy pipe0/closed0. Both
|
|
raw timeout report and followup retained. Harness now treats missing outgoing
|
|
metadata as a diagnostic warning only IF both genuine result rows + inventory/
|
|
money/UI checks succeed, and never repeats a purchase. This is not network loss
|
|
or a claim of full packet capture. Later vendor categories/failures still pending.
|
|
|
|
Current state:16waters, money9925 (three actual25c purchases, first two crashed
|
|
client after real server delivery). No rollback/grant hid those effects. Reuse
|
|
current native session for other merchants/failures; never rebuild mapped DLLs.
|