xxf packs: restore ava2items and add the locale_zh_ava2 item overlay

The 喜相逢 migration dropped ava2items from the Index, breaking the AVA2
native windows, and the 喜相逢 locale (read as locale/newcibn) lacks 456
server items, types ~270 others differently and ships a 6-column
item_scale the client rejects.

- Index: ava2items after uiloading (喜相逢 files still win on a clash),
  locale_zh_ava2 before locale_zh.
- scripts/build_xxf_item_overlay.py builds locale_zh_ava2 from ava2items:
  missing/retyped item_proto, item_list, itemdesc rows, 9-column
  item_scale, item_list repairs, missing icons, wiki texts.
- migrate_to_xxf_models.py registers ava2items.
- ThinBoardCircle.SetAlpha shim for the 喜相逢 root (uiBattlePassEx).
- ENABLE_WON_EXCHANGE_WINDOW 0: it binds the cheque slot (cheque off).

Live 7511 items: not found 467 -> 0, wrong type 719 -> 37 (server proto),
no icon 6 -> 2 (31021, 31054 have none anywhere).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-23 21:12:06 +09:00
co-authored by Claude Opus 5.5
parent 60ed66692e
commit 9b2e165548
9 changed files with 258 additions and 1 deletions
+7
View File
@@ -6,6 +6,9 @@ Migrate metin2-client/Client/pack to 喜相逢五区 full model & asset pack arc
2. Clones all 喜相逢 packs (yw_*, item*, maps, updata*, special_patch*, Skybox, etc.) into Client/pack.
3. Generates the updated Client/pack/Index.
4. Verifies pack loading.
Then run scripts/build_xxf_locale_pack.py (registers locale_zh) and scripts/build_xxf_item_overlay.py (registers
locale_zh_ava2 before it: the items our server has that the 喜相逢 locale lacks).
"""
import os
@@ -184,6 +187,10 @@ def main():
"*", "ETC",
"*", "BGM",
"*", "uiloading",
# AVA2 native UI (battle pass, pickup, offline shop, wiki) and item assets; after every 喜相逢 pack so
# 喜相逢 files win on a name clash (the first registered pack wins). Rebuild it with
# tools/server/ava2-items/make_items.py.
"*", "ava2items",
# Locale mappings for non-Chinese fallbacks if locale.cfg switches
"locale/de/", "locale_de",
"locale/dk/", "locale_dk",