Commit Graph
91 Commits
Author SHA1 Message Date
shenleiandClaude Opus 5.5 1a4d8295ff client: AVA2 Won (cheque) system, revision mt20261027
ENABLE_CHEQUE_SYSTEM / ENABLE_WON_EXCHANGE_WINDOW = 1: Won in trades,
private shop Won prices (int32 cheque[] after the CG_MYSHOP items), shop
item cheque prices, mt_won script fixes, zh locale_game_ex overlay staged
into locale_zh_ava2 (fixes the swapped %s/%d in WONEXCHANGE_CONFIRM_QUESTION_2).

Also zero-init every TPacketCGExchange: arg1 was uninitialised and the
HEAD server drops arg1 > UINT32_MAX, so accept/cancel/item-add were lost
and trades never completed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 15:30:45 +09:00
shenleiandClaude Opus 5.5 909fc8f851 client: native AVA2 cube_renewal module (ENABLE_CUBE_RENEWAL_WORLDARD=1)
PythonCubeRenewal + PhaseGameCubeRenewal ported verbatim from AVA2: GC 221
fills the recipe list and calls BINARY_CUBE_RENEWAL_OPEN, the XXF
uicuberenewal window sends CG 216 make/close (its 3rd "improve" argument
is accepted and not sent). Replaces the read-only CubeRenewalScript.inc
preview shim. Version mt20261026 so the server picks the new window.
FakeLoginServer: CG 215/216 sizes and a /mt_test_cube_open fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:06:26 +09:00
shenandshen d6617e01f7 feat: add CH5 cube renewal presentation, trade level UI, audit manifests, and test fixtures 2026-10-23 20:17:26 -07:00
shenandshen 3784137b4f feat: add gated CH5 quiver support and unified regression runner 2026-10-22 17:41:47 -07:00
shenandshen 60ed66692e feat(ch5): save migration resources, ranking implementation and verified status 2026-10-22 06:23:17 -07:00
shenandshen 846a993183 feat: complete xxf-ch5 35 features migration, protocol bindings, and gate validation
- S1: Chinese locale pack, target HP/drop preview, elemental icons, exchange level display, item highlight, FOV settings, advanced skybox, GM warp.
- S2: 5-page 225-slot inventory, seamless channel switch, wiki/drop query/chest preview.
- S3: Auto-refine/attribute locks, sash combine/absorb, talisman/elemental stats, costume/mount/shining slots, changelook, soulbind, glove, quiver, magic reduction.
- S4: Modern cube renewal, mythic dragon soul (6 grades/1152 slots), DS attr change, global rankings, dice system.
- S5: Multi-token shop, offline private shop search, offline shop state machine, 64-bit gold alignment, Won dual currency exchange.
- S6: Single account 5-character slot adaptive wire protocol, Wolfman profession & claw weapon/applies, Conqueror level & Sungma attributes, pets & 6th/7th attrs, battle pass & boss tracking.
- Pass 42/42 platform gate test suites in scripts/port_gate.sh macos.
2026-10-22 01:29:14 -07:00
shenandshen dd71ee5b61 feat: add POINT_GEM (248) player binding and initialization fix (Stage 6)
- Add POINT_GEM = 248 point type constant in Packet.h
- Add player.GetGem() and export POINT_GEM/GEM constants in PythonPlayerModule
- Fix CPythonPlayer constructor to explicitly call Clear() ensuring clean initial player status
- Add test assertions for player.GetGem() and player.POINT_GEM in port_python_ui_modules_test
2026-10-20 04:53:37 -07:00
shenandshen 18d9c89af8 feat: implement offline shop and private shop search client subsystems (Stage 5 Part 2)
- Enable ENABLE_OFFLINESHOP_SYSTEM and ENABLE_SHOP_SEARCH_SYSTEM in Locale_inc.h
- Add CG57, CG58, CG143, GC47, GC48, GC156 packets and subheaders in Packet.h
- Implement PythonShop offline shop item/stock/money methods and Python bindings
- Implement PythonNetworkStream offline shop packet sending and receiving handlers
- Port PythonPrivateShopSearch and export privateShopSearch Python module
- Add PythonUtils PyTuple_GetLongLong for 64-bit yang input parsing
- Add Python UI module test assertions covering offline shop and search APIs
2026-10-20 03:38:34 -07:00
shenandshen 9ef25b79d8 feat: add special storage window definitions, player bindings, and UI module exports 2026-10-20 02:38:26 -07:00
shenandshen 2fc99d2fe7 feat: add 6th and 7th rare attribute client networking, constants, and locale 2026-10-20 01:46:17 -07:00
shenandshen 74044c59c1 feat: add active branch pet system client bindings, constants, and locale 2026-10-20 00:50:01 -07:00
shenandshen 90ff2a2d7b feat: add costume slots, shining types, and enchant stone targeting 2026-10-20 00:06:46 -07:00
shenandshen 86a769f7dd feat: add AVA2 64-bit gold protocol and client formatting 2026-10-19 23:23: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 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 f64bb1899b Tighten the mobile skill arc and reduce auto-hunt artwork 2026-10-19 07:22:27 -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 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 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 e446ae8449 feat: add AVA2 minimap buttons and expanded taskbar entries 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 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 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 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 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 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 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 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 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 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