98 Commits
Author SHA1 Message Date
shenandshen f386815353 docs: define reviewed AVA2 parity implementation contract and roadmap 2026-10-19 22:51:31 -07:00
shenandshen 6661b17084 feat: add point currency and stage extended shop items
Rename shop currency and vouchers to points, synchronize the wiki catalogue, and display point rewards. Add wear40 item metadata transport and pet identity accessors; stage sixteen timed mounts and appearance items with AVA2 model registration.

Include build and sbtest acceptance evidence. Remaining shop systems are unfinished and are not enabled or deployed. Wear40 requires the matching server migration and mt20261022 client.
2026-10-19 18:30:19 -07:00
shenandshen 7cba54f271 Record production itemshop acceptance and updated client release 2026-10-19 16:59:31 -07:00
shenandshen b09754985b Record Android rendering performance samples 2026-10-19 16:36:27 -07:00
shenandshen 113ea26b07 Optimize mobile rendering and extend live-client launch options 2026-10-19 16:36:27 -07:00
shenandshen 3f72cb7cc4 Hide mobile HP and SP numeric labels 2026-10-19 15:09:44 -07:00
shenandshen 60c66b7ba7 Refine mobile HUD navigation, status readability and bounded chat preview 2026-10-19 12:23:27 -07:00
shenandshen 0fcb0dcaa4 Remove the extra mobile quick-slot 7 and 8 buttons 2026-10-19 07:24:36 -07:00
shenandshen f64bb1899b Tighten the mobile skill arc and reduce auto-hunt artwork 2026-10-19 07:22:27 -07:00
shenandshen 00ebdf0d43 Keep smaller mobile menus along the top edge clear of the original skill arc 2026-10-19 07:15:49 -07:00
shenandshen 24c1b3b416 Integrate AVA2 native shop and refine mobile controls and locale tooltips 2026-10-19 07:13:56 -07:00
shenandshen 1359eab806 feat: integrate native AVA2 battle pass, wiki, drop finder and calendar 2026-10-18 23:36:35 -07:00
shenandshen 62b61bafd0 Complete attribute lock links and active switchbot tooltips 2026-10-18 22:08:48 -07:00
shenandshen e9c26b86c1 docs: record live attr lock view acceptance and fixture restoration 2026-10-18 21:37:48 -07:00
shenandshen 0558166243 feat(mobile): optimize touch skill layout and add auto-hunt HUD and combat entries 2026-10-18 18:23:28 -07:00
shenandshen 82251cb524 feat: add read-only attr lock views for exchange, shop and storage tooltips 2026-10-18 18:23:02 -07:00
shenandshen 708e1c8379 feat: port AVA2 native channel dialog and preserve warp endpoint 2026-10-18 17:05:24 -07:00
shenandshen ab516feb7b Preserve live reconnect endpoints and execute QA commands between frames 2026-10-18 16:43:51 -07:00
shenandshen 95f1c30be2 Complete own-item attribute lock selection and tooltip flow 2026-10-18 16:28:16 -07:00
shenandshen 5decc93798 Port AVA2 native tracker and item-currency ticket shop 2026-10-18 10:41:51 -07:00
shenandshen 83809631ed feat: port native AVA2 chest preview and CG235 pickup flows 2026-10-18 04:01:56 -07:00
shenandshen b61140b8f4 fix: preserve D3D texture addressing in native UI sampling 2026-10-18 03:49:11 -07:00
shenandshen fe6e41dc8e docs: update AVA2 parity gaps and stone relogin acceptance 2026-10-17 23:36:31 -07:00
shenandshen e271e4ba49 feat: import AVA2 spirit stone catalogue and Chinese names 2026-10-17 23:32:59 -07:00
shenandshen a4e96a1559 test: verify switchbot cast speed selection and document probe interference 2026-10-17 17:01:05 -07:00
shenandshen dc24e0e8e1 fix: restore readable dark panels in the AVA2 switchbot window 2026-10-17 16:47:21 -07:00
shenandshen 042bd77413 fix: allow combat state in the packaged auto hunt server patch 2026-10-17 16:40:54 -07:00
shenandshen e446ae8449 feat: add AVA2 minimap buttons and expanded taskbar entries 2026-10-17 16:40:54 -07:00
shenandshen 3efa607908 fix: complete Chinese building names and dragon soul interface labels 2026-10-17 16:40:54 -07:00
shenandshen 9fbeaeb7a2 feat: align travel ring menus and validate destinations against 203 maps 2026-10-17 16:40:54 -07:00
shenandshen 0b828387aa fix: let auto hunt recover from an occupied blocked terrain cell 2026-10-17 05:42:44 -07:00
shenandshen 090dab1fc1 fix: preserve db-specific dungeon rows when installing item patches 2026-10-17 05:02:58 -07:00
shenandshen 108fe17127 fix: import complete sash combine chains and sync isolated db prototypes 2026-10-17 04:55:26 -07:00
shenandshen 790037729f tools(assets): audit original AVA2 FoxFS archives for missing hydra motions 2026-10-16 23:24:59 -07:00
shenandshen 8653edf4c5 feat(quests): add AVA2 travel menu and staged sash compatibility deployment 2026-10-16 23:15:04 -07:00
shenandshen fce6a5e06b fix(assets): include known race model files and audit motion references 2026-10-16 23:14:48 -07:00
shenandshen ae0fc25a81 perf(autohunt): avoid discarded A-star searches for attack sight lines 2026-10-16 23:14:48 -07:00
shenandshen b9f5d737cb fix(client): drain flying objects before effect shutdown 2026-10-16 23:12:13 -07:00
shenleiandClaude Opus 5.5 569afb1378 Level 120: autohunt large targets, boss hit range, QUEST_INFO size
- QUEST_INFO: take the full packet size from the flags (server built it short)
- Bosses get the huge-race 500 centre hit test, like AVA2 IsBoss()
- Autohunt: defending reach as body size for large targets, walk straight
  at a body in reach when the planner finds no path, escalating skip for a
  target it keeps stalling on, new anchor after a teleport, immune skip only
  on an explicit 0-damage packet
- ava2-dungeons README: hydra range notes, snow key stack note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 11:59:54 +09:00
shenleiandClaude Opus 5.5 a1e7da68a4 Level 120 (L1-L5): AVA2 maps, drops, dungeons, dungeon timer UI
- tools/server/level-120: sbtest install of the 120 exp table and the
  unsigned exp column.
- tools/server/ava2-maps: the 10 AVA2 maps (pack, map data, regen, designed
  drops) for sbtest; Ava2MapsScript.inc, gr2 texture and mob_proto tests.
- tools/server/ava2-dungeons: snow / ship defence / Meley quests ported from
  AVA2 (make_quests.py + install.sh).
- mt_dungeon_timer (DungeonTimerScript.inc): AVA2 dungeon timer in place of
  the minimap (RefreshDungeonTimer) and the hydra mast HP bar (gethydrahp).
- Autohunt skips a target that is hit but takes no damage for 4 s (blocked
  Meley statues) and keeps it skipped for 60 s; FindCloseTarget now honours
  the skip list.

Meley full run passed on sbtest with the Mac client. Not deployed live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 08:13:32 +09:00
shenleiandClaude Opus 5.5 657e49e52a Switchbot: sbtest isolated test cluster scripts + live test results
tools/server/sbtest/{setup,restart,rollback}.sh build and manage the isolated
203 test cluster (db :15040, auth :11040, channel5 on *_sb schemas with the
unlocked AVA2 protos). Docs record the channel5/sbtest switchbot results:
weapon, ring, talisman, relog (cache + MySQL), same-core warp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 23:03:07 +09:00
shenleiandClaude Opus 5.5 99cf5514c3 Send the switchbot version mark on the EU version packet
Every locale.cfg build takes the EU branch of SendClientVersionPacket, so
"mt20261016" was never sent. The EU timestamp is now
"1215955205 mt20261016": the server's atoi version check still reads
1215955205.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 20:35:08 +09:00
shenleiandClaude Opus 5.5 fc98e6e2b4 Port the AVA2 switchbot window and switchbot module
PythonSwitchbot + PythonNetworkStreamPhaseGameSwitchbot from AVA2 (CG/GC 171,
SWITCHBOT window 7, SLOT_TYPE_SWITCHBOT), uiswitchbot.py verbatim in
SwitchbotScript.inc plus its ENABLE_SWITCHBOT glue (tooltip, mouse/inventory
drag-back, interface/game hooks, zh strings, server switchbot_* messages).
Entry is the minimap 洗练 button; F9 stays with auto-hunt. The client version
timestamp is now "mt20261016" so the server enables the switchbot.
50348/50349 no longer open the window. Adds docs/AVA2-PARITY-PLAN.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 20:26:06 +09:00
shenleiandClaude Opus 5.5 e70a6abf7a Merge main into feature/ava2-unlock
Conflicts resolved by keeping both sides: AVA2 attribute lock materials
(50348/50349) and battle pass tickets from main alongside the unlock
branch's costume enchants, talismans and new rings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 18:14:39 +09:00
shenandshen 507e687867 feat: add MeshPort overlay networking, item actions window, and AVA2 client enhancements
- add MeshPort peer-to-peer overlay networking SDK, C++ integration, and Python bindings
- add item actions quick use/split/delete/lock overlay window (mt_item_actions)
- add shop name range and NPC name visibility settings to system display options
- support battlepass ticket activation and month validation in mt_battlepass
- support boss tracking teleport destination button in mt_bosses
- support asynchronous account registration cancellation and pending login cancellation
- update AVA2 item conversion for attr lock scrolls and battlepass tickets
- update .gitignore for local build outputs and caches
2026-10-16 01:29:57 -07:00
shenleiandClaude Opus 5.5 8d01a7a754 AVA2 unlock P8: new rings client (mt_rings, ring slots, item import)
ITEM_TYPE_RINGS / c_Equipment_Rings1/2, mt_rings adds the two slots beside
the shoes, the accessory tooltip and the drill / jewel / switcher / adder drop
targets; make_items imports the four +0..+9 ring chains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:40:40 +09:00
shenleiandClaude Opus 5.5 b9af78ef64 AVA2 unlock P7: talismans (护符) and their attribute items
- ARMOR_PENDANT / APPLY_ENCHANT_* 123-128 / c_Equipment_Pendant (server WEAR_PENDANT 27) constants
- mt_pendant: equipment slot under the earring, drop targets for 71302/53996 (reroll) and 71301/53997
  (add, max 5), MTPENDANT messages; enchant apply texts in mt_applies
- switchbot ignores talismans and talisman rerolls
- make_items keeps the six +0..+200 chains (1206 items) and the four attribute items
- tools/server/pendant: refine sets 440-499 (AVA2 rows) + install.sh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:26:12 +09:00
shenleiandClaude Opus 5.5 a1b63c0afb AVA2 unlock P6: costume enchants (client)
Keep 54001-54078 (body/hair) and 54124-54174 (mount skin) enchants as
USE_CHANGE_ATTRIBUTE; mt_costume_attr marks matching costumes as drop
targets, shows the attribute in the tooltip and renders MTCATTR; the
switchbot no longer lists enchants as scrolls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:07:07 +09:00
shenleiandClaude Opus 5.5 1412806ee9 AVA2 unlock P5: mount costume / skin (COSTUME_MOUNT 2, COSTUME_MOUNT_SKIN 4, slots 25/26, mt_mount, npc_mount races)
Keeps 71502/71505/71508/71511 and skins 71234/71254 as costumes, stages the
npc_mount models of races 32012/32028, writes mobs-server.tsv and lets
install_items.py install mob rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 13:58:16 +09:00
shenleiandClaude Opus 5.5 4d7306792e AVA2 unlock P4: sash (mt_sash windows/slot/tooltips, sash module, CHR_EQUIPPART_SASH, item_scale)
Client side of metin2-server FEATURE-AVA2-UNLOCK P4: HEADER_CG_SASH 211 /
HEADER_GC_SASH 215, a fifth awPart WORD in the character packets (old
servers break), the sash part attached by scale per job/sex, the combine
and absorb windows in script mt_sash, and quest tools/server/sash on 20016.
The ava2items pack keeps the four grade-4 sashes plus their effects,
acce window images and item_scale.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 13:45:02 +09:00
shenleiandClaude Opus 5.5 0d2a9ebe36 AVA2 unlock P3: dragon armor 21210-21279 (+0..+9) with armor shape 32
Keep ARMOR_BODY rows, import the whole refine chain, ship AVA2's <race>_7_1
models and register shape 32 after each race msm load (mt_shapes): the race
msm are read by bare name from the root pack and cannot be overridden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 11:13:41 +09:00
shenleiandClaude Opus 5.5 178fcf48fe AVA2 unlock P1/P2: treasure boxes/keys and stone/Boss stones usable
Keep ITEM_TREASURE_BOX/KEY and METIN_NORMAL rows; APPLY_ATTBONUS_STONE 139 /
APPLY_ATTBONUS_BOSS 140 in ItemData.h, item module and tooltip (mt_applies).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 11:05:20 +09:00
shenlei f266072f67 Merge feature/ava2-items 2026-10-16 10:10:50 +09:00
shenleiandClaude Opus 5.5 90f213c4cc Import the AVA2 drop items the server lacks as ordinary 40250 items
tools/server/ava2-items stages the 478 items referenced by the AVA2 drop
tables that 203 does not have: server item_proto/item_names rows, a client
item_proto/item_list/itemdesc patch over the biolog tables, and the AVA2
icons, ground models (BitKnit gr2 via sdk/gr2) and their textures, packed
as ava2items ahead of biolog. Materials, quest items, chests, the guardian
weapons and shoes keep their meaning; items of AVA2-only systems (pets,
pendants, new rings, mounts, sashes, costume enchants, talisman items, new
skill books) become plain ITEM_NONE items until those systems are ported.
Names are translated in names_zh.tsv.

item_proto_patch is the full-record successor of biolog_proto_patch, with
--dump for checking conversions against the shipped table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 10:10:47 +09:00
shenleiandClaude Opus 5.5 d11d46c469 Fix the zh locale build after the item shapes overlay
A stray comma turned the proto patch argument list into a tuple, so the
build failed with "bad operand type for unary +" since 5dcac9cb. The AVA2
biology step also accepts the reference unpacked under AVA2/TEST instead of
only the FILES+SRC.tgz archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:31:52 +09:00
shenleiandClaude Opus 5.5 8164c02709 Add the battle pass window (mt_battlepass)
战令 window opened by the 战令 button under the minimap or F6: season and
time left, missions with progress and per-mission claim, final reward,
done notices in chat. Talks to the server over /mt_bp 1 / MTBP1 lines and
reports an unsupported server after 3 s without an answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:11:43 +09:00
shenleiandClaude Opus 5.5 84404cf1f1 Model preview: AVA2 render-target window on a Vulkan colour target
Port of AVA2's CRenderTarget / GrpRenderTargetTexture / renderTarget module.
The host gains an RGBA8 offscreen colour pass for D3D colour render targets;
mt_preview shows wearable items on every allowed race and monsters with
motions, reached by X+click in the inventory and shop and from the wiki.
Player races are created as TYPE_PC so their parts exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 04:48:07 +09:00
shenleiandClaude Opus 5.5 32372c2a73 vip-card: back up the proto rows as REPLACE statements only
A plain mysqldump --where also writes DROP/CREATE TABLE, so restoring the
backup would have emptied item_proto down to the two cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 03:40:50 +09:00
shenleiandClaude Opus 5.5 5dcac9cbd4 Add VIP cards and the VIP panel (mt_vip)
Cards 38001 (7 days) and 38002 (30 days) extend all seven original premium
services of the account; the server side is metin2-server port_premium.h
(docs/FEATURE-VIP.md).

- mt_vip: /mt_vip 1 status, VIP button by the minimap, remaining time per
  service, chat line on card use.
- tools/server/vip-card: 40250 ships both cards with size 0 (two share a
  cell, neither moves); give them one cell, stacking, a log and no NPC sale,
  and name them on the server.
- locale_proto_patch: optional item shape table (size, flags, anti flags)
  so the client proto matches; data/zh_40250/item_shapes_server.tsv.
- Item mall (9010): 7 days 5,000,000, 30 days 18,000,000 gold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 02:13:15 +09:00
shenleiandClaude Opus 5.5 b14fb2ffe9 Record the batch chest production deploy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:47:50 +09:00
shenleiandClaude Opus 5.5 b8363693f1 Add batch gift box opening window (mt_chest)
Ctrl + right click on an ITEM_GIFTBOX opens a count window (1/10/50/all,
max 200) that sends /mt_chest and sums the MTCH1 gains into chat. Without
Ctrl or against a server without the command the original use runs.
Exports item.ITEM_TYPE_GIFTBOX. Verified live on the 203 channel5 core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:31:03 +09:00
shenleiandClaude Opus 5.5 10f8c9760e Record the attribute lock production deploy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:11:31 +09:00
shenleiandClaude Opus 5.5 a22c064587 Add attribute lock buttons to the switchbot window
Five per-slot toggles next to start/stop, shown only when the server
sends the MTSB1 lock line; locked attributes are marked in the current
attribute line. Server side: metin2-server docs/FEATURE-ATTR-LOCK.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:06:00 +09:00
shenleiandClaude Opus 5.5 ffe097ec57 Add world boss window (AVA2 uitrack world-boss tab, read-only)
mt_boss lists the server's timed boss regens from the MTF1 "bosses"
query: alive/max, countdown, map-local position and period, paged by 8,
with per-boss spawn reminders that only fire on a fresh alive snapshot.
Teleport is left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:36:04 +09:00
shenleiandClaude Opus 5.5 13a462b6fc Add client-only channel switch (AVA2 ENABLE_CHANNEL_CHANGE)
mt_channel lists the serverInfo channels of the current server and switches by
running the original paths: /logout, then the login window connects to the
chosen channel with the account kept by MainStream, and the original
stream.isAutoSelect starts the same character. No server change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 21:37:02 +09:00
shenleiandClaude Opus 5.5 aeb67f3c9c Hide near trees drawn as PC blockers when trees are switched off
A tree close to the camera is drawn by RenderPCBlocker, not RenderTree,
so background.SetVisiblePart(PART_TREE, 0) left it on screen. Skip tree
blockers while PART_TREE is hidden. Live screenshots on the 203 test
core confirm the tree, the GM mark and the weapon glow now disappear.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 21:24:53 +09:00
shenleiandClaude Opus 5.5 e546f91e03 Add AVA2-style display options (effect level, trees, clouds)
Client-only port of ENABLE_GRAPHIC_ON_OFF / HIDE_OBJECTS: five effect
levels toggle attached actor effects via Active/Deactive, tree and cloud
parts use background.SetVisiblePart, plus shortcuts for the original
name and damage options. mt_display window, mt_display.cfg, port.display
test, docs/AVA2-DISPLAY.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 21:11:25 +09:00
shenleiandClaude Opus 5.5 e22d7ba6fd Add batch pickup on the pickup key for the server mt_pickup command
Embedded module mt_pickup wraps GameWindow.PickUpItem (Z / `): with batch
pickup on it sends /mt_pickup 1 MASK (0.5 s gap, one in flight, presses
swallowed while waiting); after 3 s without a reply it notes once in chat
and falls back to the original single pickup. Settings window (on/off and
8 categories, persisted in mt_pickup.cfg) behind a "拾取" button under the
switchbot entry by the minimap.

Live tested against 203 (channel-5 test core, port 13040) with the macOS
native client.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:45:37 +09:00
shenleiandClaude Opus 5.5 514eae6745 Record live switchbot busy/no_scroll/rejected results
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:49:21 +09:00
shenleiandClaude Opus 5.5 6b1d21a2c5 Add switchbot (自动洗练) window for the server mt_switchbot command
Embedded module mt_switchbot: a paced request queue (0.3 s gap, one in
flight, 4 s timeout -> unsupported), atomic attrs lists from the server,
two alternatives of up to 5 targets, 10-1000 roll limits, live state and
stop reasons. Entry button under the wiki button by the minimap. The
selection follows the server-reported cell when the item moves mid-run
and falls back to the same vnum when it moves while idle.

Live tested against 203 (channel-5 test core, port 13040) with the macOS
native client.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:45:14 +09:00
shenandshen 4e2d39b612 Add feature queries, dungeon information and event calendar UI 2026-10-15 02:28:01 -07:00
shenandshen 9d9993b007 Add searchable wiki catalogue and biology material navigation 2026-10-15 00:48:50 -07:00
shenandshen 6472d17306 Add mobile touch UI and AVA2 biology system with server tools 2026-10-14 19:12:38 -07:00
shenandshen e7f2202a94 Improve auto-hunt navigation, recovery and mounted skill casting 2026-10-01 07:46:44 -07:00
shenandshen 586bae51e4 Set every mount shop item price to one gold 2026-10-01 01:09:29 -07:00
shenandshen f2848af3ac Fix null character access in server bonus status query 2026-09-30 23:10:22 -07:00
shenandshen eb5833747a Expand auto-hunt pursuit ranges and show server bonus effects 2026-09-30 23:02:04 -07:00
shenandshen 922954dd97 Optimize fixed-function Vulkan shaders for Adreno 512 and recover Android surfaces 2026-09-30 21:48:07 -07:00
shenandshen 1e4762ccf4 Fix Android 10 resource sync and fullscreen; record Global ROM comparison 2026-09-30 19:35:52 -07:00
shenandshen b8b0a84149 Add render isolation probes and profile Mi 8 Lite terrain bottleneck 2026-09-30 18:10:12 -07:00
shenandshen d45c5c6cf5 Fix Android directory CRC login crash and record Mi 8 Lite device tests 2026-09-30 17:54:11 -07:00
shenandshen 059ceadec2 Expand movement ring to all 65 registered maps with paged categories 2026-09-30 17:33:13 -07:00
shenandshen cf9ed052b1 Start packaged macOS client at manual server login 2026-09-30 17:14:30 -07:00
shenandshen 8a6aeaedf0 Add free cloak-style auto-hunt pull for 3 10 or 20 monster groups 2026-09-30 17:07:24 -07:00
shenandshen d1f8d3dddd Improve macOS Retina UI clarity and bundle HD assets 2026-09-30 16:13:31 -07:00
shenandshen 905f23f135 Fix model track-group movement and RGB destination-alpha blending 2026-09-30 08:13:29 -07:00
shenleiandClaude Opus 5.5 f345bd5d3b Ring 70058: usable from level 1, tooltip says unlimited and no cooldown
The item_proto limit (LEVEL 30) kept new characters from using the warp
ring. ring-warp/install.sh now clears it in share/conf/item_proto.txt and
the player.item_proto mirror. The client proto gets the same limit through
a new item_limits_server.tsv fed to locale_proto_patch, and the zh
itemdesc overlay replaces the "50 uses" text.

Verified on 203: a fresh level-1 character opened the warp menu four times
in a row (one real warp in between), ring still in the bag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 20:59:21 +09:00
shenleiandClaude Opus 5.5 01cc252a1d Host: 2x UI textures from hd_ui.pak (AI-upscaled 40250 UI art)
The phone magnifies the 600-high 40250 UI about 1.8x, so the 1x window art
and icons look soft next to the oversampled text. scripts/build_hd_ui.py
upscales every UI image the zh client loads (d:/ymir work/ui/, icon/,
locale/zh/) with realesrgan-x4plus, reduces it to 2x and back-projects the
residual so the board grain the network denoises away comes back; the host
uploads a texture found in hd_ui.pak in place of the pack file. Layout,
sizes and UVs stay the engine's 1x ones. MT_HD_UI=0 disables it; the pak
(135 MB, Ymir art) is built into the client dir and synced to the phone,
never committed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 20:04:46 +09:00
shenleiandClaude Opus 5.5 c5b709d38d Merge branch 'tools/android-deploy'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:52:01 +09:00
shenleiandClaude Opus 5.5 8182445f8b Merge branch 'feat/app-icon'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:52:00 +09:00
shenleiandClaude Opus 5.5 8ec8f1a445 UserInterface: poll the network stream on the 60 Hz update clock
40250 runs CPythonApplication::Process every 16/17 ms and only skips the
render when late, so GamePhase gets its three-packets-a-poll budget 60
times a second. The host polled once per rendered frame: at 30 fps idle
(or a slow phone) mob move packets queued behind character add/del
bursts for up to a second and mobs stopped, then jumped. Poll once per
elapsed 60 Hz tick. Real-server A/B: move push gap p50 138-178 -> 70-92
ms, p90 580-785 -> 358-403 ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:36:49 +09:00
shenleiandClaude Opus 5.5 3aa4c482e9 tools/server: shop-item-time patch — NPC shop items carry a new item's time sockets
40250 game zeroes alSockets for NPC (shop.cpp) and extended (shopEx.cpp) shop items, so
uitooltip shows 'remaining 0 min' for mounts and item-mall time items. MT_GetNewItemSockets
fills them with ITEM_MANAGER::CreateItem's rules (UNIQUE remain time, auto potions,
LIMIT_REAL_TIME, LIMIT_TIMER_BASED_ON_WEAR). Deployed on 203; mount shop 20368 verified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:55:36 +09:00
shenleiandClaude Opus 5.5 f9be09d2c2 fix(touch): show the joystick and skill buttons only in the game phase
The controls keyed off CPythonBackground's warp map name, which the
loading window sets before the game window exists, so the loading screen
already showed them. Also require CPythonNetworkStream's phase to be
"Game" (PORT_IsGamePhase, exposed as PythonBoot::InGamePhase).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:33:46 +09:00
shenleiandClaude Opus 5.5 5c8d583b31 fix(touch): raise the soft keyboard only for a tap on the visible focused EditLine
A chat line keeps the IME focus under a hidden board (interfacemodule
__HideWindows for an NPC dialog, the focus handed back by
UnlockWindow/DeactivateWindow), and IsPointInsideFocusedWindow only
checked its own show flag and rect, so taps on the NPC dialog or the
minimap buttons opened the keyboard. Require the whole parent chain to
render and the picked window to be the focused one or its child.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:00:39 +09:00
shenleiandClaude Opus 5.5 78d14776b8 fix(platform): decode GDI ANSI text with the font charset's code page
TextOutA / GetTextExtentPoint32A in the Win32 GDI shim always decoded with CP_ACP (1252), so the
server notices drawn by uiTip.TipBoard / BigBoard (CTextBar, a GB2312_CHARSET font in the 936
locale) showed GBK bytes as Latin-1 mojibake. Windows GDI decodes ANSI calls with the code page of
the selected font's charset; the shim now keeps lfCharSet on the font and does the same.
port.text_bar checks TextOutA of GBK bytes against TextOutW of the Unicode text, and the extent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:42:44 +09:00
shenleiandClaude Opus 5.5 cd9e5b259d android: build.sh installs and syncs the game files when a phone is attached
After building the APK, android/build.sh now picks the attached device (ANDROID_SERIAL for several),
installs the APK (reinstalling on a signature mismatch), syncs the zh client into files/Client and, with
--launch, wakes the phone and starts the app. Without a device it only builds.

push-client.sh is now incremental (android/sync_client.py): the device keeps files/Client/.mt_sync
(size, mtime, path of what the last sync wrote), so later syncs send only new and changed files as one
tar streamed through `adb shell -T run-as` (no copy in /data/local/tmp) and delete the ones gone
locally. Only game resources are synced; settings and logs the app writes there are kept. --locale zh
rebuilds build/zh-locale/Client first when its inputs changed. android/adb_env.sh picks adb and falls
back to server port 5038 when :5037 cannot bind.

Verified against a fake adb device: first sync (1.4 GB, byte-identical), no-op resync, changed files,
deletions, locale switch, --full, the install/launch path and the no-device path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:36:21 +09:00
shenleiandClaude Opus 5.5 a60ed6b03f Add the Metin2 app icon for Android, macOS and iOS
branding/icon/icon.svg (a cracked Metin stone with glowing runes, inside a studded gold ring, in front of
a blood moon over ink mountains) is the single source; build_icons.sh renders it with headless Chrome and
writes the committed outputs: Android legacy + adaptive mipmaps (wired into the manifest), the macOS
AppIcon.icns and the iOS AppIcon.appiconset. scripts/package_mac_app.sh wraps mt_native_render into a
local Metin2.app using that icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:23:42 +09:00
shenleiandClaude Opus 5.5 58a3d01027 port: ScriptLib Resource.cpp verbatim 40250; PythonUtils mapped (already verbatim)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:10:32 +09:00
1026 changed files with 273104 additions and 1129 deletions
@@ -76,7 +76,7 @@ The 106 `project/*_system.gd` files that only their own `test_*_parity.gd` loade
cmake -S . -B build/native -DCMAKE_BUILD_TYPE=Release -DMT_BUILD_NATIVE_RENDER=ON -DCMAKE_PREFIX_PATH=/opt/homebrew
cmake --build build/native -j8 && ctest --test-dir build/native --output-on-failure -j4
./scripts/port_gate.sh macos android # build/port-gate
./android/build.sh Release --install # build/android + APK
./android/build.sh Release # build/android + APK; installs + syncs zh assets when a phone is attached
```
All build trees live under `build/` (gitignored). Always finish with `git diff --check`.
+2
View File
@@ -0,0 +1,2 @@
# Wiki TSV keeps a final TAB for recipes with an empty materials column.
data/wiki/catalogue.txt whitespace=-blank-at-eol
+19
View File
@@ -4,6 +4,7 @@
/build/
/build-*/
/cmake-build-*/
/dist/
compile_commands.json
@@ -34,8 +35,26 @@ __pycache__/
# Written by 40250 uitaskbar.py at runtime.
/mouse.cfg
# Written at runtime by the mt_* option windows (mt_pickup, mt_display, ...).
/mt_*.cfg
/Client/mt_*.cfg
# native Android client (./android/build.sh): SDL3 download, NDK builds, Gradle output
/android/.gradle/
/android/app/build/
/android/build/
/android/local.properties
/Client/autohunt.cfg
# MeshPort private network identity; SDK build output normally lives under /build.
/config/meshport.private.toml
/third_party/meshport/target/
# Local build outputs, caches and legacy restructure leftovers
/build_*/
/.codex/
/android-native/
/extension/
/script/
/test/
+12 -1
View File
@@ -16,10 +16,21 @@ option(MT_BUILD_TOOLS "Build libgr2 validation tools" OFF)
option(MT_BUILD_PORT "Build the 40250 port and its tests" ON)
option(MT_BUILD_NATIVE_RENDER "Build the SDL3 and Vulkan client" OFF)
add_subdirectory(src/gr2)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../sdk/gr2)
message(STATUS "Using shared SDK: ../sdk/gr2")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../sdk/gr2 ${CMAKE_CURRENT_BINARY_DIR}/sdk_gr2)
else()
add_subdirectory(src/gr2)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../sdk/speedtree)
message(STATUS "Using shared SDK: ../sdk/speedtree")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../sdk/speedtree ${CMAKE_CURRENT_BINARY_DIR}/sdk_speedtree)
endif()
add_subdirectory(third_party)
add_subdirectory(src/codepage)
if(MT_BUILD_PORT OR MT_BUILD_NATIVE_RENDER)
add_subdirectory(src/meshport)
add_subdirectory(src/port)
endif()
+2
View File
@@ -1,5 +1,7 @@
PACK
*
patch_ava2_ui
*
patch1
*
season3_eu
Binary file not shown.
Binary file not shown.
+7 -5
View File
@@ -4,9 +4,10 @@
## macOS
需要 CMake、SDL3、Vulkan loader、MoltenVK、glslc(第三方库均已随仓库提供源码,无需子模块):
需要 Rust 1.95+、protoc、CMake、SDL3、Vulkan loader、MoltenVK、glslc(第三方库均已随仓库提供源码,无需子模块):
```sh
./scripts/build_meshport.sh macos
cmake -S . -B build/release -DCMAKE_BUILD_TYPE=Release \
-DMT_BUILD_NATIVE_RENDER=ON -DCMAKE_PREFIX_PATH=/opt/homebrew
cmake --build build/release --target mt_native_render -j8
@@ -14,17 +15,18 @@ cmake --build build/release --target mt_native_render -j8
--live-client "/path/to/40250/Client" --login-screen --width 1024 --height 768
```
MeshPort SDK 源码在 `third_party/meshport`,无需单独检出 MeshPort 项目。频道查询、登录、注册、地图/公会连接及 UDP 都在公共网络层判断:同网段直连,跨网段组网,使用 DHCP 动态 IP;远端连接验证成功后提示“组网成功”。私有配置与构建说明见 [docs/MESHPORT.md](docs/MESHPORT.md)。
详见 [src/host/README.md](src/host/README.md)。
## Android
```sh
./android/build.sh Release --install
./android/push-client.sh /path/to/40250/Client
adb shell am start -n org.metin2port.client/.MainActivity
./android/build.sh # 构建 APK;连着手机时自动安装并增量推送中文资源
./android/build.sh --launch # 同上,完成后唤醒手机并启动
```
APK 由 SDLActivity、`libSDL3.so` 和 Vulkan 原生 `libmain.so` 组成。40250 `Client` 资源单独复制到应用数据目录;`--live-server HOST:AUTH_PORT:GAME_PORT --login-screen` 可连接服务器。构建与启动细节见 [src/host/README.md](src/host/README.md)。
APK 由 SDLActivity、`libSDL3.so` 和 Vulkan 原生 `libmain.so` 组成。40250 `Client` 资源单独同步到应用数据目录(`android/push-client.sh`,只传有变化的文件);`--live-server HOST:AUTH_PORT:GAME_PORT --login-screen` 可连接服务器。构建与启动细节见 [src/host/README.md](src/host/README.md)。
## 测试
+41
View File
@@ -0,0 +1,41 @@
# Sourced by the android/ scripts: picks adb and the target device.
# ADB adb binary (default: $ANDROID_HOME/platform-tools/adb, else adb on PATH)
# ANDROID_SERIAL device to use when several are attached (adb honours it itself)
# An adb server that cannot bind :5037 ("Address already in use" with nothing listening, seen on this
# Mac after sleep) is retried on :5038 through ANDROID_ADB_SERVER_PORT.
SDK="${ANDROID_HOME:-${ANDROID_SDK_ROOT:-$HOME/Library/Android/sdk}}"
PKG=org.metin2port.client
if [ -z "${ADB:-}" ]; then
if [ -x "$SDK/platform-tools/adb" ]; then ADB="$SDK/platform-tools/adb"; else ADB="$(command -v adb || true)"; fi
fi
[ -n "$ADB" ] || { echo "adb not found (install Android platform-tools or set ADB)" >&2; return 1 2>/dev/null || exit 1; }
if ! "$ADB" start-server >/dev/null 2>&1; then
export ANDROID_ADB_SERVER_PORT=5038
"$ADB" start-server >/dev/null 2>&1 || { echo "adb server does not start on :5037 or :5038" >&2; return 1 2>/dev/null || exit 1; }
echo "adb: :5037 unusable, using :5038"
fi
export ADB
# adb_device: sets DEVICE to the one ready device (or ANDROID_SERIAL) and returns 0; returns 1 with a
# message when none is ready (unauthorized / offline devices are named so the user can fix them).
adb_device() {
local ready others
ready=$("$ADB" devices | awk 'NR > 1 && $2 == "device" { print $1 }')
others=$("$ADB" devices | awk 'NR > 1 && NF >= 2 && $2 != "device" { print $1 " (" $2 ")" }')
if [ -n "${ANDROID_SERIAL:-}" ]; then
if printf '%s\n' "$ready" | grep -qxF "$ANDROID_SERIAL"; then DEVICE="$ANDROID_SERIAL"; return 0; fi
echo "device $ANDROID_SERIAL is not ready" >&2
return 1
fi
case $(printf '%s' "$ready" | grep -c .) in
1) DEVICE="$ready"; export ANDROID_SERIAL="$DEVICE"; return 0 ;;
0)
if [ -n "$others" ]; then
echo "device attached but not ready: $others (unlock the phone and allow USB debugging)" >&2
else
echo "no Android device attached" >&2
fi
return 1 ;;
*) echo "several devices attached, pick one with ANDROID_SERIAL:" $ready >&2; return 1 ;;
esac
}
+4
View File
@@ -6,6 +6,8 @@
<uses-permission android:name="android.permission.VIBRATE" />
<application android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:appCategory="game"
android:isGame="true"
@@ -18,6 +20,8 @@
android:alwaysRetainTaskState="true"
android:launchMode="singleInstance"
android:screenOrientation="sensorLandscape"
android:showWhenLocked="true"
android:turnScreenOn="true"
android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
android:preferMinimalPostProcessing="true"
android:exported="true">
@@ -35,6 +35,17 @@ public class MainActivity extends SDLActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
setShowWhenLocked(true);
setTurnScreenOn(true);
} else {
getWindow().addFlags(
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON |
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
);
}
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
applyImmersiveMode();
// --refresh-rate N pins the display mode for a test run; otherwise src/host switches it with
@@ -214,6 +225,11 @@ public class MainActivity extends SDLActivity {
}
private void applyImmersiveMode() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
final WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
getWindow().setAttributes(attributes);
}
final View decor = getWindow().getDecorView();
decor.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY |
@@ -248,7 +264,7 @@ public class MainActivity extends SDLActivity {
args = DEFAULT_ARGS;
if (!args.contains("--safe-inset-px"))
args = args.trim() + " --safe-inset-px " + safeInsetPx();
// Test phase: FPS readout in the top-left corner. Drop this line for release builds.
// Test phase: FPS readout at the top centre. Drop this line for release builds.
if (!args.contains("--show-fps"))
args = args.trim() + " --show-fps";
return args.trim().split("\\s+");
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by branding/icon/build_icons.sh. -->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by branding/icon/build_icons.sh. -->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

+63 -11
View File
@@ -1,20 +1,35 @@
#!/usr/bin/env bash
# Build the native (SDL3 + Vulkan) 40250 client as an Android arm64 APK.
# ./android/build.sh [Debug|Release] [--install]
# Build the native (SDL3 + Vulkan) 40250 client as an Android arm64 APK and, when a phone is attached,
# install it and bring its game files up to date, so the app is ready to play.
# ./android/build.sh [Debug|Release] [--no-deploy] [--no-push] [--locale XX] [--full-push] [--launch]
# Output: android/app/build/outputs/apk/debug/app-debug.apk
# The 1.4 GB Client/ directory is not in the APK; push it once with ./android/push-client.sh.
# Deploy (skipped when no device is ready; ANDROID_SERIAL picks one of several):
# adb install -r, then ./android/push-client.sh --locale XX (default zh), which sends only the game
# files changed since the last push (the first push is the whole 1.4 GB client). --no-push installs
# only, --full-push resends everything, --launch wakes the phone and starts the app afterwards.
set -euo pipefail
cd "$(dirname "$0")/.."
REPO="$PWD"
CONFIG=Release
INSTALL=0
for a in "$@"; do
case "$a" in
Debug|Release) CONFIG="$a" ;;
--install) INSTALL=1 ;;
*) echo "usage: $0 [Debug|Release] [--install]" >&2; exit 2 ;;
DEPLOY=1
PUSH=1
LOCALE=zh
FULL_PUSH=0
LAUNCH=0
usage="usage: $0 [Debug|Release] [--no-deploy] [--no-push] [--locale XX] [--full-push] [--launch]"
while [ $# -gt 0 ]; do
case "$1" in
Debug|Release) CONFIG="$1" ;;
--install) ;; # the default now; kept for old command lines
--no-deploy) DEPLOY=0 ;;
--no-push) PUSH=0 ;;
--locale) LOCALE="${2:?--locale needs a locale code}"; shift ;;
--full-push) FULL_PUSH=1 ;;
--launch) LAUNCH=1 ;;
*) echo "$usage" >&2; exit 2 ;;
esac
shift
done
API=24
OUT="$REPO/build/android"
@@ -59,11 +74,15 @@ if [ ! -f "$OUT/sdl3/lib/libSDL3.so" ] || [ ! -f "$OUT/sdl3/.page16k" ]; then
touch "$OUT/sdl3/.page16k"
fi
# --- Embedded application-only networking SDK (source lives in this repository) ---
"$REPO/scripts/build_meshport.sh" android
# --- libmain.so (src/host + port_platform + embedded Python) and its assets ---
cmake -S . -B "$OUT/app-build" -G "Unix Makefiles" -Wno-deprecated \
-DCMAKE_TOOLCHAIN_FILE="$TOOLCHAIN" -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM="android-$API" "$PAGE_SIZES" \
-DCMAKE_BUILD_TYPE="$CONFIG" -DMT_BUILD_TOOLS=OFF -DBUILD_TESTING=OFF \
-DMT_BUILD_NATIVE_RENDER=ON -DSDL3_DIR="$OUT/sdl3/lib/cmake/SDL3" \
-DMT_MESHPORT_LIBRARY="${MT_MESHPORT_LIBRARY:-$REPO/build/meshport-runtime/aarch64-linux-android/release/libmetin2_meshport.a}" \
-DCMAKE_FIND_ROOT_PATH="$OUT/sdl3" -DGLSLC="$GLSLC" >/dev/null
cmake --build "$OUT/app-build" --target main mt_native_android_assets -j "$JOBS"
@@ -84,6 +103,39 @@ variant=Debug # debug-signed either way (sideload); CONFIG picks the native opt
APK="$REPO/android/app/build/outputs/apk/debug/app-debug.apk"
ls -la "$APK"
if [ "$INSTALL" = 1 ]; then
adb install -r "$APK"
[ "$DEPLOY" = 1 ] || exit 0
. android/adb_env.sh
if ! adb_device; then
echo "APK built; install and push skipped. Attach the phone and rerun (or ./android/push-client.sh)."
exit 0
fi
echo "device: $DEVICE ($("$ADB" shell getprop ro.product.model | tr -d '\r'))"
if ! out=$("$ADB" install -r "$APK" 2>&1); then
echo "$out" >&2
case "$out" in
*INSTALL_FAILED_UPDATE_INCOMPATIBLE*|*INSTALL_FAILED_VERSION_DOWNGRADE*)
# Signed by another machine's debug key (or a newer build): only a reinstall helps. That drops the
# app's data, so the push below starts over with the whole client.
echo "reinstalling $PKG (the installed copy has another signature; its data is removed)"
"$ADB" uninstall "$PKG" >/dev/null
"$ADB" install "$APK" ;;
*)
echo "install failed; on some phones USB installs must be allowed in developer options and confirmed on screen" >&2
exit 1 ;;
esac
fi
echo "installed $PKG"
if [ "$PUSH" = 1 ]; then
push_args=(--locale "$LOCALE")
[ "$FULL_PUSH" = 1 ] && push_args+=(--full)
python3 android/sync_client.py "${push_args[@]}"
fi
if [ "$LAUNCH" = 1 ]; then
# The app exits with a Vulkan surface error when started behind the lock screen.
"$ADB" shell input keyevent KEYCODE_WAKEUP
if "$ADB" shell dumpsys window | grep -qE 'mDreamingLockscreen=true|isKeyguardShowing=true|mKeyguardShowing=true'; then
echo "the phone is locked: unlock it, then start Metin2 from the launcher" >&2
else
"$ADB" shell am start -n "$PKG/.MainActivity" >/dev/null && echo "started $PKG"
fi
fi
+10 -35
View File
@@ -1,39 +1,14 @@
#!/usr/bin/env bash
# Copy the 40250 Client/ directory into the Android app's private files/ (SDL_GetPrefPath), where
# src/host looks for files/Client/pack/Index. Needs the debug APK installed (run-as).
# ./android/push-client.sh [--locale XX] [CLIENT_DIR]
# --locale XX writes the pushed locale.cfg from CLIENT_DIR/locale_XX.cfg. --locale zh defaults
# CLIENT_DIR to build/zh-locale/Client (scripts/build_zh_locale.py), whose pack/ registers locale_zh.
# Sync the 40250 game files into the Android app's private files/ (SDL_GetPrefPath), where src/host looks
# for files/Client/pack/Index. Only files changed since the last sync are sent (android/sync_client.py).
# Needs the debug APK installed (run-as).
# ./android/push-client.sh [--locale XX] [--full] [--dry-run] [CLIENT_DIR]
# --locale XX writes the pushed locale.cfg from CLIENT_DIR/locale_XX.cfg. --locale zh defaults CLIENT_DIR
# to build/zh-locale/Client (scripts/build_zh_locale.py, rebuilt first when its inputs changed).
# --full deletes the synced resources on the device and pushes everything again.
# Symbolic links in CLIENT_DIR (the zh client links the original packs) are copied as their targets.
set -euo pipefail
cd "$(dirname "$0")/.."
PKG=org.metin2port.client
LOCALE=""
if [ "${1:-}" = "--locale" ]; then
LOCALE="${2:?--locale needs a locale code}"
shift 2
fi
if [ "$LOCALE" = zh ]; then
CLIENT="${1:-build/zh-locale/Client}"
else
CLIENT="${1:-Client}"
fi
[ -f "$CLIENT/pack/Index" ] || { echo "$CLIENT/pack/Index not found" >&2; exit 1; }
# The archive's top directory is basename(CLIENT DIR); the app reads files/Client.
[ "$(basename "$CLIENT")" = Client ] || { echo "CLIENT_DIR must be named Client" >&2; exit 1; }
if [ -n "$LOCALE" ]; then
[ -f "$CLIENT/locale_$LOCALE.cfg" ] || { echo "$CLIENT/locale_$LOCALE.cfg not found" >&2; exit 1; }
pack="$(cut -d' ' -f3 < "$CLIENT/locale_$LOCALE.cfg" | tr -d '\r\n')"
tr -d '\r' < "$CLIENT/pack/Index" | grep -qxF "locale_$pack" ||
{ echo "locale_$pack is not registered in $CLIENT/pack/Index" >&2; exit 1; }
fi
TMP=/data/local/tmp/mt-client.tar
echo "packing $CLIENT ..."
tar -h -C "$(dirname "$CLIENT")" -cf - "$(basename "$CLIENT")" | adb shell "cat > $TMP"
echo "unpacking into $PKG files/ ..."
adb shell "run-as $PKG sh -c 'mkdir -p files && rm -rf files/Client && cd files && tar -xf $TMP' && rm -f $TMP"
if [ -n "$LOCALE" ]; then
adb shell "run-as $PKG sh -c 'cp files/Client/locale_$LOCALE.cfg files/Client/locale.cfg'"
echo "locale.cfg: $(adb shell "run-as $PKG cat files/Client/locale.cfg")"
fi
adb shell "run-as $PKG ls files/Client/pack/Index" >/dev/null && echo "done: files/Client"
. android/adb_env.sh
adb_device
exec python3 android/sync_client.py "$@"
+233
View File
@@ -0,0 +1,233 @@
#!/usr/bin/env python3
"""Bring the game files in the app's private files/Client (SDL_GetPrefPath, where src/host looks for
files/Client/pack/Index) up to date with a local client directory, sending only what changed.
The device keeps files/Client/.mt_sync, the list (size, mtime, path) of what the last sync wrote. A sync
compares it with the local files, streams the new and changed ones as one tar through `adb shell -T run-as`
(no copy in /data/local/tmp), removes the ones gone locally, then writes the new list. Only the game
resources are synced (pack/, sound/, BGM/, miles/, lib/, channel.inf, locale*.cfg); what the app writes
there itself (settings such as ui_height.cfg, perf logs) is never touched. mouse.cfg is only seeded on
the first sync.
Needs the debug APK installed (run-as). adb and the device come from android/adb_env.sh ($ADB,
$ANDROID_SERIAL); android/push-client.sh is the shell entry point.
"""
import argparse
import hashlib
import os
import subprocess
import sys
import tarfile
import time
from pathlib import Path
REPO = Path(__file__).resolve().parents[1]
PKG = "org.metin2port.client"
MANIFEST = ".mt_sync"
HEADER = "# mt-sync 1"
SYNC_DIRS = ("pack", "sound", "BGM", "miles", "lib")
SEED_FILES = ("mouse.cfg",)
ZH_OUTPUT = REPO / "build/zh-locale/Client"
ZH_STAMP = REPO / "build/zh-locale/.inputs.sha256"
def adb(*args, **kwargs):
return subprocess.run([os.environ.get("ADB", "adb"), *args], **kwargs)
def run_as_command(script):
# `adb shell -T` (shell protocol v2, Android 7+): no pty, so stdin/stdout stay binary-safe, and unlike
# exec-in/exec-out it returns the remote exit status.
return [os.environ.get("ADB", "adb"), "shell", "-T", f"run-as {PKG} sh -c '{script}'"]
def run_as(script, **kwargs):
"""Runs script with sh as the app user in its data directory."""
return subprocess.run(run_as_command(script), **kwargs)
def zh_inputs_digest(client_base):
h = hashlib.sha256()
inputs = [REPO / "scripts/build_zh_locale.py", client_base / "pack/Index"]
inputs += [REPO / "tools/server/biolog" / name for name in ("catalog.json", "shop.json", "make_assets.py")]
inputs.append(REPO / "tests/port/biolog_proto_patch.cpp")
inputs += sorted((REPO / "data/wiki").glob("*"))
inputs.append(REPO / "tools/wiki/build_catalogue.py")
inputs += sorted(p for p in (REPO / "data/zh_40250").rglob("*") if p.is_file())
for path in inputs:
h.update(str(path.relative_to(REPO)).encode())
h.update(path.read_bytes() if path.exists() else b"")
return h.hexdigest()
def ensure_zh_locale():
"""Rebuilds build/zh-locale/Client when its inputs (translations, the builder, the base pack Index)
changed since the last build."""
digest = zh_inputs_digest(REPO / "Client")
built = (ZH_OUTPUT / "pack/Index").is_file()
if built and ZH_STAMP.is_file() and ZH_STAMP.read_text().strip() == digest:
return
print("zh locale: inputs changed, rebuilding build/zh-locale/Client ...")
result = subprocess.run([sys.executable, str(REPO / "scripts/build_zh_locale.py")], cwd=REPO)
if result.returncode == 0:
ZH_STAMP.write_text(digest + "\n")
elif built:
print("zh locale: rebuild failed, syncing the previous build", file=sys.stderr)
else:
sys.exit("zh locale: build failed (scripts/build_zh_locale.py)")
def local_files(client, locale):
"""{device path: local path} of the synced resources; locale.cfg comes from locale_<locale>.cfg."""
files = {}
for top in SYNC_DIRS:
root = client / top
if not root.is_dir():
continue
for dirpath, dirnames, filenames in os.walk(root, followlinks=True):
dirnames[:] = [d for d in dirnames if not d.startswith(".")]
for name in filenames:
if not name.startswith("."):
path = Path(dirpath) / name
files[path.relative_to(client).as_posix()] = path
for path in client.iterdir():
# hd_ui.pak: the 2x UI textures of scripts/build_hd_ui.py, when built (src/host/texture_decode.cpp).
if path.is_file() and (path.name in ("channel.inf", "hd_ui.pak")
or (path.name.startswith("locale") and path.suffix == ".cfg")):
files[path.name] = path
if locale:
cfg = client / f"locale_{locale}.cfg"
if not cfg.is_file():
sys.exit(f"{cfg} not found")
pack = cfg.read_text().split()[2]
index = (client / "pack/Index").read_text(errors="replace").split()
if f"locale_{pack}" not in index:
sys.exit(f"locale_{pack} is not registered in {client}/pack/Index")
files["locale.cfg"] = cfg
return files
def stat_key(path):
st = path.stat()
return f"{st.st_size}\t{st.st_mtime_ns}"
def read_device_manifest():
out = run_as(f"cat files/Client/{MANIFEST} 2>/dev/null", capture_output=True).stdout.decode(errors="replace")
lines = out.splitlines()
if not lines or lines[0] != HEADER:
return None
manifest = {}
for line in lines[1:]:
size, mtime, path = line.split("\t", 2)
manifest[path] = f"{size}\t{mtime}"
return manifest
class Progress:
def __init__(self, total):
self.total, self.done, self.last, self.start = total, 0, 0.0, time.monotonic()
def add(self, n):
self.done += n
now = time.monotonic()
if now - self.last >= 1 or self.done == self.total:
self.last = now
rate = self.done / max(now - self.start, 1e-3) / 2**20
print(f"\r {self.done / 2**20:8.1f} / {self.total / 2**20:.1f} MB {rate:5.1f} MB/s", end="", flush=True)
def push(files):
"""Streams {device path: local path} into files/Client as one tar."""
# Older Android tar restores ownership even when run as an unprivileged app.
# Match the app identity so extraction does not try to chown files to root.
identity = run_as("id -u && id -g", capture_output=True, check=True).stdout.split()
app_uid, app_gid = map(int, identity)
total = sum(p.stat().st_size for p in files.values())
progress = Progress(total)
proc = subprocess.Popen(run_as_command("mkdir -p files/Client && cd files/Client && tar -xf -"),
stdin=subprocess.PIPE)
with tarfile.open(fileobj=proc.stdin, mode="w|", format=tarfile.GNU_FORMAT, dereference=True) as tar:
for name, path in sorted(files.items()):
info = tar.gettarinfo(str(path), arcname=name) # dereference: the zh client links the original packs
info.uid, info.gid = app_uid, app_gid
info.uname = info.gname = ""
with open(path, "rb") as f:
tar.addfile(info, f)
progress.add(info.size)
proc.stdin.close()
if progress.total:
print()
if proc.wait() != 0:
sys.exit("push failed (tar on the device)")
def main():
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("client", nargs="?", type=Path, help="client directory (default: Client, or the zh build for --locale zh)")
parser.add_argument("--locale", help="write locale.cfg from locale_<LOCALE>.cfg; zh uses build/zh-locale/Client, rebuilt when stale")
parser.add_argument("--full", action="store_true", help="delete the synced resources on the device and push everything")
parser.add_argument("--dry-run", action="store_true", help="only print what would change")
args = parser.parse_args()
if args.locale == "zh" and args.client is None:
ensure_zh_locale()
client = ZH_OUTPUT
else:
client = args.client or REPO / "Client"
client = client.absolute()
if not (client / "pack/Index").is_file():
sys.exit(f"{client}/pack/Index not found")
if not adb("shell", "pm", "path", PKG, capture_output=True).stdout.strip():
sys.exit(f"{PKG} is not installed (android/build.sh installs it)")
if run_as("true", capture_output=True).returncode != 0:
sys.exit(f"run-as {PKG} failed: the installed APK must be the debug build")
files = local_files(client, args.locale)
wanted = {name: stat_key(path) for name, path in files.items()}
device = None if args.full else read_device_manifest()
first = device is None
if first:
changed = sorted(wanted)
removed = []
# First sync (or --full): also seed the default settings the app would otherwise lack.
for name in SEED_FILES:
if (client / name).is_file():
files[name] = client / name
changed.append(name)
else:
changed = sorted(n for n, key in wanted.items() if device.get(n) != key)
removed = sorted(n for n in device if n not in wanted)
size = sum(files[n].stat().st_size for n in changed)
print(f"sync {client} -> {PKG} files/Client: {len(changed)} files to push ({size / 2**20:.1f} MB), "
f"{len(removed)} to delete, {len(wanted) - len(changed) if not first else 0} unchanged"
+ (" [full]" if args.full else " [first sync]" if first else ""))
if not changed and not removed:
return
if args.dry_run:
for n in changed[:50]:
print(" +", n)
for n in removed[:50]:
print(" -", n)
return
if args.full:
dirs = " ".join(SYNC_DIRS)
run_as(f"mkdir -p files/Client && cd files/Client && rm -rf {dirs} {MANIFEST}", check=True)
# Drop the list before touching files: an interrupted sync then starts over as a first sync.
run_as(f"rm -f files/Client/{MANIFEST}", check=True)
if removed:
run_as('cd files/Client && while IFS= read -r f; do rm -f "$f"; done',
input="".join(n + "\n" for n in removed).encode(), check=True)
if changed:
push({n: files[n] for n in changed})
manifest = HEADER + "\n" + "".join(f"{wanted[n]}\t{n}\n" for n in sorted(wanted))
run_as(f"cat > files/Client/{MANIFEST}", input=manifest.encode(), check=True)
locale = run_as("cat files/Client/locale.cfg", capture_output=True).stdout.decode(errors="replace").strip()
print(f"done: files/Client updated (locale.cfg: {locale})")
if __name__ == "__main__":
main()
@@ -0,0 +1,25 @@
# Bear animation group binding
40250 `EterGrnLib/ModelInstanceUpdate.cpp::UpdateTransform` delegates to
`GrannyUpdateModelMatrix`; that gameplay caller remains unchanged. ModelInstanceMotion
binds controls through `GrannyPlayControlledAnimation`.
The real packed bear model is named Bip01. Both `bear/02.gr2` (walk) and `03.gr2`
(run) contain Hedra first, Bip01 second. Hedra has zero accumulation; Bip01 has
the translation in the corresponding unchanged MSA (-93.25 and -299.89 Y).
The previous adapter exposed a count of two with one public group pointer, flattened
bone binding across groups, and always accumulated the first group's translation.
The reader now preserves each group's name, placement, accumulation, text tracks,
and flattened-track range. Runtime controls match the model name, excluding morph
groups, and use only the selected group for bone binding and root accumulation.
`tests/port/port_granny_root_motion_test.cpp` loads those assets through PackBackend
and the runtime APIs used by the live client. It checks both public groups, rotated
root displacement across a loop boundary, inverse displacement, and stationary Hedra.
The same test linked with HEAD's previous GrannyRuntime fails six assertions; the
updated runtime passes. Desktop and `MT_TEST_MOBILE=1` login-flow regressions pass.
Native macOS renderer and Android debug APK builds pass.
This is narrow evidence for constant-extracted motion. VDA extraction and complete
Windows Granny output equivalence remain unverified; the aggregate contract stays PARTIAL.
@@ -0,0 +1,36 @@
# Assassin gungsin / 魅影 destination-alpha blending
The original skilldesc identifies 魅影 as skill 32, gungsin. The unchanged PC/PC2
MSA files attach gungsintanyeong start/end/blow effects. Base and grade-four start/end
MSE particles use SRCALPHA (5) / DESTALPHA (7), with MODULATE color operation.
EffectInstance and ParticleSystemInstance match the reference except include casing;
their state order, emission, asset colors, and textures remain unchanged.
RecordingDevice exposes an X8R8G8B8 back buffer and R5G6B5 GPU shadow targets.
Both have implicit destination alpha 1. Vulkan stores the scene in RGBA and the
previous pipeline incorrectly used the stored, draw-modified alpha for DESTALPHA.
This attenuated the background, including zero-alpha opaque scene pixels.
`src/host/blend_state.h` normalizes DESTALPHA to ONE, INVDESTALPHA to ZERO, and
SRCALPHASAT to ZERO for RGB targets before creating the Vulkan blend pipeline.
Ordinary source-alpha, additive, and color blend factors remain unchanged. This
helper applies only to the currently supported recorded RGB targets; future actual
alpha render targets must retain their own destination-alpha semantics.
Focused CTest `host.blend_state` passes. The GPU regression command is:
```sh
python3 tests/host/rgb_target_blend_test.py build/native/src/port/host_blend_state_test build/release/src/host/mt_native_render
```
It draws an opaque zero-alpha background followed by a SRCALPHA/DESTALPHA overlay,
reads the native renderer's BMP pixel, and checks RGB (128,128,160). The old native
executable fails with (0,64,128); the updated executable passes. This exercises
actual Vulkan blending, not just the mapping helper.
Native fake-server skill inspection used `--py-exec` to select the main instance,
set assassin race 1 and armor 0, then `chr.PushOnceMotion(chr.MOTION_SKILL+2,0.0)`.
Screenshots at 8 and 30 frames show bright particles and were inspected. These
timed screenshots are not a deterministic Windows visual oracle. Android debug
APK builds successfully; physical Android GPU and live-server skill-grade checks
remain unverified. The aggregate render contract stays PARTIAL.
@@ -0,0 +1,35 @@
# macOS UI clarity evidence
The 40250 UI layout, item data, UVs and hit testing remain unchanged. Host rendering
snaps axis-aligned image origins to physical pixels and selects nearest sampling only
when sampled texels match physical pixels. Scaled images retain linear sampling.
Font atlases rebuild between script frames on display-density changes, preserving
cached character-info node addresses and logical metrics. HiDPI pages use 8-bit alpha.
The HD pipeline completed all 2406 images without skips (1898 icon, 384 UI and 124
Chinese locale images). The resulting 135.1 MiB archive is validated and embedded in
`dist/Metin2.app/Contents/Resources/hd_ui.pak`. Generated game assets remain private
build artifacts. The package includes SDL3, Vulkan loader and MoltenVK, uses bundled
rpaths and passes `codesign --verify --deep --strict` with local ad-hoc signatures.
Validation on 2026-09-30:
- Full native CTest: 29 passed, 2 skipped (codepage data absent and no live server).
- `host.ui_quality`: physical snapping, sampling decisions, font-density rounding,
valid archive lookup and malformed/truncated archive rejection.
- `port.text`: transitions 1→2→3→1→2 preserve character pointers, logical text
dimensions and advances; HiDPI page sizes and non-4-bit alpha are checked.
Linking this test with the previous font implementation fails 9 new assertions.
- Desktop and mobile-mode login flow pass. Native release renderer and Android debug
APK builds pass.
- Packaged launcher run from `/` loads 2406 bundled textures and reports 2× glyphs
at density 2.000. A two-frame local-server inventory fixture inserts weapon,
armor, jewelry and consumables, then opens and refreshes the inventory.
- Before and after images are `build/mac-ui-items-before.png` and
`build/mac-ui-items-after.png`, both 2560×1600. Visual inspection confirms sharper
inventory icon contours, slot borders and bottom toolbar detail.
This is macOS clarity evidence, not Windows pixel parity. Actual movement between
physical monitors of different density remains unverified. Original low-resolution
art still limits recoverable detail; `MT_HD_UI=0` retains an original-art comparison.
The HUD aggregate contract remains PARTIAL.
@@ -0,0 +1,17 @@
# UI texture addressing, 2026-10-18
Scope: CGraphicExpandedImageInstance::OnRender / SetRenderingRect and the native sampler path. This does not establish full HUD or Windows visual parity.
The full reference ExpandedImageInstance unit was read alongside its platform counterpart. The geometry and UV arithmetic remain unchanged. Reference EterLib/StateManager.cpp SetDefaultState sets stage U/V to D3DTADDRESS_WRAP; the runtime ui.py Board.SetSize expands the texture coordinates to repeat a background. The former native UI descriptor unconditionally used CLAMP_TO_EDGE, producing stretched final-row/column stripes.
UIRenderAddImageNamed now carries stage-0 U/V from CStateManager. Vulkan reuses its D3D sampler cache for non-clamp addressing, preserving independent wrap/mirror/clamp, mip-zero UI filtering and point/linear choice. Direct platform commands retain their previous clamp defaults; the second-stage mask retains clamp. Capture version 11 serializes U/V; version 1–10 remains readable with the old UI clamp behavior.
Validation:
- port_grp_resource_test: repeated UV extent, independent wrap/mirror state and explicit clamp.
- host_ui_sampler_capture_test: version 11 roundtrip and version 10 backward compatibility.
- host.ui_quality regression unchanged.
- `ctest --test-dir build/native -R '^(host.ui_sampler_capture|port.grp_resource|host.ui_quality)$' --output-on-failure`: 3 passed.
- Native macOS sbtest client: the same AVA2 pickup panel lost its stretched stripes and renders the repeated stone texture. Evidence: build/parity-acceptance-20261018/before-ui-address.png and after-ui-address.png, captured through CUA. The icon for persisted affect 705 also renders.
No Android visual acceptance or Windows pixel comparison was performed in this round. Aggregate UI contracts remain PARTIAL.
@@ -0,0 +1,15 @@
# Window lifecycle investigation during AVA2 QA
The scripted reconnect from a QARunner.OnUpdate callback crashed in UI::CWindow::Update on macOS (DiagnosticReports/mt_native_render-2026-10-18-105610.ips). No C++ lifecycle changes have been made in this investigation.
Read and compared CWindow::Update, Clear, DeleteChild and reserve-child removal, plus CWindowManager::DestroyWindow, NotifyDestroyWindow, reserve-deletion drain and Update against the 40250 source. Their update/deletion ordering is unchanged. The test driver invokes login-board focus/order/phase changes inside the window traversal; normal user input is dispatched outside that traversal. This is evidence of an unsafe test/reconnect path, not evidence of a differing port algorithm or a fix.
The acceptance driver now performs a process cold start to validate persisted locks. That cold start and server/db restart read back mask 8, material selection 4 and the preserved fourth attribute. In-process scripted reconnect remains unverified and the crash is retained as an open finding; no global parity status is upgraded.
## Follow-up: frame-boundary commands and endpoint restoration
The live host now optionally consumes `--py-command-file` between script frames while the fiber is parked. This replaces commands executed from QARunner.OnUpdate; it changes no CWindow/CWindowManager algorithm. Commands are size-bounded and consumed before execution so an error cannot repeat the same mutation every frame. Producers publish using atomic rename.
A separate reconnect stall was captured with macOS sample: the host was blocked in gethostbyname, called from LoginWindow.Connect after the original LoginWindow.Open replaced the launch endpoint with the packed login configuration. `mt_live_endpoint` now preserves the explicitly selected/last successful endpoint while that original window opens. Manual server selection and the existing explicit channel-switch flow retain ownership of their targets; account credentials are not copied by the module.
With the new host command boundary and endpoint restoration, the same macOS process completed three logout/login/character-enter cycles against sbtest without a crash or per-cycle address injection. Evidence: build/parity-acceptance-20261018/reconnect-host-pass.json and client-live-endpoint.log. This verifies this scripted reconnect path, not every physical input or arbitrary mutation during CWindow.Update. No 40250 lifecycle parity status is upgraded and no C++ window changes were made.
+11
View File
@@ -0,0 +1,11 @@
{
"active_original_products": 49,
"source_products": 217,
"qa_coins": 0,
"qa_orders": 0,
"qa_awards": 0,
"test_stack": 0,
"test_triggers": 0,
"game_sha256": "56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba",
"db_sha256": "dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699"
}
+18
View File
@@ -0,0 +1,18 @@
[
{
"case": "wallet lock timeout",
"status": 6,
"elapsed_seconds": 2.17,
"unchanged": true
},
{
"case": "SQL connection lost before commit",
"status": 6,
"unchanged": true
},
{
"case": "SQL reconnect and persistent order replay",
"status": 0,
"unchanged": true
}
]
@@ -0,0 +1,12 @@
{
"build": "isolated wear40 and extended-item ABI; not deployed",
"candidate": {
"game": "3ebf3a7bf4e7e92224fc17ee31cf189e286fb57e3c5baeb5c86fd5a6ac83cf13",
"db": "0ad7bcd16a2ef95c8990d65e6242f61ca2ea7c113fb1ef6dd7624fb1b778ed03"
},
"production": {
"game": "56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba",
"db": "dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699"
},
"productionDbPid": "53754"
}
@@ -0,0 +1,8 @@
{
"schema": "port_shop_migration_test",
"before": "1\t32\n2\t43\n3\t287\n4\t302\n5\t286\n6\t32\n",
"after": "1\t40\n2\t51\n3\t295\n4\t310\n5\t286\n6\t32\n",
"quickslots": "active/deleted player both shifted",
"replay": "unchanged",
"fixture": "deleted after test"
}
@@ -0,0 +1 @@
{"catalogue": 49, "pending": null, "quantity_before": 1, "scroll_before": 0.0, "balance": 0, "scroll_after": 0.06876790830945559, "quantity_after": 2, "widget_bound_confirmation": true, "all_icons": true}
@@ -0,0 +1 @@
{"quote": [900001, 1, 29, 71084], "confirmation": ["\u8d2d\u4e70 \u7269\u54c1\u5c5e\u6027\u8f6c\u6362\u79d8\u7c4d\uff1f", "\u4ef7\u683c\uff1a29 \u9f99\u5e01"], "display": ["\u539f\u4ef7 58\uff08\u4f18\u60e0 50%\uff09", " 29 \u9f99\u5e01"], "confirm_button": "\u786e\u8ba4"}
+27
View File
@@ -0,0 +1,27 @@
{
"at": 145.56300354003906,
"balance": 9749,
"dropped": [
{
"status": 0,
"token": "25f1ade2e0549b0e3f9e899b8dd84b1e",
"balance": 9749,
"time": 123.39399719238281
}
],
"pending": null,
"replies": [
[
"25f1ade2e0549b0e3f9e899b8dd84b1e",
0,
9749
]
],
"assertions": {
"one_additional_order": true,
"one_additional_unit": true,
"deducted_exactly": 29,
"same_token_replayed": true,
"pending_cleared": true
}
}
@@ -0,0 +1 @@
{"labels": ["[F5] \u526f\u672c\u4fe1\u606f", "[F6] \u6218\u6597\u901a\u884c\u8bc1", "[F7] \u751f\u7269\u5b66\u5bb6", "[F8] \u70b9\u51fb\u6362\u7ebf"], "passed": true, "encoding": "native locale bridge"}
+10
View File
@@ -0,0 +1,10 @@
{
"original_product": 170,
"vnum": 70002,
"quantity": 2,
"paid": 198,
"wallet_after": 0,
"award_rows": 2,
"each_award_count": 1,
"prototype_lookup_correct_after_sort": true
}
@@ -0,0 +1 @@
{"count": 49, "all_prototypes_and_icons": true, "offers": [{"price": 99, "vnum": 70002, "id": 170, "icon": "icon\\item\\70002.tga"}, {"price": 99, "vnum": 71234, "id": 172, "icon": "icon\\item\\71234.tga"}, {"price": 99, "vnum": 71254, "id": 177, "icon": "icon\\item\\71254.tga"}, {"price": 349, "vnum": 71502, "id": 3, "icon": "icon\\item\\71502.tga"}, {"price": 349, "vnum": 71505, "id": 6, "icon": "icon\\item\\71505.tga"}, {"price": 349, "vnum": 71508, "id": 9, "icon": "icon\\item\\71508.tga"}, {"price": 349, "vnum": 71511, "id": 12, "icon": "icon\\item\\71511.tga"}, {"price": 60, "vnum": 54003, "id": 78, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54006, "id": 79, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54009, "id": 80, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54012, "id": 81, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54015, "id": 82, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54018, "id": 83, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54021, "id": 84, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54024, "id": 85, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54027, "id": 86, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54030, "id": 87, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54033, "id": 88, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54036, "id": 89, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54039, "id": 90, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54042, "id": 91, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54045, "id": 92, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54048, "id": 93, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54051, "id": 94, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54054, "id": 95, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54057, "id": 96, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54060, "id": 97, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54063, "id": 98, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54066, "id": 99, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54069, "id": 100, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54072, "id": 101, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54075, "id": 102, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54078, "id": 103, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54126, "id": 183, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54129, "id": 184, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54132, "id": 185, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54135, "id": 186, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54138, "id": 187, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54141, "id": 188, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54144, "id": 189, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54147, "id": 190, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54150, "id": 191, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54153, "id": 192, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54156, "id": 193, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54159, "id": 194, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54162, "id": 195, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54168, "id": 197, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54171, "id": 198, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54174, "id": 199, "icon": "icon\\item\\54126.tga"}], "categories": [1, 2, 3, 5]}
@@ -0,0 +1,6 @@
{
"note": "sbtest only; synthetic 491-point row seeds earned=498 for boundary test; monster chance temporarily 100% for deterministic integration",
"sql": "0006864747df5e500000000000000001\t14\t16\t8055\t6\t6\t2026-10-20\n0006864747df5e500000000000000002\t14\t16\t3705\t1\t1\t2026-10-20\n0006864747df5e500000000000000003\t14\t16\t8055\t5\t2\t2026-10-20\n0006864747df5e500000000000000004\t14\t16\t8055\t7\t0\t2026-10-20\nffffffffffffffffffffffffffffff01\t14\t16\t8055\t491\t491\t2026-10-20\n500\n",
"proxy": "{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000001\", \"vnum\": 8055, \"at\": 1792458562.2058332}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000002\", \"vnum\": 3705, \"at\": 1792458562.2082963}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000001\", \"amount\": 6, \"at\": 1792458562.389858}\n{\"event\": \"drop-first-success-reply\", \"token\": \"0006864747df5e500000000000000001\", \"at\": 1792458562.3900392}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000002\", \"amount\": 1, \"at\": 1792458562.390154}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000001\", \"vnum\": 8055, \"at\": 1792458572.1319}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000001\", \"amount\": 6, \"at\": 1792458572.2864504}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000003\", \"vnum\": 8055, \"at\": 1792458842.0943224}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000003\", \"amount\": 2, \"at\": 1792458842.28736}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000004\", \"vnum\": 8055, \"at\": 1792458864.3035688}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000004\", \"amount\": 0, \"at\": 1792458864.487179}\n",
"afterRestartSQL": "0006864747df5e500000000000000001\t8055\t6\t6\t2026-10-20\n0006864747df5e500000000000000002\t3705\t1\t1\t2026-10-20\n0006864747df5e500000000000000003\t8055\t5\t2\t2026-10-20\n0006864747df5e500000000000000004\t8055\t7\t0\t2026-10-20\n000686c9636c6e210000000000000001\t8055\t8\t0\t2026-10-20\nffffffffffffffffffffffffffffff01\t8055\t491\t491\t2026-10-20\n500\n"
}
@@ -0,0 +1,65 @@
{
"paid": 99,
"redeemed_vnum": 70002,
"statuses": [
1,
0,
0
],
"purchase_vnum": 70002,
"same_token_replay": true,
"server": "192.168.21.203:13000",
"catalogue": 49,
"all_icons": true,
"mall_empty": true,
"balance": 0,
"quantity": 1,
"released_at": "2026-10-19T23:59:00.829045+00:00",
"server_source": "3283101",
"client_source": "b0975498",
"game_sha256": "56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba",
"db_sha256": "dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699",
"backup": "/root/backup-itemshop/20261020-014955",
"health": {
"db": true,
"auth": true,
"game_cores": 13,
"sbtest_unchanged": true
},
"cleanup": {
"accounts": 0,
"characters": 0,
"orders": 0,
"awards": 0,
"items": 0,
"quest_flags": 0,
"affects": 0
},
"original_offers_enabled": 49,
"original_offers_disabled": 168,
"prices": "AVA2 originals",
"phone": {
"model": "PJZ110",
"installed": true,
"resources_unchanged": 1282,
"launched_to_server_selection": true,
"in_game_purchase_tested": false
},
"client_artifacts": {
"dist/Metin2-Android.apk": "975ef06860d503fe32dbfc4c1776b58ebe4899526c82926ffb454df216ca1934",
"dist/Metin2.app/Contents/MacOS/mt_native_render": "a2d47754c73eca3dedca57b2af09691fe109d32d3763d7ca9080d5be30130775",
"dist/Metin2.app/Contents/Resources/Client/pack/ava2items.eix": "a24c727eab8340f32a213f2c68fd6a7875765570a2ce182cd4487ab523f5f36b",
"dist/Metin2.app/Contents/Resources/Client/pack/ava2items.epk": "a054001803e740b63043e523e4d9b51d3a4c9691d69757a4176c873512689f98"
},
"log_review": {
"no_shop_sql_or_protocol_errors": true,
"startup_lag_seconds": [
47,
51
],
"existing_passpod_missing_table": true,
"prior_passpod_errors": 362,
"shutdown_peer_null_and_mysql_reconnect_warnings": true,
"fatal_errors": false
}
}
+126
View File
@@ -0,0 +1,126 @@
[
{
"script": "test_applies.py",
"passed": true
},
{
"script": "test_attr_lock.py",
"passed": true
},
{
"script": "test_attr_lock_snapshots.py",
"passed": true
},
{
"script": "test_attr_lock_use.py",
"passed": true
},
{
"script": "test_attr_lock_views.py",
"passed": true
},
{
"script": "test_ava2_channel_registry.py",
"passed": true
},
{
"script": "test_ava2_chest.py",
"passed": true
},
{
"script": "test_ava2_dungeon_track.py",
"passed": true
},
{
"script": "test_ava2_pickup.py",
"passed": true
},
{
"script": "test_ava2_ticket_shop.py",
"passed": true
},
{
"script": "test_ava2_track.py",
"passed": true
},
{
"script": "test_battlepass.py",
"passed": true
},
{
"script": "test_bosses.py",
"passed": true
},
{
"script": "test_calendar.py",
"passed": true
},
{
"script": "test_chest.py",
"passed": true
},
{
"script": "test_cmd_prefix.py",
"passed": true
},
{
"script": "test_costume_attr.py",
"passed": true
},
{
"script": "test_drops.py",
"passed": true
},
{
"script": "test_itemshop.py",
"passed": true
},
{
"script": "test_mount.py",
"passed": true
},
{
"script": "test_native_queries.py",
"passed": true
},
{
"script": "test_pendant.py",
"passed": true
},
{
"script": "test_pickup.py",
"passed": true
},
{
"script": "test_queries.py",
"passed": true
},
{
"script": "test_rings.py",
"passed": true
},
{
"script": "test_sash.py",
"passed": true
},
{
"script": "test_stone_socket.py",
"passed": true
},
{
"script": "test_switchbot.py",
"passed": true
},
{
"script": "test_switchbot_matching.py",
"passed": true
},
{
"script": "test_travel.py",
"passed": true
},
{
"script": "test_vip.py",
"passed": true
}
]
+57
View File
@@ -0,0 +1,57 @@
[
{
"case": "same token replays original purchase",
"status": 0,
"unchanged": true
},
{
"case": "same token changed quantity refused",
"status": 7,
"unchanged": true
},
{
"case": "insufficient coins",
"status": 1,
"unchanged": true
},
{
"case": "weekly quantity limit",
"status": 2,
"unchanged": true
},
{
"case": "monthly quantity limit",
"status": 3,
"unchanged": true
},
{
"case": "stock remaining less than quantity",
"status": 4,
"unchanged": true
},
{
"case": "expired offer",
"status": 5,
"unchanged": true
},
{
"case": "disabled product",
"status": 6,
"unchanged": true
},
{
"case": "missing prototype",
"status": 6,
"unchanged": true
},
{
"case": "price changed after confirmation",
"status": 9,
"unchanged": true
},
{
"case": "award insert failure rolls back wallet stock order",
"status": 6,
"unchanged": true
}
]
+1
View File
@@ -0,0 +1 @@
{"search_matches": 1, "balance": 9852, "subcategories": [[0, 0], [0, 1], [0, 2], [2, 0], [2, 1], [2, 2], [2, 3], [2, 4], [3, 0], [3, 1], [3, 2], [5, 0], [5, 1], [5, 2], [5, 3], [5, 4], [5, 5]], "catalogue_count": 1}
@@ -0,0 +1 @@
{"after": 2, "confirmed_count": 2, "id": 84, "before": 1}
+16
View File
@@ -0,0 +1,16 @@
{
"device": "Mi 8 Lite",
"android": "15",
"server": "in-process offline fixture; production untouched",
"distance_before": 1550.002197265625,
"distance_spread": 774.980712890625,
"distance_closed": 1549.99169921875,
"position_unchanged": true,
"drawer_touch_opened": true,
"final_skill_layout": "original arc restored per user feedback",
"secondary_menu_visual_scale": 0.72,
"minimum_hit_target_dp": 48,
"native_touch_and_camera_test": "MT_TEST_MOBILE=1 MT_TEST_PINCH=1 MT_TEST_WIKI=1 port_login_flow_test",
"layout_test": "tests/host/touch_layout_test.cpp",
"note": "Pinch and drawer tested with injected Android MotionEvents; final visual layout checked separately on device."
}
@@ -0,0 +1,21 @@
{
"device": "Mi 8 Lite",
"screen_logical": [
1169,
600
],
"mode": "offline UI acceptance",
"auto_hunt_visual_scale": 0.72,
"auto_hunt_hit_target": "unchanged",
"skill_button_size": "unchanged",
"skill_arc_radius_before": 140,
"skill_arc_radius_after": 120,
"skill_angle_step_before": 20,
"skill_angle_step_after": 25,
"layout_scenarios": 6,
"expanded_hit_circle_factor": 1.15,
"bounds_and_nonoverlap": "PASS",
"android_build_and_install": "PASS",
"macos_build": "PASS",
"screenshot": "build/phone-compact-controls-20261019/after.png"
}
@@ -0,0 +1,52 @@
{
"date": "2026-10-19",
"primary_entries": [
"inventory",
"shop",
"more"
],
"drawer_entries": 7,
"status_labels": "life and mana with 14px font, outlined text and contrasting background",
"chat_preview": {
"maximum_lines": 3,
"bounded_width": true,
"history_preserved": true,
"render_scissor_restored": true
},
"network_notice": {
"position": "below status and buffs",
"success_timeout_seconds": 6,
"same_state_does_not_extend": true
},
"auto_hunt": "lower edge of combat area; dim idle artwork; unchanged touch target",
"skill_layout": "same compact arc and button sizes; extra7/8 remain absent",
"checks": {
"python_tests": 158,
"network_notice_tests": 9,
"native_mobile_flow": "PASS",
"menu_and_chat_width_viewports": [
[
640,
360
],
[
800,
600
],
[
1169,
600
]
],
"combat_layout_scenarios": 6,
"macos_build": "PASS",
"android_build": "PASS",
"apk_install": "PASS",
"device_visual": "PENDING_UNLOCK",
"drawer_widget_picking_and_blank_panel_hit_test": "PASS"
},
"preview": "build/mobile-hud-refine-20261019/default.png",
"preview_scope": "macOS-hosted mobile layout with in-process server and explicit offline HP/SP/chat fixtures",
"production_changed": false,
"drawer_placement": "under the three primary entries, clear of centered map announcements"
}
+27
View File
@@ -640,3 +640,30 @@
{"date": "2026-09-30", "unit": "EterLib/GrpDevice.cpp", "action": "port", "evidence": "verbatim except Create (recording device in place of Direct3DCreate8/detector/CreateDevice, EL3D_ConfirmDevice on its caps); RecordingDevice decodes declaration-only vertex shaders to stream-0 FVFs; GrpScreen Show uses the GrpDevice browser globals; port.app_loop (PT/PNT/PNT2 FVFs, max texture 4096), full ctest, live-client screenshot matches"}
{"date": "2026-09-30", "unit": "EterLib/GrpDetector.cpp", "action": "port", "evidence": "verbatim; IDirect3D8 shim completed (adapter count/caps/format checks/CreateDevice) and implemented once as the host adapter behind Direct3DCreate8 (RecordingDevice.cpp), which CPythonGraphic::GetD3D also returns; GrpDevice::Create now verbatim but for the D3DX debug meshes; port.app_loop (800x600x32 HWVP D16 mode, ms_lpd3d, GetString), full ctest, live-client screenshot matches"}
{"date": "2026-09-30", "unit": "UserInterface/UserInterface.cpp", "action": "port", "evidence": "ApplicationSetErrorString/ApplicationStringTable_Initialize verbatim + port.app_loop; Main ADAPTED to PythonBoot; Win32 entry/launcher options N_A"}
{"date": "2026-09-30", "unit": "ScriptLib/PythonUtils.cpp", "action": "port", "evidence": "already verbatim (udiff: MSVC cast + perf counters); mapped"}
{"date": "2026-09-30", "unit": "ScriptLib/Resource.cpp", "action": "port", "evidence": "verbatim 40250 (was a rewrite that also registered .png); ctest 29/29, screenshot unchanged"}
{"date": "2026-09-30", "unit": "EterGrnLib/ModelInstanceUpdate.cpp", "action": "fix-platform-adapter", "evidence": "2026-09-30: native Granny adapter now selects the model-named track group, preserving all group metadata and limiting bone binding to that group. Real packed bear walk/run (auxiliary Hedra before Bip01) fail with the previous runtime and pass in tests/port/port_granny_root_motion_test.cpp. See audit/evidence/2026-09-30-bear-root-motion.md."}
{"date": "2026-09-30", "unit": "EffectLib/ParticleSystemInstance.cpp", "action": "fix-platform-adapter", "evidence": "XRGB destination alpha semantics fixed in Vulkan pipeline; focused mapping + GPU pixel regression; original particle logic unchanged; desktop/mobile login regressions and Android build pass."}
{"date": "2026-09-30", "unit": "EterLib/GrpFontTexture.cpp", "action": "improve-platform-rendering", "evidence": "Retina UI clarity: dynamic font atlas rebuild preserving cached pointers and logical metrics, 8-bit HiDPI glyph alpha, physical pixel alignment and 1:1 sampling; 2406 bundled HD textures. Full native suite 29 passed, 2 skipped, macOS packaged inventory screenshots and strict signature verification. See audit/evidence/2026-09-30-mac-ui-clarity.md."}
{"date": "2026-09-30", "unit": "EterLib/GrpImageInstance.cpp", "action": "improve-platform-rendering", "evidence": "Retina UI clarity: dynamic font atlas rebuild preserving cached pointers and logical metrics, 8-bit HiDPI glyph alpha, physical pixel alignment and 1:1 sampling; 2406 bundled HD textures. Full native suite 29 passed, 2 skipped, macOS packaged inventory screenshots and strict signature verification. See audit/evidence/2026-09-30-mac-ui-clarity.md."}
{"date": "2026-09-30", "unit": "UserInterface/PythonPlayerAutoHunt.cpp", "action": "user-authorized-extension", "evidence": "Replace tag-and-chase gather with free server-authoritative cloak-style BeginFight pull, nearest 3/10/20 actual monster groups. Server rate limit and safety checks, request generations, stationary approach wait. host.autohunt_pull and desktop/mobile port.login_flow pass; 203 FreeBSD compile/deploy and live 3-group/9-monster reply verified. See tools/server/autohunt-pull/README.md."}
{"date": "2026-09-30", "unit": "EterBase/CRC32.cpp", "action": "fix-platform-adapter", "evidence": "MI 8 Lite Android 15 fake-login SIGABRT/std::bad_alloc from directory CRC. Reject non-regular/null FILE handles and failed seeks; preserve normal CRC/position. port_utils_test pass, port_map check 0 errors; rebuilt APK installed and on-device fake-login/map entry succeeds. docs/XIAOMI8LITE-DEVICE-TEST-20260930.md"}
{"date": "2026-09-30", "action": "user-authorized-render-diagnostics", "units": ["UserInterface/PythonApplication.cpp", "GameLib/MapOutdoorRenderHTP.cpp", "GameLib/MapOutdoorRenderSTP.cpp"], "evidence": "7 same-scene MI 8 Lite runs, 42 two-second sample windows. Baseline 4.88 FPS/205.3ms, no terrain 15.45FPS/64.7ms, no scene 30.03FPS/17.7ms; repeated baseline 4.83 FPS. Normal rendering defaults unchanged. See docs/XIAOMI8LITE-RENDER-ISOLATION-20260930.md."}
{"date": "2026-09-30", "unit": "Client/root/uiaffectshower.py", "result": "RUN_AS_IS unchanged; authorized PORT extension for server rates", "evidence": ["src/platform/ScriptLib/ServerBonusScript.inc", "tools/server/autohunt-pull-range/server_bonuses.h", "build/autohunt-fix-test.log", "build/autohunt-fix-mobile-test.log", "build/autohunt-bonuses-android.png"], "finding": "40250 global privileges emit login notices rather than character AFFECT packets; added distinct status channel, packed scripts unchanged."}
{"date": "2026-10-01", "unit": "UserInterface/PythonPlayerAutoHunt.cpp", "action": "user-authorized-extension", "evidence": ["docs/AUTO-HUNT-ENHANCEMENTS.md", "build/autohunt-enhance-test.log", "build/autohunt-enhance-mobile-test.log", "build/autohunt-enhance-mac-build.log", "build/autohunt-enhance-android-build.log", "build/qa/autohunt-enhance-ui/settings.png"], "finding": "Added bounded terrain/scene-collision A* and reachability for combat/loot/return; independent learned skill-ID selection with legacy config migration; optional server restart_here and 5-second/70%-HP recovery; acknowledged dismount/cast/remount batching. Original manual movement and packed Python scripts unchanged. Desktop/mobile fake-server integration and macOS/Android builds pass; real-server soak not claimed."}
{"date": "2026-10-16", "unit": "UserInterface/PythonApplication.cpp:Destroy / PythonBoot::Stop", "action": "fix-host-teardown-order", "finding": "40250 drains flying instances before effects/characters; host previously reset effects before CFlyingManager destruction. Explicit flying and character cleanup fixes live-projectile shutdown; overall Destroy remains DIVERGENT for unrelated omissions.", "evidence": ["tests/port/port_app_loop_test.cpp", "build/followup-shutdown-before.log", "build/followup-shutdown-after.log"]}
{"date": "2026-10-17", "unit": "UserInterface/PythonPlayerAutoHunt.cpp::__AutoHunt_BuildPath", "action": "user-authorized-extension", "finding": "Live snow floor 1 knockback left the player at (18730.742,22544.762), inside blocked attribute row 225. Exact-start-only exemption rejected every path/attack sample, including monsters 90 units away. Permit only the occupied loaded blocked terrain cell, retaining adjacent blocked cells, scene collision and unloaded-data rejection. AutoHunt is an authorized extension, not a newly claimed 40250 counterpart.", "evidence": ["tests/host/autohunt_navigation_test.cpp", "docs/AVA2-FOLLOWUP-20261016.md"], "remaining": "Live dungeon soak pending; no parity status upgraded. Port-map helper script absent on this branch."}
{"time": "2026-10-18T10:49:04.284335+00:00", "event": "platform_fix", "unit": "EterLib/GrpExpandedImageInstance.cpp", "result": "ADAPTED", "reason": "Preserve stage-0 U/V in UI command/sampler path instead of unconditional clamp; repeated Board backgrounds validated on macOS. Aggregate UI remains PARTIAL.", "evidence": ["audit/evidence/2026-10-18-ui-addressing.md", "tests/port/port_grp_resource_test.cpp", "tests/host/ui_sampler_capture_test.cpp"]}
{"time": "2026-10-18T17:58:20.857552+00:00", "event": "lifecycle_investigation", "units": ["EterPythonLib/PythonWindow.cpp", "EterPythonLib/PythonWindowManager.cpp"], "finding": "Scripted reconnect during OnUpdate crashed; relevant window lifecycle group matches 40250. No code changes or status upgrades; use cold-start QA and retain reconnect finding.", "evidence": ["audit/evidence/2026-10-18-window-lifecycle-qa.md"]}
{"time": "2026-10-18T23:43:15.072652+00:00", "event": "platform_endpoint_fix", "unit": "host/live_client + ScriptLib/LiveEndpointScript", "finding": "Preserve explicitly selected live endpoint across login reopen; execute optional local QA commands between parked script frames rather than from window traversal. No original CWindow/CWindowManager code changed.", "evidence": ["tests/wiki/test_live_endpoint.py", "tests/wiki/test_python_command_file.py", "audit/evidence/2026-10-18-window-lifecycle-qa.md", "docs/AVA2-SWITCHBOT.md"], "result": "Three same-process relogins and two cross-core map transfers verified on macOS/sbtest; native cross-channel switching remains pending; no global parity status upgraded."}
{"time": "2026-10-19T00:04:44.204859+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/NativeChannelScript", "finding": "AVA2 MoveChannelDialog uses native server warp; map ownership/ports announced by trusted P2P peers. No original CWindow lifecycle algorithm or classic Warp packet changed.", "evidence": ["docs/AVA2-NATIVE-CHANNEL.md", "docs/AVA2-SWITCHBOT.md", "tests/wiki/test_native_channel.py"], "result": "macOS/sbtest CH5-CH6-CH5 active switchbot handover, locked attribute/targets, endpoint retention and disconnected target verified; Android offline build only; no global parity status upgrade."}
{"time": "2026-10-19T04:37:42.044205+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/AttrLockViewsScript", "finding": "AVA2 lock-line styling extended to existing exchange, shop/builder, safebox/mall and GM equipment tooltip setters using bounded read-only contextual queries. Base item packets and CWindow algorithms unchanged.", "evidence": ["docs/AVA2-ATTR-LOCK-VIEWS.md", "tests/wiki/test_attr_lock_ui.py", "tests/wiki/test_attr_lock_views.py"], "result": "macOS/sbtest two-player trade/shop/storage and real GM equipment lock highlights verified; ordinary equipment queries and closed contexts denied. 126 client tests and native macOS/Android builds passed; fixtures and temporary test GM removed. Active switchbot/hyperlink lock metadata remains pending; no aggregate parity upgrade."}
{"time": "2026-10-19T05:08:12.881941+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/AttrLockSnapshotsScript", "finding": "Owner metadata follows existing item packets; bounded post-entry synchronization bridges loading-phase command loss. Versioned seven-slot chat snapshots and active switchbot lock lines preserve the classic wire layouts and original CWindow algorithms. Chinese active descriptions use measured text width.", "evidence": ["docs/AVA2-ATTR-LOCK-SNAPSHOTS.md", "tests/wiki/test_attr_lock_snapshots.py", "docs/AVA2-PARITY-PLAN.md"], "result": "132 client tests and macOS/Android offline builds passed. macOS/sbtest first-entry sync, immutable link/relay, active roll/stop, slot moves and same-process relogin passed. Final layout measured 348 versus longest text 308; test weapon/902 switchers and original unlocked state restored. Production unchanged; no aggregate parity upgrade."}
{"time": "2026-10-19T06:35:09.108370+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/Ava2NativeSystems", "finding": "Vendor active AVA2 uiBattlePassEx, uiWiki/WikiUI, uiDropItem and uiEventCalendarNew; preserve classic SHOP_SIGN39 by moving event payload to GC214, configured-db battlepass persistence, real loaded drop data and original CWindow algorithms. Correct active-versus-legacy protocol mapping.", "evidence": ["docs/AVA2-NATIVE-SYSTEMS.md", "tests/wiki/test_native_systems.py", "tools/ava2-native/sources.json", "docs/AVA2-PARITY-PLAN.md"], "result": "146 client tests, 30 server feature scripts with updated version-marker retest, native macOS/Android offline builds; sbtest mission/final idempotency, persistent native views, drop data, scoped calendar/icon verified. Production game a8d606ea deployed; backup /root/backup-native-systems/20261019-083154. No aggregate parity upgrade; phone not tested."}
{"time": "2026-10-19T13:52:09.182541+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/Ava2ItemShop", "finding": "Vendor active uiitemshopnew.py; native GC93 and authenticated GD/DG76, InnoDB wallet/catalogue/order/award transaction, durable token and confirmed quote, bounded atomic decoder, native UI locale/event/scroll/preview adapters. Correct db prototype pointer index after sort. Classic item layout and CWindow algorithms remain unchanged.", "evidence": ["docs/AVA2-ITEMSHOP.md", "tests/wiki/test_itemshop.py", "tools/ava2-native/sources.json", "audit/evidence/itemshop/"], "result": "157 client tests; 31 server feature scripts including native-layout, integer-total and real prototype-index body tests. macOS/sbtest purchase, redemption, refusal/rollback, restart replay, SQL loss/lock timeout, lost-result retry and real widget callbacks verified. 49 original offers with matching IDs/prices/icons enabled only on sbtest; other 168 and recharge/wheel remain closed. Android offline build only; no production deployment or aggregate parity upgrade."}
{"time": "2026-10-19T14:13:41.385041+00:00", "event": "authorized_mobile_ui_fix", "unit": "ScriptLib/MobileHUD and host/TouchController", "finding": "Fix UTF-8 minimap tooltip boundaries. Retain original skill arc per user feedback; smaller secondary menu artwork with 48dp hit targets, compact menus with drawer and native shop entry. Proportional two-finger camera zoom, stationary-stick fix and gesture cancellation.", "evidence": ["tests/wiki/test_minimap_buttons.py", "tests/port/port_login_flow_test.cpp", "audit/evidence/mobile-ui/acceptance.json", "audit/evidence/itemshop/minimap-tooltips.json", "docs/ANDROID-TESTING.md"], "result": "158 Python tests; focused real TouchController/camera offline flow; Mi 8 Lite Android multi-pointer and menu checks. No production deployment or aggregate parity upgrade."}
{"time": "2026-10-19T14:22:27.432875+00:00", "event": "authorized_mobile_ui_refinement", "unit": "host/TouchController", "finding": "Shrink AUTO artwork to 72% while preserving hit target; tighten the single six-skill arc from radius140 to120 with 25-degree spacing and preserved clockwise order. Strengthen all-button overlap checks to actual 1.15 expanded hit radius.", "evidence": ["audit/evidence/mobile-ui/compact-controls.json", "tests/host/touch_layout_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Six layout scenarios PASS; macOS and Android builds PASS, installed and visually checked on connected Mi 8 Lite. No production server change."}
{"time": "2026-10-19T14:24:36.040212+00:00", "event": "authorized_mobile_ui_refinement", "unit": "host/TouchController", "finding": "Remove mobile quick-slot buttons 7/8 from the button list and eight-control geometry; remove their render and pointer assignment branches. Keep attack, six-skill arc and AUTO.", "evidence": ["src/host/touch_controller.h", "src/host/touch_layout.h", "tests/host/touch_layout_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Layout checks PASS across six screen/safe-area/target configurations. Android and macOS builds PASS. Updated APK installed on Mi 8 Lite; no server changes."}
{"time": "2026-10-19T19:10:33.466877+00:00", "event": "authorized_mobile_ui_refinement", "unit": "ScriptLib/MobileHUD, MeshPort notice and chat preview", "finding": "Three named primary entries with seven-action collapsing drawer; contrasting HP/SP numbers, lower/dim AUTO, bounded three-line chat preview using platform render scissor without modifying chat history, network status below buffs with duplicate-state suppression.", "evidence": ["audit/evidence/mobile-ui/hud-refinement.json", "tests/port/port_login_flow_test.cpp", "tests/meshport/test_login.py", "docs/ANDROID-TESTING.md"], "result": "158 Python tests, nine notice tests, native mobile menu/chat/scissor/gesture flow, six combat layouts and macOS/Android builds passed. APK installed on locked Mi 8 Lite; new on-device visual acceptance remains pending unlock. No server deployment or aggregate parity upgrade."}
{"time": "2026-10-19T22:09:36.221469+00:00", "event": "authorized_mobile_ui_refinement", "unit": "ScriptLib/MobileHUD", "finding": "Remove HP/SP numeric labels and their dark plate at user request; retain original native gauges, recovery updates and stamina strip.", "evidence": ["src/platform/ScriptLib/MobileHUDScript.inc", "tests/port/port_login_flow_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Focused native mobile flow PASS; Android and macOS builds PASS. APK installed successfully on Mi 8 Lite. Device remains locked; visual acceptance pending unlock. No server changes."}
{"time": "2026-10-19T23:59:00.829045+00:00", "event": "authorized_production_release", "unit": "AVA2 native itemshop", "finding": "Deploy sbtest-verified game/db, InnoDB account/catalogue/order/award tables and 49 original compatible products to 203; patch production third-hand prototype. Update canonical macOS bundle and connected Android APK/resources.", "evidence": ["audit/evidence/itemshop/production-20261020.json", "docs/AVA2-ITEMSHOP.md"], "result": "CH1 catalogue/icons, insufficient funds, 99-coin widget purchase, same-token replay, purchase history and mall-to-inventory redemption PASS. Temporary QA account, character, funds, items, orders and awards removed. db/auth/13 production game cores healthy, sbtest unchanged. Recharge, wheel and 168 unsupported offers remain disabled. Android installed/launched; mobile in-game purchase acceptance not claimed. No aggregate parity upgrade."}
+41 -7
View File
@@ -684,6 +684,14 @@
"tests": [
"project/app_flow_lifecycle_test.gd"
]
},
{
"reference": "CPythonApplication::Process on the 60 Hz s_uiNextFrameTime update clock; a late frame skips only the render (s_bFrameSkip), so CPythonNetworkStream::Process runs every 16/17 ms",
"implementation": "src/platform/UserInterface/PythonApplication.cpp CPythonApplication::Process: one host frame polls the stream once per elapsed 60 Hz tick (catch-up capped at 500 ms)",
"invariant": "GamePhase packet budget (3 packets a poll below 8 KB pending) must be 180/s regardless of render rate; at 30 fps idle it was 90/s and mob move packets queued behind character add/del bursts",
"tests": [
"real server 192.168.21.203 chase probe A/B 2026-09-30: GC_MOVE push gap p50 138-178 -> 70-92 ms, p90 580-785 -> 358-403 ms"
]
}
],
"evidence": {
@@ -1894,9 +1902,13 @@
"project/mob_view_test.gd",
"project/motion_event_payload_test.gd",
"project/motion_registry_test.gd",
"project/hit_view_test.gd"
"project/hit_view_test.gd",
"tests/port/port_granny_root_motion_test.cpp"
],
"last_test_result": "PASS: PC playersettingmodule motion registry (registration order/weights), HORSE parent fallback, knockdown/stand-up early-return, MSA MotionDuration authority, LoopData skill timing, motion event payloads, and hot clip/MSA cache reuse regressions passed; NPC/full RaceData/event-consumer parity remains PARTIAL"
"last_test_result": "PASS: PC playersettingmodule motion registry (registration order/weights), HORSE parent fallback, knockdown/stand-up early-return, MSA MotionDuration authority, LoopData skill timing, motion event payloads, and hot clip/MSA cache reuse regressions passed; NPC/full RaceData/event-consumer parity remains PARTIAL",
"commands": [
"2026-09-30: ctest --test-dir build/native -R port.granny_root_motion --output-on-failure PASS; HEAD GrannyRuntime linked against the same packed-asset test FAIL (zero root displacement). audit/evidence/2026-09-30-bear-root-motion.md"
]
},
"remaining": [
"扩展已接入的 PC playersettingmodule registry 快照,对比 NPC motlist、horse/wedding/skill 的每个 motion key 和缺失 key 失败语义",
@@ -3852,9 +3864,14 @@
"project/motion_event_payload_test.gd",
"project/motion_event_visibility_test.gd",
"project/net_world_motion_event_test.gd",
"project/motion_event_warp_test.gd"
"project/motion_event_warp_test.gd",
"tests/host/blend_state_test.cpp",
"tests/host/rgb_target_blend_test.py"
],
"last_test_result": "PASS"
"last_test_result": "PASS",
"commands": [
"2026-09-30: host.blend_state PASS; python3 tests/host/rgb_target_blend_test.py build/native/src/port/host_blend_state_test build/release/src/host/mt_native_render PASS (128,128,160); previous executable FAIL (0,64,128). Native gungsin motion screenshots inspected; Android APK build PASS. audit/evidence/2026-09-30-gungsin-blending.md"
]
},
"remaining": [
"type 4/6 的生产分支和专用字段消费;type 9 WARP 已接入但远端目标生命周期仍待 live 验证",
@@ -4122,7 +4139,15 @@
"focus_pause_exit_cleanup": "PARTIAL"
},
"platform_adaptations": [
"Godot mobile touch/joystick/pinch/landscape UI is a platform adaptation and has no direct Windows 40250 branch to compare 1:1."
"Godot mobile touch/joystick/pinch/landscape UI is a platform adaptation and has no direct Windows 40250 branch to compare 1:1.",
{
"reference": "CGraphicImageTexture loads the UI images (d:/ymir work/ui/, icon/, locale/<locale>/ui) from the packs at their 1x size; 40250 draws them 1:1 on an 800x600+ desktop",
"implementation": "src/host/vk_textures.cpp get_gpu_texture -> src/host/texture_decode.cpp read_hd_ui_texture: a UI texture present in hd_ui.pak (scripts/build_hd_ui.py, realesrgan-x4plus + back-projection, 2x) is uploaded in place of the pack file; MT_HD_UI=0 disables",
"invariant": "only the GPU texel density changes: the engine's own decode, the image sizes, layout, quads and normalized UVs stay the 40250 1x ones; a name absent from the pak falls back to the pack",
"tests": [
"real server 192.168.21.203 shop + character window A/B 2026-09-30 (MT_HD_UI=0 vs 1, 600-high UI at ~1.7x): identical layout, icons and portrait sharper, board grain kept; 2406 textures, 135 MB pak"
]
}
],
"evidence": {
"contract": "audit/contracts/ui.input-camera-mobile.md",
@@ -4236,9 +4261,18 @@
"project/name_show_test.gd",
"project/char_status_ui_test.gd",
"project/test_taskbar_quickslot_parity.gd",
"project/taskbar_dock_test.gd"
"project/taskbar_dock_test.gd",
"tests/host/ui_quality_test.cpp",
"tests/port/port_text_test.cpp"
],
"last_test_result": "PARTIAL"
"last_test_result": "PARTIAL",
"commands": [
"2026-09-30: native UI HiDPI font refresh and sampling checks PASS; previous font runtime fails 9 new assertions. Full native CTest: 29 pass, codepage and live login skipped. Actual mac app HD archive/launch/screenshot checks recorded in audit/evidence/2026-09-30-mac-ui-clarity.md. Aggregate HUD parity remains PARTIAL."
],
"notes": [
"2026-10-02: SCREEN waypoint atlas must retain original black RGB under alpha=0; HD minimap.dds colour bleed reproduced, native five-frame waypoint smoke renders clean rings after original-atlas fallback. build/minimap-fix-smoke.png. Full Windows visual parity remains unverified.",
"2026-10-18: native UI stage-0 wrap/mirror/clamp now follows CStateManager, fixing repeated Board backgrounds. Three focused CTests and real macOS before/after screenshots pass; audit/evidence/2026-10-18-ui-addressing.md. Aggregate remains PARTIAL; Android/Windows comparison outstanding."
]
},
"remaining": [
"在正式 GameScene 创建并注入唯一 TargetUI,移除/隐藏简化目标条并补生产链回归",
@@ -511,7 +511,8 @@
],
"evidence": [
"scripts/verify_root_pack.py: uiaffectshower.py bytes match 40250 source and root.epk",
"scripts/python_game_render_test.sh: embedded CPython loads system.py and game modules through CEterPackManager"
"scripts/python_game_render_test.sh: embedded CPython loads system.py and game modules through CEterPackManager",
"2026-09-30 PORT server-bonus extension: original affect script unchanged; port.login_flow checks separate global/event entries and expiry/update via real CHAT_TYPE_COMMAND; Mi 8 Lite tooltip verified."
]
},
"AffectShower.OnUpdate": {
@@ -521,7 +522,8 @@
],
"evidence": [
"scripts/verify_root_pack.py: uiaffectshower.py bytes match 40250 source and root.epk",
"scripts/python_game_render_test.sh: embedded CPython loads system.py and game modules through CEterPackManager"
"scripts/python_game_render_test.sh: embedded CPython loads system.py and game modules through CEterPackManager",
"2026-09-30 PORT server-bonus extension: original affect script unchanged; port.login_flow checks separate global/event entries and expiry/update via real CHAT_TYPE_COMMAND; Mi 8 Lite tooltip verified."
]
}
}
@@ -56,7 +56,8 @@
"status": "PORTED",
"impl": [
"src/port/EffectLib/EffectInstance.cpp:CEffectInstance::OnRender"
]
],
"note": "2026-09-30: reference statements remain verbatim apart from include case. Native Vulkan adapter now interprets destination alpha as 1 on recorded X8R8G8B8/R5G6B5 targets; gungsin start/end particles use SRCALPHA/DESTALPHA. Focused mapping and actual GPU pixel regression fail before/pass after. See audit/evidence/2026-09-30-gungsin-blending.md."
},
"CEffectInstance::SetGlobalMatrix": {
"status": "PORTED",
@@ -44,7 +44,8 @@
"status": "PORTED",
"impl": [
"src/port/EffectLib/ParticleSystemInstance.cpp:CParticleSystemInstance::OnRender"
]
],
"note": "2026-09-30: reference statements remain verbatim apart from include case. Native Vulkan adapter now interprets destination alpha as 1 on recorded X8R8G8B8/R5G6B5 targets; gungsin start/end particles use SRCALPHA/DESTALPHA. Focused mapping and actual GPU pixel regression fail before/pass after. See audit/evidence/2026-09-30-gungsin-blending.md."
},
"CParticleSystemInstance::OnSetDataPointer": {
"status": "PORTED",
+2 -2
View File
@@ -30,7 +30,7 @@
"test": [
"tests/port/port_utils_test.cpp"
],
"note": "40250 maps the file (CreateFile + CreateFileMapping/MapViewOfFile from offset 0) and CRCs the whole view; the port reads the whole FILE* into a buffer. Invariant: same CRC of the full file, the handle's position is unchanged, 0 when the file cannot be opened."
"note": "40250 maps the file (CreateFile + CreateFileMapping/MapViewOfFile from offset 0) and CRCs the whole view; the port reads the whole FILE* into a buffer. Invariant: same CRC of the full file, the handle's position is unchanged, 0 when the file cannot be opened. Android 15 MI 8 Lite regression: reject non-regular FILE handles before seeking/allocating, preserving Win32 directory-open failure; check seek errors. Directory/null regression in port_utils_test and successful on-device fake-login/map entry after prior std::bad_alloc abort."
},
"GetFileCRC32": {
"status": "ADAPTED",
@@ -40,7 +40,7 @@
"test": [
"tests/port/port_utils_test.cpp"
],
"note": "40250 maps the file (CreateFile + CreateFileMapping/MapViewOfFile from offset 0) and CRCs the whole view; the port reads the whole FILE* into a buffer. Invariant: same CRC of the full file, the handle's position is unchanged, 0 when the file cannot be opened. Callers: GuildMarkUploader/GuildMarkDownloader symbol CRC, root pack CRC report."
"note": "40250 maps the file (CreateFile + CreateFileMapping/MapViewOfFile from offset 0) and CRCs the whole view; the port reads the whole FILE* into a buffer. Invariant: same CRC of the full file, the handle's position is unchanged, 0 when the file cannot be opened. Callers: GuildMarkUploader/GuildMarkDownloader symbol CRC, root pack CRC report. Android 15 MI 8 Lite regression: reject non-regular FILE handles before seeking/allocating, preserving Win32 directory-open failure; check seek errors. Directory/null regression in port_utils_test and successful on-device fake-login/map entry after prior std::bad_alloc abort."
},
"GetFileSize": {
"status": "ADAPTED",
@@ -20,7 +20,8 @@
"status": "PORTED",
"impl": [
"src/port/EterGrnLib/ModelInstanceUpdate.cpp:CGrannyModelInstance::UpdateTransform"
]
],
"note": "2026-09-30: native Granny adapter now selects the model-named track group, preserving all group metadata and limiting bone binding to that group. Real packed bear walk/run (auxiliary Hedra before Bip01) fail with the previous runtime and pass in tests/port/port_granny_root_motion_test.cpp. See audit/evidence/2026-09-30-bear-root-motion.md."
},
"CGrannyModelInstance::Deform": {
"status": "PORTED",
@@ -46,9 +46,10 @@
"src/platform/EterLib/GrpExpandedImageInstance.cpp:CGraphicExpandedImageInstance::OnRender"
],
"test": [
"tests/port/port_grp_resource_test.cpp"
"tests/port/port_grp_resource_test.cpp",
"tests/host/ui_sampler_capture_test.cpp"
],
"note": "40250: CULLMODE CCW for a mirrored scale, Save/RestoreRenderState SRCBLEND/DESTBLEND per RENDERING_MODE, PDT-stream fill-rect draw. Port: the verbatim vertices plus m_iRenderingMode go to UIRenderAddImage; the Vulkan UI pipeline (cull none) maps SCREEN/COLOR_DODGE to INVDESTCOLOR+ONE and MODULATE to ZERO+SRCCOLOR (ui_batches.cpp). Invariant: same corners, UVs and blend factors."
"note": "40250: CULLMODE CCW for a mirrored scale, Save/RestoreRenderState SRCBLEND/DESTBLEND per RENDERING_MODE, PDT-stream fill-rect draw. Port: the verbatim vertices plus m_iRenderingMode go to UIRenderAddImage; the Vulkan UI pipeline (cull none) maps SCREEN/COLOR_DODGE to INVDESTCOLOR+ONE and MODULATE to ZERO+SRCCOLOR (ui_batches.cpp). Invariant: same corners, UVs and blend factors. 2026-10-18: stage-0 U/V addressing is carried into Vulkan UI descriptors; the prior unconditional clamp stretched Board.SetRenderingRect tiling into edge stripes. Native before/after screenshots and independent wrap/mirror/clamp tests are recorded in audit/evidence/2026-10-18-ui-addressing.md."
},
"CGraphicExpandedImageInstance::SetDepth": {
"status": "PORTED",
@@ -48,7 +48,7 @@
"test": [
"tests/port/port_text_test.cpp"
],
"note": "40250: deletes each HFONT of the font map. Port: also deletes its oversampled twin. Invariant: 40250 teardown; no leaked GDI fonts."
"note": "40250 deletes fonts/pages. PORT also unregisters the live raster atlas and deletes oversampled twins; rebuilding preserves cached character-info node addresses. See docs/MAC-UI-CLARITY.md and audit/evidence/2026-09-30-mac-ui-clarity.md."
},
"CGraphicFontTexture::CreateDeviceObjects": {
"status": "PORTED",
@@ -76,7 +76,7 @@
"test": [
"tests/port/port_text_test.cpp"
],
"note": "40250: the page DIB is width x height. Port: width*s x height*s for oversample s (1 by default = 40250). Invariant: logical page size, metrics and UVs unchanged."
"note": "40250 retains logical font metrics and atlas dimensions. PORT allocates 1–4x raster pages and registers successful atlases for monitor-density refresh; port.text verifies unchanged width/height/advance and stable glyph pointers. See docs/MAC-UI-CLARITY.md and audit/evidence/2026-09-30-mac-ui-clarity.md."
},
"CGraphicFontTexture::GetFont": {
"status": "ADAPTED",
@@ -89,22 +89,24 @@
"note": "40250: CreateFontIndirect per code page. Port: with s > 1 also creates an s-times-height twin for drawing. Invariant: the measuring font is the 40250 one."
},
"CGraphicFontTexture::AppendTexture": {
"status": "PORTED",
"status": "ADAPTED",
"impl": [
"src/platform/EterLib/GrpFontTexture.cpp:CGraphicFontTexture::AppendTexture"
],
"test": [
"tests/port/port_text_test.cpp"
]
],
"note": "40250 creates A4R4G4B4 pages. PORT uses A8R8G8B8 for HiDPI pages to retain 256 coverage levels; 1x still uses A4R4G4B4. tests/port/port_text_test.cpp checks alpha finer than 4-bit. See docs/MAC-UI-CLARITY.md and audit/evidence/2026-09-30-mac-ui-clarity.md."
},
"CGraphicFontTexture::UpdateTexture": {
"status": "PORTED",
"status": "ADAPTED",
"impl": [
"src/platform/EterLib/GrpFontTexture.cpp:CGraphicFontTexture::UpdateTexture"
],
"test": [
"tests/port/port_text_test.cpp"
]
],
"note": "40250 copies DIB cells into 16-bit pages. PORT copies 32-bit ARGB rows for HiDPI pages; 1x retains the original conversion. Tests check actual published memory textures. See docs/MAC-UI-CLARITY.md and audit/evidence/2026-09-30-mac-ui-clarity.md."
},
"CGraphicFontTexture::GetCharacterInfomation": {
"status": "PORTED",
@@ -123,7 +125,7 @@
"test": [
"tests/port/port_text_test.cpp"
],
"note": "40250: TextOutW with the 1x font, bilevel threshold into A4R4G4B4. Port: with s > 1 draws the glyph with the twin into the s-scaled cell keeping coverage alpha; s == 1 is the 40250 path. Invariant: width/height/advance and packing are the logical 1x values."
"note": "40250 measures the logical font and caches metrics/UVs. PORT draws oversampled white glyphs with 8-bit coverage and preserves logical metrics. Monitor changes rebuild map values in place without invalidating text-instance pointers; port.text tests 1→2→3→1→2 scales. See docs/MAC-UI-CLARITY.md and audit/evidence/2026-09-30-mac-ui-clarity.md."
},
"CGraphicFontTexture::CheckTextureIndex": {
"status": "PORTED",
@@ -57,7 +57,7 @@
"test": [
"tests/port/port_grp_resource_test.cpp"
],
"note": "40250: SetPDTStream + DEFAULT_IB_FILL_RECT + stage-0 texture, DrawIndexedPrimitive. Port: the same four TPDTVertex corners/UVs/diffuse go to UIRenderAddImage. Invariant: quad = image rect at m_v2Position-0.5, UVs = rect/texture size."
"note": "40250: SetPDTStream + DEFAULT_IB_FILL_RECT + stage-0 texture, DrawIndexedPrimitive. Port: the same four TPDTVertex corners/UVs/diffuse go to UIRenderAddImage. Invariant: quad = image rect at m_v2Position-0.5, UVs = rect/texture size. 2026-09-30: native host snaps axis-aligned quad origins by at most half a physical pixel and uses point sampling only at 1:1 texel/pixel density; source layout/UVs and rotated quads unchanged. host.ui_quality + mac UI screenshots. See docs/MAC-UI-CLARITY.md."
},
"CGraphicImageInstance::GetTextureReference": {
"status": "PORTED",
@@ -38,6 +38,9 @@
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindow.cpp:CWindow::Clear"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindow::DestroyHandle": {
@@ -68,12 +71,18 @@
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindow.cpp:CWindow::__RemoveReserveChildren"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindow::Update": {
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindow.cpp:CWindow::Update"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindow::Render": {
@@ -176,6 +185,9 @@
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindow.cpp:CWindow::DeleteChild"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindow::SetTop": {
@@ -146,12 +146,18 @@
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindowManager.cpp:CWindowManager::NotifyDestroyWindow"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindowManager::DestroyWindow": {
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindowManager.cpp:CWindowManager::DestroyWindow"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindowManager::IsDragging": {
@@ -296,12 +302,18 @@
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindowManager.cpp:CWindowManager::__ClearReserveDeleteWindowList"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindowManager::Update": {
"status": "PORTED",
"impl": [
"src/port/EterPythonLib/PythonWindowManager.cpp:CWindowManager::Update"
],
"evidence": [
"audit/evidence/2026-10-18-window-lifecycle-qa.md"
]
},
"CWindowManager::Render": {
@@ -9,7 +9,7 @@
"impl": [
"src/platform/GameLib/MapOutdoorRenderHTP.cpp:CMapOutdoor::__RenderTerrain_RenderHardwareTransformPatch"
],
"note": "Verbatim 40250 body plus an early return when IsNativeTerrainRenderEnabled() is false (Godot terrain adapter path, PORT-PLAN §3). Fake-server frame: far band no longer white, layout matches the STP path; pixel parity vs a 40250 frame not verified."
"note": "Verbatim 40250 body plus an early return when IsNativeTerrainRenderEnabled() is false (Godot terrain adapter path, PORT-PLAN \u00a73). Fake-server frame: far band no longer white, layout matches the STP path; pixel parity vs a 40250 frame not verified. Opt-in MT_DIAGNOSTIC_SKIP_RENDER isolates drawing only for device profiling; absent on normal launches, simulation/network unchanged. See tools/perf/run_render_isolation.py and docs/XIAOMI8LITE-RENDER-ISOLATION-20260930.md."
},
"CMapOutdoor::__HardwareTransformPatch_RenderPatchSplat": {
"status": "NEEDS_LIVE",
@@ -9,7 +9,7 @@
"impl": [
"src/platform/GameLib/MapOutdoorRenderSTP.cpp:CMapOutdoor::__RenderTerrain_RenderSoftwareTransformPatch"
],
"note": "Verbatim 40250 body plus an early return when IsNativeTerrainRenderEnabled() is false (Godot terrain adapter path, PORT-PLAN §3), same gate as HTP. Reached only with SOFTWARE_TILING 1 or a non-fast-T&L device. Fake-server STP frame matches HTP layout; pixel parity vs a 40250 STP frame not verified."
"note": "Verbatim 40250 body plus an early return when IsNativeTerrainRenderEnabled() is false (Godot terrain adapter path, PORT-PLAN \u00a73), same gate as HTP. Reached only with SOFTWARE_TILING 1 or a non-fast-T&L device. Fake-server STP frame matches HTP layout; pixel parity vs a 40250 STP frame not verified. Opt-in MT_DIAGNOSTIC_SKIP_RENDER isolates drawing only for device profiling; absent on normal launches, simulation/network unchanged. See tools/perf/run_render_isolation.py and docs/XIAOMI8LITE-RENDER-ISOLATION-20260930.md."
},
"CMapOutdoor::__SoftwareTransformPatch_RenderPatchSplat": {
"status": "NEEDS_LIVE",
+80 -19
View File
@@ -5,61 +5,122 @@
"contracts": [],
"functions": {
"Py_BadArgument": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:Py_BadArgument"
]
},
"Py_BuildException": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:Py_BuildException"
]
},
"Py_BuildNone": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:Py_BuildNone"
]
},
"Py_ReleaseNone": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:Py_ReleaseNone"
]
},
"PyTuple_GetObject": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetObject"
]
},
"PyTuple_GetLong": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetLong"
]
},
"PyTuple_GetDouble": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetDouble"
]
},
"PyTuple_GetFloat": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetFloat"
]
},
"PyTuple_GetByte": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetByte"
],
"note": "verbatim except `unsigned char(val)` (MSVC-only cast) written as `(unsigned char) val`."
},
"PyTuple_GetInteger": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetInteger"
]
},
"PyTuple_GetUnsignedLong": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetUnsignedLong"
]
},
"PyTuple_GetUnsignedInteger": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetUnsignedInteger"
]
},
"PyTuple_GetString": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetString"
]
},
"PyTuple_GetBoolean": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyTuple_GetBoolean"
]
},
"PyCallClassMemberFunc": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyCallClassMemberFunc"
]
},
"PyCallClassMemberFunc_ByPyString": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:PyCallClassMemberFunc_ByPyString"
]
},
"__PyCallClassMemberFunc_ByCString": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:__PyCallClassMemberFunc_ByCString"
],
"note": "verbatim plus the MtPerf::CPythonScope / CountPythonMissing perf counters (no behaviour change)."
},
"__PyCallClassMemberFunc_ByPyString": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:__PyCallClassMemberFunc_ByPyString"
],
"note": "verbatim plus the MtPerf::CPythonScope / CountPythonMissing perf counters (no behaviour change)."
},
"__PyCallClassMemberFunc": {
"status": "TODO"
"status": "PORTED",
"impl": [
"src/port/ScriptLib/PythonUtils.cpp:__PyCallClassMemberFunc"
],
"note": "verbatim plus the MtPerf::CPythonScope / CountPythonMissing perf counters (no behaviour change)."
}
}
}
@@ -0,0 +1,69 @@
{
"reference": "ScriptLib/Resource.cpp",
"reference_sha256": "559339874da495b2e5fbeb78256a6ea9dfde2ea11f838d55c4f01b918a052c7f",
"priority": "P4",
"contracts": [],
"functions": {
"NewImage": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:NewImage"
]
},
"NewSubImage": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:NewSubImage"
]
},
"NewText": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:NewText"
]
},
"NewThing": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:NewThing"
]
},
"NewEffectMesh": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:NewEffectMesh"
]
},
"NewAttributeData": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:NewAttributeData"
]
},
"CPythonResource::DumpFileList": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:CPythonResource::DumpFileList"
]
},
"CPythonResource::Destroy": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:CPythonResource::Destroy"
],
"note": "verbatim; like 40250 only CPythonApplication::Destroy calls it, which is DIVERGENT (host tears down via PythonBoot::Stop resets), so it does not run at shutdown yet."
},
"CPythonResource::CPythonResource": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:CPythonResource::CPythonResource"
]
},
"CPythonResource::~CPythonResource": {
"status": "PORTED",
"impl": [
"src/platform/ScriptLib/Resource.cpp:CPythonResource::~CPythonResource"
]
}
}
}
@@ -74,7 +74,7 @@
"src/platform/UserInterface/PythonApplication.cpp:CPythonApplication::RenderGame"
],
"test": "tests/port/port_login_flow_test.cpp",
"note": "40250's !PERF_CHECKER_RENDER_GAME branch line for line, members reached through their singletons; the perf-timing branch (PERF_CHECKER_RENDER_GAME is FALSE) is left out."
"note": "40250's !PERF_CHECKER_RENDER_GAME branch line for line, members reached through their singletons; the perf-timing branch (PERF_CHECKER_RENDER_GAME is FALSE) is left out. Opt-in MT_DIAGNOSTIC_SKIP_RENDER isolates drawing only for device profiling; absent on normal launches, simulation/network unchanged. See tools/perf/run_render_isolation.py and docs/XIAOMI8LITE-RENDER-ISOLATION-20260930.md."
},
"CPythonApplication::UpdateGame": {
"status": "ADAPTED",
@@ -157,7 +157,7 @@
"impl": [
"src/platform/UserInterface/PythonApplication.cpp:CPythonApplication::Create"
],
"note": "40250 CPythonApplication lifecycle and state adapted for platform host and singletons; m_LightManager.Initialize() (40250 :1263) now called; Destroy() still empty (m_LightManager.Destroy at 40250 :1418 not yet mirrored); 40250 :1196-1251 tiling selection mirrored (SOFTWARE_TILING cfg → GRAPHICS_CAPS_SOFTWARE_TILING before device create, auto tiling IsFastTNL ? HTP : STP via ReserveSoftwareTilingEnable, !IsFastTNL → CGrannyLODController::SetMinLODMode(true)); RecordingDevice caps report VS 1.1 + CLIPTLVERTS so auto picks HTP",
"note": "40250 CPythonApplication lifecycle and state adapted for platform host and singletons; m_LightManager.Initialize() (40250 :1263) now called; Destroy() still empty (m_LightManager.Destroy at 40250 :1418 not yet mirrored); 40250 :1196-1251 tiling selection mirrored (SOFTWARE_TILING cfg \u2192 GRAPHICS_CAPS_SOFTWARE_TILING before device create, auto tiling IsFastTNL ? HTP : STP via ReserveSoftwareTilingEnable, !IsFastTNL \u2192 CGrannyLODController::SetMinLODMode(true)); RecordingDevice caps report VS 1.1 + CLIPTLVERTS so auto picks HTP",
"test": "tests/port/port_login_flow_test.cpp"
},
"CPythonApplication::SetGlobalCenterPosition": {
@@ -301,7 +301,8 @@
"impl": [
"src/platform/UserInterface/PythonApplication.cpp:CPythonApplication::Destroy"
],
"note": "Empty and never called: the host tears down through the singleton resets in PythonBoot::Stop, not 40250 Main's app->Destroy(). 40250's body (window manager, SaveConfig/SaveInterfaceStatus writing into the client dir, managers incl. m_LightManager.Destroy(), device) is not run; porting it needs Stop to call it with config writes redirected out of the 40250 client dir."
"note": "Empty and never called: the host tears down through the singleton resets in PythonBoot::Stop, not 40250 Main's app->Destroy(). 40250's body (window manager, SaveConfig/SaveInterfaceStatus writing into the client dir, managers incl. m_LightManager.Destroy(), device) is not run; porting it needs Stop to call it with config writes redirected out of the 40250 client dir. 2026-10-16: PythonBoot::Stop now explicitly drains CFlyingManager before character/effect destruction and destroys characters before their sibling text-tail/item managers. The active-projectile shutdown regression exits 139 before the fix and 0 afterward; remaining CPythonApplication::Destroy omissions retain DIVERGENT.",
"test": "tests/port/port_app_loop_test.cpp"
}
}
}
@@ -0,0 +1,11 @@
{
"reference": "UserInterface/PythonNetworkDatagramModule.cpp",
"reference_sha256": "fc49120f237cee410aeb9d8d18dcda0eeeb8a244f541af878b8ebaf08858e9de",
"priority": "P4",
"contracts": [],
"functions": {
"initudp": {
"status": "TODO"
}
}
}
@@ -38,7 +38,8 @@
"status": "PORTED",
"impl": [
"src/port/UserInterface/PythonNetworkStreamCommand.cpp:CPythonNetworkStream::ServerCommand"
]
],
"note": "User-authorized auto-hunt extension consumes only AutoHuntGather replies before unchanged 40250 command handling. Current request generations reject stale/stopped replies; tests/port/autohunt_pull_checks.inc verifies Python settings and CG_CHAT/GC_CHAT through the real network stream. Original commands remain unchanged."
}
}
}
@@ -242,7 +242,17 @@
"status": "PORTED",
"impl": [
"src/port/UserInterface/PythonPlayer.cpp:CPythonPlayer::NotifyDeadMainCharacter"
]
],
"note": "Original auto-attack cleanup retained; user-authorized PORT auto-hunt extension optionally waits for server restart_here and recovery. Default remains stopping on death. See docs/AUTO-HUNT-ENHANCEMENTS.md.",
"evidence": {
"tests": [
"tests/port/autohunt_recovery_checks.inc"
],
"commands": [
"ctest --test-dir build/native -R ^port.login_flow$ --output-on-failure",
"MT_TEST_MOBILE=1 ctest --test-dir build/native -R ^port.login_flow$ --output-on-failure"
]
}
},
"CPythonPlayer::NotifyChangePKMode": {
"status": "PORTED",
@@ -0,0 +1,17 @@
{
"reference": "UserInterface/PythonProfilerModule.cpp",
"reference_sha256": "6afa0c492e2ad88eea775c55ff3f6bd9c490abe91408772dae461e40a207b96c",
"priority": "P4",
"contracts": [],
"functions": {
"profilerPush": {
"status": "TODO"
},
"profilerPop": {
"status": "TODO"
},
"initProfiler": {
"status": "TODO"
}
}
}
+106
View File
@@ -0,0 +1,106 @@
#!/bin/zsh
# Renders branding/icon/icon.svg into every platform icon and writes them where the builds pick them up:
# android/app/src/main/res/mipmap-* legacy ic_launcher / ic_launcher_round (API 24-25) and the
# adaptive-icon layers (API 26+, mipmap-anydpi-v26/*.xml)
# branding/icon/macos/AppIcon.icns macOS app icon (Big Sur squircle with drop shadow)
# branding/icon/ios/AppIcon.appiconset iOS single-size 1024 icon (opaque)
# The outputs are committed, so building the apps does not need this script. Rerun it after editing the SVG.
# Needs Google Chrome (SVG filters) and ImageMagick (`brew install imagemagick`); iconutil ships with macOS.
set -euo pipefail
here=${0:A:h}
repo=${here:h:h}
chrome=${CHROME:-"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"}
work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT
# icon.svg -> full / background-only / foreground-only (scaled into the adaptive-icon safe zone) SVGs.
python3 - "$here/icon.svg" "$work" <<'EOF'
import re, sys
src, out = sys.argv[1], sys.argv[2]
svg = open(src).read()
# Both layer groups sit at two-space indent; the foreground one is the last element and holds nested groups.
bg = re.search(r' <g id="background">.*?\n </g>\n', svg, re.S)
fg = re.search(r' <g id="foreground">.*\n </g>\n(?=</svg>)', svg, re.S)
assert bg and fg
open(out + "/full.svg", "w").write(svg)
open(out + "/background.svg", "w").write(svg.replace(fg.group(0), ""))
# Adaptive icons show the inner 72 of 108 dp (338 px of the 512 half-width) and launchers mask inside that.
# Scale the foreground so the ring (outer radius 405 around (512, 500)) sits at the same 79% of the visible
# radius as in the full icon: 405 * 0.66 = 267 = 0.79 * 338.
scaled = ' <g transform="translate(512 512) scale(0.66) translate(-512 -500)">\n' + fg.group(0) + ' </g>\n'
open(out + "/foreground.svg", "w").write(svg.replace(bg.group(0), "").replace(fg.group(0), scaled))
EOF
for name in full background foreground; do
"$chrome" --headless=new --disable-gpu --hide-scrollbars --default-background-color=00000000 \
--window-size=1024,1024 --screenshot="$work/$name.png" "file://$work/$name.svg" >/dev/null 2>&1
done
# Android
res=$repo/android/app/src/main/res
typeset -A legacy=(mdpi 48 hdpi 72 xhdpi 96 xxhdpi 144 xxxhdpi 192)
for density size in ${(kv)legacy}; do
dir=$res/mipmap-$density
mkdir -p $dir
layer=$(( size * 9 / 4 )) # 108 dp at this density
magick "$work/background.png" -resize ${layer}x${layer} "$dir/ic_launcher_background.png"
magick "$work/foreground.png" -resize ${layer}x${layer} "$dir/ic_launcher_foreground.png"
# Legacy launchers show the bitmap as is: a rounded square and a circle.
r=$(( size * 18 / 100 ))
magick "$work/full.png" -alpha set -resize ${size}x${size} \
\( -size ${size}x${size} xc:none -fill white -draw "roundrectangle 0,0 $((size-1)),$((size-1)) $r,$r" \) \
-compose DstIn -composite "$dir/ic_launcher.png"
magick "$work/full.png" -alpha set -resize ${size}x${size} \
\( -size ${size}x${size} xc:none -fill white -draw "circle $((size/2)),$((size/2)) $((size/2)),0" \) \
-compose DstIn -composite "$dir/ic_launcher_round.png"
done
mkdir -p $res/mipmap-anydpi-v26
for name in ic_launcher ic_launcher_round; do
cat > $res/mipmap-anydpi-v26/$name.xml <<'EOF'
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by branding/icon/build_icons.sh. -->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>
EOF
done
# macOS: 824 px squircle-ish rounded rect (radius 185) centred on 1024 with a soft shadow, per the Big Sur grid.
magick "$work/full.png" -alpha set -resize 824x824 \
\( -size 824x824 xc:none -fill white -draw "roundrectangle 0,0 823,823 185,185" \) \
-compose DstIn -composite "$work/tile.png"
magick -size 1024x1024 xc:none \
\( "$work/tile.png" -background black -shadow 50x14+0+10 \) -gravity center -geometry +0+6 -compose Over -composite \
"$work/tile.png" -gravity center -geometry +0+0 -compose Over -composite "$work/mac1024.png"
iconset=$work/AppIcon.iconset
mkdir -p $iconset
for s in 16 32 128 256 512; do
magick "$work/mac1024.png" -resize ${s}x${s} "$iconset/icon_${s}x${s}.png"
magick "$work/mac1024.png" -resize $((s*2))x$((s*2)) "$iconset/icon_${s}x${s}@2x.png"
done
mkdir -p $here/macos
iconutil -c icns -o $here/macos/AppIcon.icns $iconset
cp "$work/mac1024.png" $here/macos/AppIcon-1024.png
# iOS: opaque, square; the system applies the mask.
ios=$here/ios/AppIcon.appiconset
mkdir -p $ios
magick "$work/full.png" -background '#12050a' -alpha remove -alpha off "$ios/AppIcon-1024.png"
cat > $ios/Contents.json <<'EOF'
{
"images" : [
{
"filename" : "AppIcon-1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
EOF
echo "icons written"
+124
View File
@@ -0,0 +1,124 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<!-- Metin2 client app icon: a Metin stone (the cursed monoliths the game is named after) with glowing
rune cracks, inside a gold ring over a blood-red dusk sky and ink mountains.
Full-bleed square; platforms apply their own mask. #background / #foreground are the Android
adaptive-icon layers. branding/icon/build_icons.sh renders every platform size from this file. -->
<defs>
<radialGradient id="sky" cx="50%" cy="42%" r="70%">
<stop offset="0" stop-color="#8e1b14"/>
<stop offset="0.45" stop-color="#4a0b0e"/>
<stop offset="1" stop-color="#12050a"/>
</radialGradient>
<radialGradient id="aura" cx="50%" cy="50%" r="50%">
<stop offset="0" stop-color="#ff7a2a" stop-opacity="0.85"/>
<stop offset="0.4" stop-color="#e2361a" stop-opacity="0.45"/>
<stop offset="1" stop-color="#e2361a" stop-opacity="0"/>
</radialGradient>
<linearGradient id="gold" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#fff0a8"/>
<stop offset="0.35" stop-color="#e8b64a"/>
<stop offset="0.7" stop-color="#a8701c"/>
<stop offset="1" stop-color="#f3cf6a"/>
</linearGradient>
<linearGradient id="faceL" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#5b5566"/>
<stop offset="1" stop-color="#211d28"/>
</linearGradient>
<linearGradient id="faceR" x1="1" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#2a2531"/>
<stop offset="1" stop-color="#0b090f"/>
</linearGradient>
<linearGradient id="faceM" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#46404f"/>
<stop offset="1" stop-color="#16131b"/>
</linearGradient>
<linearGradient id="mtnFar" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#3a0c10"/>
<stop offset="1" stop-color="#1c0609"/>
</linearGradient>
<linearGradient id="mtnNear" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#1e070a"/>
<stop offset="1" stop-color="#080305"/>
</linearGradient>
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="9" result="b"/>
<feMerge><feMergeNode in="b"/><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
</filter>
<filter id="soft" x="-20%" y="-20%" width="140%" height="140%">
<feGaussianBlur stdDeviation="3"/>
</filter>
<filter id="shadow" x="-30%" y="-30%" width="160%" height="160%">
<feDropShadow dx="0" dy="10" stdDeviation="14" flood-color="#000" flood-opacity="0.7"/>
</filter>
</defs>
<g id="background">
<!-- sky -->
<rect width="1024" height="1024" fill="url(#sky)"/>
<!-- blood moon behind the stone -->
<circle cx="512" cy="430" r="250" fill="#c0301f" opacity="0.35"/>
<circle cx="512" cy="430" r="330" fill="url(#aura)"/>
<!-- ink mountains -->
<path d="M0 700 L110 610 L180 650 L280 540 L360 620 L420 590 L512 660 L610 575 L690 630 L760 540 L860 640 L940 600 L1024 660 L1024 1024 L0 1024 Z" fill="url(#mtnFar)"/>
<path d="M0 800 L90 740 L170 780 L260 710 L350 790 L512 760 L660 800 L760 720 L860 770 L950 730 L1024 770 L1024 1024 L0 1024 Z" fill="url(#mtnNear)"/>
</g>
<g id="foreground">
<!-- gold ring -->
<g filter="url(#shadow)">
<circle cx="512" cy="500" r="392" fill="none" stroke="url(#gold)" stroke-width="26"/>
<circle cx="512" cy="500" r="360" fill="none" stroke="#e8b64a" stroke-width="4" opacity="0.8"/>
<g id="stud"><circle cx="512" cy="108" r="17" fill="url(#gold)" stroke="#6b430c" stroke-width="3"/><circle cx="512" cy="108" r="6" fill="#c0301f"/></g>
<use href="#stud" transform="rotate(45 512 500)"/>
<use href="#stud" transform="rotate(90 512 500)"/>
<use href="#stud" transform="rotate(135 512 500)"/>
<use href="#stud" transform="rotate(225 512 500)"/>
<use href="#stud" transform="rotate(270 512 500)"/>
<use href="#stud" transform="rotate(315 512 500)"/>
</g>
<!-- the Metin stone -->
<g filter="url(#shadow)">
<!-- rocky base -->
<path d="M300 808 L360 752 L452 770 L512 742 L590 768 L668 750 L728 806 L690 840 L340 842 Z" fill="#17121a"/>
<!-- left face -->
<path d="M512 150 L408 300 L372 560 L400 790 L500 810 L486 520 Z" fill="url(#faceL)"/>
<!-- middle face -->
<path d="M512 150 L486 520 L500 810 L560 802 L566 470 Z" fill="url(#faceM)"/>
<!-- right face -->
<path d="M512 150 L566 470 L560 802 L632 780 L656 540 L616 290 Z" fill="url(#faceR)"/>
<!-- facet highlights -->
<path d="M512 150 L408 300 L372 560" fill="none" stroke="#9a92a8" stroke-width="4" opacity="0.7"/>
<path d="M512 150 L486 520 L500 810" fill="none" stroke="#6d6579" stroke-width="3" opacity="0.6"/>
<path d="M408 300 L452 250 L512 150 M372 560 L420 600 L400 790" fill="none" stroke="#7a7288" stroke-width="2.5" opacity="0.5"/>
<path d="M616 290 L656 540 L632 780" fill="none" stroke="#ff5a2a" stroke-width="5" opacity="0.75"/>
<path d="M566 470 L620 430 M560 802 L600 700" fill="none" stroke="#3b3444" stroke-width="2.5" opacity="0.8"/>
</g>
<!-- glowing cracks and runes -->
<g filter="url(#glow)" stroke-linecap="round" stroke-linejoin="round" fill="none">
<path d="M470 250 L452 330 L478 380 L440 470 L462 540 L430 640 L452 720" stroke="#ff6a1f" stroke-width="9"/>
<path d="M452 330 L418 360" stroke="#ff6a1f" stroke-width="6"/>
<path d="M440 470 L404 500" stroke="#ff6a1f" stroke-width="6"/>
<path d="M548 300 L566 380 L540 430 L584 520 L560 600 L596 690" stroke="#ff4a18" stroke-width="8"/>
<path d="M584 520 L620 540" stroke="#ff4a18" stroke-width="6"/>
<!-- rune on the middle face -->
<path d="M526 575 L556 630 L526 685 L496 630 Z M526 605 L526 655" stroke="#ffd27a" stroke-width="7"/>
</g>
<!-- hot cores of the cracks -->
<g stroke-linecap="round" stroke-linejoin="round" fill="none" stroke="#fff0c0" opacity="0.9">
<path d="M470 250 L452 330 L478 380 L440 470 L462 540 L430 640 L452 720" stroke-width="3"/>
<path d="M548 300 L566 380 L540 430 L584 520 L560 600 L596 690" stroke-width="3"/>
<path d="M526 575 L556 630 L526 685 L496 630 Z M526 605 L526 655" stroke-width="2.5"/>
</g>
<!-- embers -->
<g fill="#ffb25a" filter="url(#soft)">
<circle cx="340" cy="420" r="6"/><circle cx="690" cy="360" r="5"/><circle cx="660" cy="620" r="7"/>
<circle cx="360" cy="650" r="5"/><circle cx="600" cy="220" r="4"/><circle cx="410" cy="200" r="4"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 KiB

@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "AppIcon-1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 711 KiB

Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]龙魂石
[FONT_SIZE=14]打开角色背包中的龙魂石界面查看已有龙魂石。
[FONT_SIZE=14]龙魂石属性、穿戴条件与强化结果以服务器为准。
[FONT_SIZE=14]可通过物品悬浮提示核对等级及效果。
+11
View File
@@ -0,0 +1,11 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]游戏指南
[FONT_SIZE=14]在左侧选择职业与装备类别,查看强化材料和金币消耗。
[FONT_SIZE=14]搜索框支持物品、怪物的中文名称及编号。
[FONT_SIZE=14]点击物品图标可继续查询其来源,左右箭头可浏览历史。
[FONT_SIZE=14]怪物页展示当前模板属性、模型和服务器实际掉落。
[FONT_SIZE=14]百科右上方可以打开活动日历及掉落来源查询。
+9
View File
@@ -0,0 +1,9 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]生物学家
[FONT_SIZE=14]点击小地图旁的研究入口可以查看当前研究。
[FONT_SIZE=14]按阶段提交指定材料,冷却和奖励由服务器验证。
[FONT_SIZE=14]完成阶段后领取研究奖励,再进行下一阶段。
[FONT_SIZE=14]有关药水、奖励重选等操作,请查看研究窗口提示。
+9
View File
@@ -0,0 +1,9 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]第六与第七属性
[FONT_SIZE=14]装备悬浮提示显示该装备已有的全部属性。
[FONT_SIZE=14]自动洗练窗口可以选择目标属性与最低数值。
[FONT_SIZE=14]选择条件后请核对属性名称,再开始自动洗练。
[FONT_SIZE=14]锁定、消耗、洗练结果与停止条件均由服务器验证。
+9
View File
@@ -0,0 +1,9 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]时装与外观
[FONT_SIZE=14]在左侧时装分类中查询当前客户端支持的模板。
[FONT_SIZE=14]物品悬浮提示显示穿戴限制与属性。
[FONT_SIZE=14]已有模型的装备可在百科中进行预览。
[FONT_SIZE=14]实际可穿戴部位与效果以服务器判定为准。
+11
View File
@@ -0,0 +1,11 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]掉落查询
[FONT_SIZE=14]怪物详情展示服务器当前加载的掉落物品。
[FONT_SIZE=14]宝箱详情展示该宝箱当前加载的奖励内容。
[FONT_SIZE=14]物品详情可反查怪物及宝箱来源。
[FONT_SIZE=14]掉落查询窗口可搜索物品并预览掉落该物品的怪物。
[FONT_SIZE=14]条件掉落受等级、角色状态、活动等影响;列表不承诺每次掉落。
+15
View File
@@ -0,0 +1,15 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]活动与战令
[FONT_SIZE=14]活动日历显示服务器已经发布的排期。
[FONT_SIZE=14]点击同一天的活动图标可轮换查看该日活动。
[FONT_SIZE=14]活动时间使用服务器的 UTC 排期,频道与帝国限制显示在详情中。
[FONT_SIZE=14]没有排期时不会自动开启活动或发放奖励。
[FONT_SIZE=14]使用当月战令票可激活战令,任务进度由服务器记录。
[FONT_SIZE=14]任务完成后自动发放任务奖励,背包不足时可重新打开战令重试。
[FONT_SIZE=14]完成全部任务后,在战令奖励页领取最终奖励。
+7
View File
@@ -0,0 +1,7 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]游戏说明
[FONT_SIZE=14]本百科读取当前服务器导出的公开模板与实际掉落表。
[FONT_SIZE=14]未实现的系统不会提供虚构物品、奖励或活动排期。
[FONT_SIZE=14]玩法和账号规则以本服务器运营方发布的说明为准。
+7
View File
@@ -0,0 +1,7 @@
[CENTER_ALIGN;FONT_SIZE=20;COLOR=ffd700]宠物与坐骑
[FONT_SIZE=14]此分类列出当前模板中已经支持的宠物与坐骑。
[FONT_SIZE=14]空分类表示当前版本没有对应模板。
[FONT_SIZE=14]物品的使用方法、限制与属性请查看悬浮提示。
+15
View File
@@ -0,0 +1,15 @@
# Wiki 公开资料包 v1
由 `tools/wiki/build_catalogue.py` 生成。仅含物品/怪物模板、升级配方与已有中文名称,不包含玩家资料或游戏图片。
`catalogue.txt` 使用 UTF-8、LF、TAB 分隔,无可执行内容。第一行为 `MTWIKI<TAB>1<TAB>payload_sha256`,SHA 对第一行之后的全部字节计算。完整清单与输入/生成器/中文表哈希在 manifest.json。
| 行类型 | 字段(按顺序) |
|---|---|
| I | 标记、ID、范围末端、名称、类型、子类、最低等级、占格、升级目标 ID、配方 ID |
| M | 标记、ID、名称、类型、级别分类、等级、生命、最小攻击、最大攻击、经验、防御 |
| R | 标记、配方 ID、基础费用、基础成功率、逗号分隔的 `材料ID:数量` |
限额:2 MiB、30,000 条记录、每单元格 256 字符;升级材料最多五种;客户端分页每次最多 12 项。重复 ID、重叠范围、未知 schema、非法数值和文本标记均拒绝,界面显示更新资料包提示。
这里是配置快照,不是运行中服务器状态证明:重新加载前的文件修改可能与实际内存不同。当前未声明实时掉落、最终精炼概率、宝箱、模型预览等能力;后续接入独立协议时将与静态 schema 分别版本化。
File diff suppressed because it is too large Load Diff
+23
View File
@@ -0,0 +1,23 @@
{
"schema": 1,
"catalogue_sha256": "27b35188d2f5c96dd51f62c5f11689b15dfc1a6efcd96c03e26bd1b39c2b0d71",
"source_sha256": {
"item_proto.txt": "7d4f5c54983d5ccb5b1db59a734e0c60d7ab6480e807c48c881be39d5769cbd1",
"item_names.txt": "7a616550ec56206dcdc540f20f30ed3725fb6c9d6475dbd1a3b6eaddaa29a4d5",
"mob_proto.txt": "cfd5c9720192f53d230b1b367f20523833392d87bc323388542a5b141a7b3f6f",
"mob_names.txt": "e71e65ebd01a5705978ede20f680f84d7c531e46c18f4fe517da50898281e61b",
"refine.tsv": "2aacbea1021cd0c26ed23cb4af376973c748826a65fc7b9453c97f926affb9da"
},
"items": 7510,
"monsters": 870,
"refine_recipes": 467,
"source": "203 public server tables; no player data",
"generator_sha256": "9c4e1b6069179c36c080a1136d65cbe52a8e44b3577fb8391e8404f5162ef40b",
"localization_sha256": {
"item_names_zh.txt": "5604985d7f11039f3d3e38d4e2c07995e80ca3e4f6deb01fe57cd772e9cd0f70",
"item_names_zh_overlay.txt": "a4660f7b20e15beaa05220bf23f4df5a4ef64f474bc03a754e2338ce144c0e36",
"mob_names_zh.txt": "fdbfe4b3f3367d5842c0e9bbe0b5e5ea2dbe99fb6e566ef5789f65d3794eab5c",
"mob_names_zh_overlay.txt": "7c44a5f6cff5c3c27c13cc4c7be91d619c20c67a8e091222e13ed392ea18d00b"
},
"scope": "template catalogue; acquisition and runtime rates not yet queried"
}
+57 -4
View File
@@ -14,7 +14,9 @@
它们的审核译文(2026-09-28 确认)单独放在 `item_names_zh_overlay.txt`、
`mob_names_zh_overlay.txt`,界面回退键译文在 `locale_game_zh_overlay.txt`;
`scripts/build_zh_locale.py` 构建时以 overlay 覆盖快照同 VNUM / 同键的值。
旧的龙驹中文表与线上表有 21 个相同 VNUM 不同名;不把旧表覆盖到服务端。
中文译名以 `server_extracted/40250_deploy` 为优先参考;客户端技能和物品说明参考
`server_extracted/client_locale/longju/locale/taiwan`。与资料冲突的译名通过 overlay 修正,
线上原始快照保留不动。`server_extracted/database` 与部署表有少数地图名差异时采用部署表。
服务端名称若再更新,需重新只读导出并核对差异后更新本快照。
## 任务文本(translate.lua)
@@ -36,14 +38,28 @@
`scripts/build_zh_locale.py` 以 40250 的 `skilldesc.txt` 为底,逐行取龙驹同 VNUM 的名称、说明和条件列(2–8)
以及效果列(17/20/23)。客户端把效果列当作 `_snprintf` 格式串传入最小值、最大值,所以效果列只有在格式参数与英文一致时才替换。
`skilldesc_zh_overlay.txt` 按 `VNUM\t列号\t译文` 覆盖龙驹缺的或者不对的格。例如 126–128 在龙驹里叫吴/蜀/魏国方言,
这里改成盛唐语、秦皇语、汉武语;骑马技能的说明补上等级要求。
`skilldesc_zh_overlay.txt` 按 `VNUM\t列号\t译文` 覆盖龙驹缺的或者不对的格。126–128 沿用资料里的吴/蜀/魏国方言;骑马技能说明沿用资料原文。
效果列仍需适配当前客户端格式参数,例如反射机率使用 `%.1f%%`。
## 整行覆盖(item_list.txt、itemdesc.txt)
`item_list_zh_overlay.txt`、`itemdesc_zh_overlay.txt` 每行是目标文件的一整行(UTF-8,第一列 VNUM),
`build_zh_locale.py` 用它替换同 VNUM 的行(`ROW_FILES`),其余行字节不变;VNUM 不存在就报错。
用于服务端改了用途的物品,例如 50307 小狩猎套装礼包(`tools/server/hunt-set`)换成礼盒图标和中文说明。
50307 保留用户确认的自定义名称“小狩猎套装礼包”及原有说明;71118 恢复为勇气披风+及对应说明。
70058 移动戒指(`tools/server/ring-warp`)的自定义说明保留;提取客户端资料没有该 VNUM 的说明。
图标与使用限制不属于本次翻译修改。
## 物品限制(item_limits_server.tsv)
服务端 `item_proto.txt` 里改过的物品使用限制(每行 VNUM、限制类型 0、值 0、限制类型 1、值 1;0 = 无,1 = 等级),
由 `locale_proto_patch` 写进客户端 `item_proto`,提示框显示的等级要求与服务端一致。其余字段仍逐字节校验不变。
## 物品占格与标志(item_shapes_server.tsv)
服务端给了新用途、改过占格或标志的物品(每行 VNUM、size、flags、anti flags,数值),由 `locale_proto_patch`
写进客户端 `item_proto`,背包占格和堆叠与服务端一致;只允许这几条记录的这三个字段变化。目前是 VIP 会员卡
38001/38002(`tools/server/vip-card`):40250 原为 size 0,背包里不显示也不能移动。
该表跟在 `item_stones_server.tsv` 后面传入(位置参数),所以需要石头表也存在。
## 物品说明(itemdesc_translate_zh.tsv)
@@ -57,3 +73,40 @@
- 如果最后一行只剩一两个字,会把前面的行收窄一些重新折。
- 表里没有的格子保留英文,`zh-locale-report.json` 里的 `itemdesc.txt translation.english_rows` 会列出这些 VNUM。
- `itemdesc_zh_overlay.txt` 的整行覆盖在翻译之后执行,它的说明列也用同样的方式折行。
## 2026-10-01 资料对齐
修正 71118 的物品名和说明、16 个怪物/NPC/地图标记名及 12 个技能文本单元格。
50307 按用户要求保留自定义礼包。
UI 中为兼容当前客户端而调整的占位符、百分号及明显错字继续保留。
### 武器名称来源
武器译名以提取客户端 `server_extracted/client_locale/longju/locale/taiwan/item_proto`
的 `szLocaleName` 为准。该文件为 MIPX v1、记录宽度 152 字节,按类型 WEAPON(1)和
VNUM 匹配,不复制属性。它与 `server_extracted/database`、`40250_deploy` 的同 VNUM
名称存在差异;武器优先采用提取客户端原型,其他名称继续参考部署表。
本次修正 29 组武器的 +0~+9,共 290 条译名,例如武士刀→短刀、风雷剑→龙虎刀、
鬼牙剑→夺魂刀、碧玉刀→封神刀。逐条来源和修改前名称见 `weapon_names_source_audit.tsv`。
修改通过 `item_names_zh_overlay.txt` 生效,原始线上名称快照保留不动。
## +6 镶嵌石配置修复(2026-10-02)
当前 203 的 28700~28713 原为 ITEM_NONE,与 server_extracted 备份不同。`item_stones_server.tsv` 恢复备份中的类型、佩戴位置、属性和六个 value 字段;`locale_proto_patch` 只允许这 14 条记录的对应字段变化,其余非名称字段继续逐字节校验。服务端同份配置在 `tools/server/npc-shops/item-mall/stones.tsv`,商店安装时恢复。已有背包内同编号石头也使用新配置。
## 2026-10-17 帮会设施与系统界面汉化补齐
1. **帮会建筑与设施(`guildbuildinglist_zh.tsv`)**:
- 补齐全部 66 项帮会建筑/设施中文译名(熔炉、锻造所、练兵场、力之祭坛、门墙、景观石与木材)。
- 40250 新增的 5 个熔炉(26992–26996)对应译为灵魂水晶熔炉、红玉熔炉、石榴石熔炉、祖母绿熔炉、蓝宝石熔炉。
2. **界面与系统提示词(`locale_game_zh_overlay.txt` & `locale_interface_zh_overlay.txt`)**:
- 补齐 `MAP_AG`/`MAP_BG`/`MAP_CG`(三大帝国帮会属地)。
- 补齐 `PVP_OPTION_PROTECT`(帮会模式)。
- 补齐 `SCREENSHOT_SAVE1`/`SCREENSHOT_SAVE2`(截图保存提示与路径说明)。
- 补齐 `LOGIN_FAILURE_WEB_BLOCK`(封禁提示)及 `MALL_CANNOT_INSERT`(商城道具栏放入限制)。
- 补齐 `TOOLTIP_MEMORIZED_POSITION_ERROR`(坐标记录错误提示)。
- 移除龙魂石标签页英文后缀(`locale_interface_zh_overlay.txt`)。
3. **物品表与描述**:
- 修正 40004(首领召唤戒指)与 38006(魔魔重抽券)中文名。
- `itemdesc.txt` 第 2 列道具名同步填充对应中文名称。

Some files were not shown because too many files have changed in this diff Show More