1888 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
48 lines
3.2 KiB
Markdown
48 lines
3.2 KiB
Markdown
# Original native merchant buyback verified
|
|
|
|
Actual Forever70334 PID631007/owner631006, legitimate local Tortoise authentication,
|
|
external gateway stopped. Original merchant Buyback tab displayed the persisted
|
|
server item159/GUID36242 after relog: name, icon, quantity1, price1c. Original
|
|
GetNumBuybackItems1/GetBuybackItemInfo confirmed the same. Ordinary right-click
|
|
on that reviewed entry emitted native3F003C/13bytes. Adapter produced Turtle290
|
|
raw vendor64 + slot32 after merchant/visible actor/owned item validation. Native
|
|
slots72..83 map to actual Turtle69..80. No NPC/item/GUID hardcode in translation.
|
|
|
|
Tortoise saved the SAME item GUID from buyback69 to carried root29, wallet10001
|
|
->10000. Original client Buyback count1->0, backpack regained the water icon,
|
|
free slots74->73 and wallet1g0s0c. All original item/GUID/slot/count records were
|
|
unchanged. No SQL writes, item grants, GM purchase emulation or fabricated ack.
|
|
The prior sale fixture was reused; no duplicate fixture. Source state drives
|
|
both wallet and inventory. UI screenshot reviewed manually as well as source SQL.
|
|
Public metadata observer lost21 surrounding rows (ring overflow); not a full
|
|
packet capture or claim of network loss. Critical outgoing request and source/UI
|
|
outcome captured independently. Pipeerror0/closed0. Water remains root29; money
|
|
restored naturally to original10000 by the actual buyback, no cleanup performed.
|
|
|
|
Shared initial state cache now includes actual buyback GUID pairs, prices and
|
|
timestamps; clears preserve zero and initial-self includes a supplemental VALUES
|
|
record after original self create. Server source explicitly persists buyback in
|
|
Player::_SaveInventory/_LoadInventory. Both source and destination timestamps are
|
|
login-relative seconds+30h: uint32 widens exactly to int64, no invented Unix clock.
|
|
Source ActivePlayerData group311 writer retained in source extraction allowlist.
|
|
The first real test624855 had empty UI because that branch was omitted while mask
|
|
was present. A new exact serialized price/time-tail regression FAILS on old codec,
|
|
passes after correction; focused3/3, full61/61 passed36.36s before real retest.
|
|
Bounds include all12slots, absent/cleared ownership, stale merchant, malformed
|
|
requests and full uint32 timestamp. No schema, build metadata or original asset
|
|
changes. One unsupported read-only GetBuybackItemLink diagnostic call caused a
|
|
Lua error in first session; it was closed and never repeated, not a gameplay bug.
|
|
|
|
Relevant source: Tortoise Player.h BUYBACK_SLOT_START/END and Player.cpp
|
|
AddItemToBuyBackSlot/RemoveItemFromBuyBackSlot/_SaveInventory/_LoadInventory;
|
|
ItemHandler.cpp HandleBuybackItem. Forever Player.h BUYBACK_SLOT_START/END,
|
|
ItemPackets.cpp BuyBackItem::Read, UpdateFields ActivePlayerData InvSlots,
|
|
BuybackPrice/BuybackTimestamp and original WriteUpdate. Original repositories read-only.
|
|
|
|
Limits: one real persisted item and one merchant transaction. Other slots/categories,
|
|
full bags/money failures, ordinary vendor buying, trainers/reset remain unverified.
|
|
Reproduce with ops/native_buyback_test.py only after reviewing actual Buyback UI
|
|
and explicitly supplying confirmed current character/fixture/entry/price/money and
|
|
screen coordinates. It refuses stale state, never retries purchases, exports no
|
|
secrets and leaves outcome evidence even on failure.
|