4.0 KiB
Native AVA2 item shop
Active UI is uiitemshopnew.py. GC93 retains the native catalogue/log layouts;
GD/DG76 transports authenticated account/character requests to the DB coordinator.
Purchase requests add a durable random token and the confirmed item/total quote.
data/ava2-itemshop/original-products.tsv contains all 217 original offers recovered
from the supplied MySQL56 archive. source.json records hashes. No prices are invented.
compatibility.json records 55 absent prototypes, 55 ITEM_NONE placeholders and 107
actual types needing item-system verification. verified-products.json selects 49
existing implemented mount, mount-skin, fixed-enchant and third-hand products.
Generate migration SQL with explicit configured schema names, review it and back up account/award data before executing it:
python3 tools/ava2-itemshop/migrate.py --player player_sb --account account_sb --output /tmp/itemshop.sql
python3 tools/ava2-itemshop/enable_verified.py --player player_sb --output /tmp/itemshop-enable.sql
The migration uses InnoDB for account, catalogue, orders and awards. Account/player SQL
configurations must target the same MySQL host and port. Purchase failures leave all
four unchanged. A transaction temporarily disables reconnect and caps lock waits at
three seconds, restoring the original connection options afterwards. Unknown COMMIT
outcomes retry the same order. Unique (account_id,token) orders survive process restarts.
The old prototype loader indexed vector pointers before sorting; it now sorts before building the index so lookup keys always match their templates.
Awards use the existing mall redemption path; non-stackable purchases create separate award rows. New clients use revision mt20261020. Legacy clients cannot request GC93. No web recharge service or wheel reward service is enabled.
Acceptance evidence: metin2-client/docs/AVA2-ITEMSHOP.md and
metin2-client/audit/evidence/itemshop/.
Production release, 2026-10-20 (server CEST)
203 now runs the verified sbtest game/db pair: game 56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba,
db dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699.
The deployment retains the existing native battle pass, wiki, calendar and other cumulative game changes.
The release delta is the native shop, DB prototype-index fix, transactional schema and
49 enabled original offers. The remaining 168 offers, recharge and wheel services stay disabled.
Production 70002 was still ITEM_NONE; its text/SQL prototype is now ITEM_USE/USE_SPECIAL,
matching the tested third-hand implementation. Other prototypes were not replaced with test data.
Deployment package: /root/deploy-features/20261020-itemshop.
Backup: /root/backup-itemshop/20261020-014955 (old binaries, original prototype,
full account/player SQL dump and pre-deployment error-log offsets).
deploy.py gracefully stops game/auth, then db; backs up SQL before migration; starts
db first and then auth and all 13 production game cores. sbtest remains independent.
Read-only health check:
/usr/local/bin/python3.9 /root/deploy-features/20261020-itemshop/deploy.py check
Binary rollback:
/usr/local/bin/python3.9 /root/deploy-features/20261020-itemshop/deploy.py rollback --backup /root/backup-itemshop/20261020-014955
Rollback retains InnoDB, coins, orders, awards and the compatible third-hand prototype. Never restore the pre-release SQL dump over subsequent player purchases.
CH1 acceptance with a temporary ordinary account verified all 49 catalogue entries/icons, insufficient funds without an order, a 99-coin purchase, same-token replay without another charge/order, purchase history and mall redemption into inventory. Test account, character, coins, orders, awards and items were removed; its one test sale was subtracted without resetting other sales. Existing players received no test currency. db/auth/13 cores remained healthy after cleanup. macOS release bundle and connected Android client's APK/resources were updated; Android in-game purchase acceptance is not claimed by this release.