client: AVA2 Won (cheque) system, revision mt20261027
ENABLE_CHEQUE_SYSTEM / ENABLE_WON_EXCHANGE_WINDOW = 1: Won in trades, private shop Won prices (int32 cheque[] after the CG_MYSHOP items), shop item cheque prices, mt_won script fixes, zh locale_game_ex overlay staged into locale_zh_ava2 (fixes the swapped %s/%d in WONEXCHANGE_CONFIRM_QUESTION_2). Also zero-init every TPacketCGExchange: arg1 was uninitialised and the HEAD server drops arg1 > UINT32_MAX, so accept/cancel/item-add were lost and trades never completed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
909fc8f851
commit
1a4d8295ff
@@ -13,6 +13,8 @@ first registered pack wins, so locale_zh hides them. This pack is registered bef
|
||||
item_scale.txt ava2items rows (9 columns, as LoadItemScale needs) + 喜相逢-only rows padded to 9 columns
|
||||
wiki/*.txt ava2items' wiki texts, which it ships as locale/zh/wiki but the wiki reads from the locale path
|
||||
icons/models an added item_list row's files that no registered pack has, from --assets (AVA2 pack_maker)
|
||||
locale_game_ex.txt data/zh_40250/locale_game_ex_zh_overlay.txt in GB18030; localeinfo.py loads it after
|
||||
locale/common/locale_game_ex.txt, whose Won (cheque) strings are English or wrongly ordered
|
||||
|
||||
Usage: scripts/build_xxf_item_overlay.py [--build build/switchbot-check] [--pack Client/pack] [--ava2items DIR]
|
||||
"""
|
||||
@@ -207,6 +209,8 @@ def main() -> int:
|
||||
merged["item_scale.txt"] = merge_rows(xxf["item_scale.txt"], scale_rows, set(scale_rows) & xxf_scale.keys())
|
||||
|
||||
wiki = {name: data for name, data in wiki.items() if locale + name not in known}
|
||||
merged["locale_game_ex.txt"] = (REPO / "data/zh_40250/locale_game_ex_zh_overlay.txt").read_text(
|
||||
encoding="utf-8").replace("\n", "\r\n").encode("gb18030")
|
||||
stage = tmp / "stage"
|
||||
for name, data in {**merged, **wiki}.items():
|
||||
(stage / locale / name).parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user