AVA2 client Windows parity passes (gr2 BitKnit2/64-bit, GamePhase handlers, python modules)
- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves - net: remaining GamePhase handlers, generated GC packet table - python: event/chat/chr/minimap/guild/quest/messenger/shop-search and other native modules ported against the AVA2 Windows client - render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain without baked shade; cape/NPC equipment attachment - tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame, camera bindings, main.cpp fake-content removal) is still in progress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9f748eb05a
commit
9077aa389a
+337
-1
@@ -18,7 +18,7 @@ Full 1:1 behavior is NOT implemented. The original AVA2 C++/Python snapshot is t
|
||||
|
||||
## Remaining substantial differences
|
||||
|
||||
- `docs/WINDOWS-PARITY-INVENTORY.json` contains 994 static placeholder method bindings. This counts bindings, not distinct gameplay features; it also includes configuration/diagnostic APIs. Non-placeholder functions can still have behavioral differences.
|
||||
- `docs/WINDOWS-PARITY-INVENTORY.json` contains 681 static placeholder method bindings. This counts bindings, not distinct gameplay features; it also includes configuration/diagnostic APIs. Non-placeholder functions can still have behavioral differences.
|
||||
- Native `PythonNetworkStream` queues gameplay bytes separately from `LoginClient`; loading currently pauses login transport. Full loading/game receive dispatch, ciphertext transport, packet sequences and map handoff are not integrated end to end.
|
||||
- Host contains local map/actor/combat/loot demonstrations and phase shortcuts. These do not reproduce authoritative server gameplay. `--phase game`, `--until-game` and screenshots are development previews, not evidence of server entry.
|
||||
- Original UI scripts run over partial native bridges. Event routing, IME/text, layout/font/resource behavior and original window lifecycle need Windows comparison.
|
||||
@@ -301,3 +301,339 @@ Removed extra GetItemRefineInformation export and invented vnum+1/cost/probabili
|
||||
### 2026-10-05: item equipment classification
|
||||
Replaced item.IsEquipmentVID zero placeholder with original selected-item lookup/fallback and CItemData::IsEquipment predicate (WEAPON/ARMOR only). Costume/rod/other item kinds do not count. Preserve selection side effect; regression samples every distinct real type/subtype and checks selected refined-vnum state.
|
||||
macOS/Android arm64 builds and20 nonvisual CTests passed;925 reference files unchanged. Full locale/item transactions/skill/combat/rendering parity remains incomplete, with render_3d timeout unresolved.
|
||||
|
||||
### 2026-10-06: net exchange/safebox/messenger/party/guild/quest senders
|
||||
Compared PythonNetworkStreamModule.cpp wrappers and PythonNetworkStreamPhaseGame*.cpp / PythonNetworkStreamPhaseGameItem.cpp senders against src/python_net.cpp and PythonNetworkStream.cpp.
|
||||
Corrections: safebox item move was a wrong 4-byte struct; it is now the original 11-byte {header 77, TItemPos src, TItemPos dst, DWORD count} layout. Exchange senders gained the original main-actor action gate and default TItemPos {INVENTORY, 0xffff}; exchange ItemDel is a no-op returning true, as on Windows. Replaced about 45 net placeholders with verbatim-style wrappers and senders: exchange, safebox/mall checkout (2/3-arg switches; Mall raises Py_BuildException otherwise), messenger add by VID/name and remove (with target-board refresh), party invite/answer/remove/state/skill/parameter (remove only in Game phase), all 15 guild subheaders (comment refresh 1000 ms throttle; post comment BYTE length incl. NUL), answer make guild, quest input string/long string/confirm, script select item, target info load, refine-info request no-op. Added the CG headers/subheaders/length constants to Packet.h; the packet-constant audit now covers MESSENGER/GUILD CG subheaders (155 checked, 0 mismatches). Python interface audit placeholders 749 → 618.
|
||||
Tests: ava2.python golden-byte block for every new sender, outside-Game party remove, messenger board callback, guild throttle, argument failures, and exchange gate with a controlled main actor.
|
||||
Validation: macOS build passed; Android arm64 libmain.so built (SDL3 3.4.16 rebuilt for arm64 in a scratch prefix); 925 reference files unchanged. CTest: 16/20 nonvisual pass. ava2.python, window_tree, speedtree_forest, mark_manager fail identically on the unmodified baseline commit. The cause is the environment, not this change: assets now live at ../AVA2/TEST/1. Client DEV/pack_maker, while sources/tests still hardcode /Users/shen/... and cwd-relative `ymir work`/`locale`/`UIScript`. With a scratch run directory mirroring upstream/python-root plus `ymir work`, python_test (including the new block) passes.
|
||||
Remaining: SelectEmpire/ChangeName (select-phase LoginClient path), SendEmoticon (needs chat receive parsing), offline-shop AddItem/TakeMoney/ChangeTitle/Check/Button, party/guild member state (PartyExit/RemoveVID/GuildRemoveMember lookups always fail), other modules' placeholders, and configurable asset roots. render_3d remains excluded for its unresolved timeout.
|
||||
|
||||
### 2026-10-06 (pass 2): receive loop, chat/whisper, server commands
|
||||
Compared CNetworkPacketHeaderMap/CheckPacket, GamePhase()/LoadingPhase() dispatch, RecvChatPacket/RecvWhisperPacket (ENABLE_MULTILANGUAGE_SYSTEM), ServerCommand (PythonNetworkStreamCommand.cpp), SendChatPacket/emoticon handling and PyCallClassMemberFunc semantics against src/eter_net and src/python_net.cpp.
|
||||
Corrections:
|
||||
- Receive loop: header sizes now come from `Ava2GcPacketTable.inc`, produced by tools/generate_ava2_gc_packet_table.py. The script evaluates the reference CMainPacketHeaderMap and GamePhase switch with clang i686-pc-windows-msvc, giving 138 mapped headers and 119 GamePhase handlers.
|
||||
- Zero padding is skipped. A dynamic size is read from the WORD at offset 1, and the loop waits until the whole packet has arrived.
|
||||
- An unmapped header triggers a trace, clears the buffer and requests quit, standing in for PostQuitMessage. main.cpp stops the loop.
|
||||
- A handler that returns false triggers a trace and clears the buffer, as RecvErrorPacket does.
|
||||
- In the Game phase, the loading-only headers 15/113/137/138 reach RecvDefaultPacket, which clears the buffer.
|
||||
- A GamePhase header with no port yet is skipped as exactly one packet and recorded, so the stream no longer desyncs.
|
||||
- Python callbacks use `PyCallClassMemberFunc`. A missing method is skipped, and an exception is printed instead of propagating as a C++ throw.
|
||||
- Chat:
|
||||
- types ≥ CHAT_TYPE_MAX_NUM (15) are dropped; COMMAND goes to ServerCommand;
|
||||
- an unknown VID is dropped;
|
||||
- for chatter types, the text after ": " is checked against ParseEmoticon;
|
||||
- RegisterChatTail is called except for SHOUT;
|
||||
- AppendChat runs only for PC actors;
|
||||
- with VID 0, SHOUT goes to AppendChat and every other type goes to the game window's GetLocaleString(type, text).
|
||||
- Whisper uses the original 31-byte header with bLanguage/bEmpire, enforced by static_assert:
|
||||
- CHAT/GM → OnRecvWhisper(type, name, "name : msg", lang, empire);
|
||||
- SYSTEM/ERROR → OnRecvWhisperSystemMessage;
|
||||
- anything else → OnRecvWhisperError.
|
||||
- ServerCommand (new src/eter_net/PythonNetworkStreamCommand.cpp, with a provenance header):
|
||||
1. ConsoleEnable returns early.
|
||||
2. BINARY_ServerCommand_Run is tried on the game window, or on the parser window when there is no game window. A true result stops processing.
|
||||
3. Tokens are split with SplitToken (quotes kept together, case preserved).
|
||||
4. The original strcmpi chain then runs. It covers gift, cube, Observer*, OfflineShopSetFlag, cards, Zodiac, mobile_auth, messenger_auth, setblockmode, quit, sms/nosms and combo.
|
||||
5. Unknown commands trace "Unknown Server Command".
|
||||
- New net functions: PreserveServerCommand/GetPreservedServerCommand, SetServerCommandParserWindow, RegisterEmoticonString (max 128) / SendEmoticon, EnableChatInsultFilter and SetEmpireLanguageMode, each with the original constructor-lifetime state.
|
||||
- player.IsObserverMode and HasMobilePhoneNumber now read the stream state.
|
||||
- SendChatPacket returns true for empty input or input of 512 bytes or more. A bare "/" repeats the last slash command.
|
||||
Tests: ava2.python now covers all of the above. That includes the cube/messenger_auth quoted tokens, Run=True short-circuit, the 31-byte whisper cases, a missing or raising callback, the "/" repeat, an unported header-36 skip with a partial wait, unknown header 250 → quit (cleared again by ResetConnection), and header 138 in the Game phase.
|
||||
Validation: macOS build clean; Android arm64 libmain.so built; 925 reference files unchanged; packet constant audit 155/0; interface audit 609 placeholders, down from 618. CTest `-E render_3d` gives 16/20, with the same four environment failures as before.
|
||||
Correction to pass 1: that pass reported python_test as passing, but it had actually stopped early. CreateCharacterWindow aborted on the missing ui/pattern texture, and the harness returns rc=0 when Python aborts, because app.Abort is a no-op. The run directory now needs a merged lowercase `ymir work` overlay of every pack_maker `*/ymir work`, with PC first, then ETC, then root, then the rest; it also needs `map` → pack_maker/Maps and `textureset` → Maps/textureset. In that setup the full python_test reaches its final "passed" line. Always check the log for that line, not the exit code.
|
||||
Remaining:
|
||||
- 75 Windows GamePhase handlers are still unported; they are now skipped safely: 18, 36, 39, 40, 41, 43, 45, 46, 47, 48, 58, 61, 62, 63, 66, 68, 69, 71, 74, 75, 77–83, 89, 91–93, 95, 99, 110–112, 114, 115, 119, 121, 123–125, 130–132, 134, 141, 152, 153, 156, 171, 204, 205, 208, 209, 213–218, 220, 221, 230, 231, 235, 241, 242, 249, 252, 255.
|
||||
- Headers 96/97/98 appear in the switch but not in the header map, so they behave as unknown on Windows too.
|
||||
- The chat module is entirely placeholder (33/33), so AppendChat only reaches the callback.
|
||||
- Not ported: emoticon effect playback, the insult filter, the empire convert table (YMIR locale only, so a no-op for AVA2), emotions, StoneDetect, stamina, OfflineShop SetShopFlag and the combo skill slot level.
|
||||
- The Login/Select phases share one dispatcher.
|
||||
- app.Exit/Abort are no-ops.
|
||||
- Asset roots are hardcoded.
|
||||
- render_3d is still excluded because of its timeout.
|
||||
|
||||
### 2026-10-06 (pass 3): remaining GamePhase handlers
|
||||
Ported 63 of the 75 skipped GamePhase() headers in the new src/eter_net/PythonNetworkStreamPhaseGameRecv.cpp. Each one follows the matching handler in PythonNetworkStreamPhaseGame.cpp, PhaseGameItem.cpp, PhaseGameActor.cpp or PhaseHandShake.cpp, with the AVA2 Locale_inc.h feature set. Wire reads and Python callbacks match the reference one for one.
|
||||
- Ported headers: 18, 36, 39–41, 43, 45, 46, 48, 58, 61–63, 66, 68, 69, 71, 77–80, 82, 83, 89, 91, 92, 95, 99, 110–112, 115, 119, 121, 123–125, 130–132, 134, 141, 152, 153, 204, 205, 208, 209, 213–216, 218, 231, 235, 241, 242, 249, 252 and 255.
|
||||
- Handshake and server time: 255 stores the server time sync and sends TIME_SYNC (0xfc) with dwTime+2·lDelta, sequenced. 252 calls SetServerMSec. 255, 252, 152 and 153 return from GamePhase() as on Windows, so the rest of the buffer and the refresh block wait for the next frame.
|
||||
- Refresh block now runs in Windows order: Character, Inventory, Skill, Status. The new Character flag is set by ChangeSkillGroup.
|
||||
- XTrap 205 replies with 204 plus 128 bytes without SendSequence. XTRAP_CLIENT_ENABLE is off in the reference, so the reply data is left uninitialised there; the port sends zeros. The send queue now carries a per-packet sequence flag through LoginClient/LoginSession::send_game_packet.
|
||||
- Packets that fail on Windows still fail here, so RecvErrorPacket clears the buffer:
|
||||
- HS 204: neither HackShield nor LOCALE_SERVICE_GLOBAL is defined.
|
||||
- Unk213: the `Recv(sizeof(...)), &pkt` comma bug.
|
||||
- Refine 95/119 use the ENABLE_MULTI_REFINE_WORLDARD subtype callbacks: 95 → OpenRefineDialog/AppendMaterialToRefineDialog, 119 → BINARY_MULTI_REFINE_ADD_INFO/ADD_MATERIAL.
|
||||
- Player and actor state now updated:
|
||||
- party members;
|
||||
- PVP and duel keys;
|
||||
- Remember*/ForgetInstance;
|
||||
- kill log;
|
||||
- skill group, together with NEW_ClearSkillData;
|
||||
- walk mode;
|
||||
- fishing state;
|
||||
- ownership;
|
||||
- dungeon destination.
|
||||
- Target and TargetInfo use CanViewTargetHP, which includes Hydra race 6801, and pass the hide-costume string bounded.
|
||||
Gaps (consumed exactly, logged here):
|
||||
- Atlas/minimap marks and target effects: 115, 123–125.
|
||||
- Guild land areas and the symbol download: 130.
|
||||
- Fly targets: 69, 71.
|
||||
- Dig, fishing and emotion motions.
|
||||
- Specific effect: 208.
|
||||
- Hybrid-crypt pack keys: 152, 153.
|
||||
- CheatBlacklist: 249.
|
||||
- Native stores: sash material, bank log, chest-drop items.
|
||||
- The dungeon auto-walk.
|
||||
- RefreshAllPCTextTail after DuelStart.
|
||||
- The 300 ms refresh throttle.
|
||||
- Not ported yet (12 headers): 47, 74, 75 (guild), 81, 93, 114, 156, 171, 217, 220, 221, 230.
|
||||
Tests: ava2.python checks golden wire bytes and callbacks for:
|
||||
- Handshake TIME_SYNC bytes, sequence flag and stop-frame;
|
||||
- HandshakeOK server msec;
|
||||
- the unsequenced XTrap ACK;
|
||||
- HS/Unk213 buffer clear;
|
||||
- the HybridCrypt stream skip;
|
||||
- refine 95/119;
|
||||
- refresh order;
|
||||
- PVP key;
|
||||
- Sash, KingdomsWar, Sungma, lover, 67Attr, guild-name;
|
||||
- ExchangeLog LOAD/LOAD_ITEM, CatchKing, Calendar/ADM, DS refine;
|
||||
- exact consumption of Land, NPC list, Dungeon and blacklist.
|
||||
The unported-skip test now uses header 75.
|
||||
Validation:
|
||||
- macOS build clean.
|
||||
- python_test reaches its "passed" line.
|
||||
- CTest `-E render_3d` gives 16/20, with the same four environment failures. render_3d is still excluded because of its timeout.
|
||||
- Android arm64 libmain.so built.
|
||||
- 925 reference files unchanged.
|
||||
- Packet constant audit: 210 checked, 0 mismatches.
|
||||
|
||||
### 2026-10-06 (pass 4): quest state, Python getters and completion harness
|
||||
Reference: upstream/ava2-client/UserInterface/PythonQuest.cpp, PythonQuest.h, Packet.h::packet_quest_info/QUEST_SEND_* and PythonNetworkStreamPhaseGame.cpp::RecvQuestInfoPacket (ENABLE_MULTILANGUAGE_SYSTEM active).
|
||||
- HEADER_GC_QUEST_INFO81 is no longer skipped. Decode the six-byte packed Win32 header and flag-ordered 1/31/17/4/17/4/25-byte fields; force the original final string bytes to NUL.
|
||||
- Ordered records distinguish array indices from DWORD quest IDs. Wire BEGIN deletes then appends, UPDATE creates a missing record and updates only nonempty strings/flagged values, END deletes. Reset the countdown start only on BEGIN/create or a flagged clock update.
|
||||
- `^` titles are delegated to GetQuestLetterName with the original `(type,index,flag,title,clockName,counterName,icon,clockValue,counterValue)` arguments. RefreshQuest follows state changes or the translation callback, including END.
|
||||
- Replaced all six quest placeholders: GetQuestCount, GetQuestData, GetQuestIndex, GetQuestLastTime, Clear, Add. Add's BEGIN duplicate guard differs from wire BEGIN exactly as the source does; Add's END/unknown types do nothing. Getters use array indices; invalid indices raise RuntimeError. Original tuple/string/signed-value semantics retained, with portable image handles replacing Win32 pointers and the original explicit/default icon paths.
|
||||
- Header size/offset and all seven flags are extracted directly from the original source by generate_ava2_item_oracle.py and compared in windows_item_oracle_test.
|
||||
- Malformed flagged payload lengths are bounded before subsequent packet reads. This avoids reproducing the original cross-packet read on corrupt declared sizes.
|
||||
- Timer uses elapsed monotonic application seconds. Original virtual/frame-timer mode is not ported or verified. Missing icon resources yield handle0 through the existing resource adapter. This is task-list state parity, not full quest script interpreter/UI rendering parity.
|
||||
- tests/quest_test.cpp verifies wire fragmentation plus following ping, signed counter values, packet BEGIN replacement/reordering, Python BEGIN duplicate retention, UPDATE empty strings/clock flags, negative/expired countdowns, high DWORD Python IDs, invalid array indices, multilingual callback-to-Add flow, END, Clear and malformed state preservation.
|
||||
- tests/check_completion.py now wraps ava2.python and ava2.quest. Both a zero process status and final success marker are mandatory. Manual harness fixtures verify early exit(0) fails and a nonzero exit containing the marker also fails.
|
||||
Validation: macOS build and Android arm64 libmain.so passed; quest and source oracle CTests passed. Existing comprehensive python_test passed through the wrapper using the prepared resource overlay, with final success marker present. python_view/login_loopback passed with local socket binding allowed. Nonvisual suite has four outstanding default-environment failures; render_3d still excluded. Correcting the previous description: speedtree_forest fails its canopy sway assertion, not a missing-file assertion; the other three failures involve asset/map/locale lookup. Reference hash verification925/925; packet constant audit211/0. Regenerated inventories: active method-table comparison597 overlapping placeholders (method-name coverage is not implementation parity); wider static inventory789 placeholders. The quest module lives in original PythonQuest.cpp rather than *Module.cpp, so its six replacements are covered by the dedicated regression, not that active method-table count.
|
||||
Remaining skipped GamePhase headers:47,74,75,93,114,156,171,217,220,221,230. Existing guild/messenger/offline-shop/system stores, quest script interpreter, configurable assets, visual effects/rendering and real server/device verification remain incomplete. No AVA2 reference or existing server changed.
|
||||
|
||||
### 2026-10-06 (pass 5): messenger and cube renewal state parity
|
||||
Source basis: AVA2 PythonMessenger.cpp/.h, PythonCubeRenewal.cpp/.h, Packet.h declarations/enums and PythonNetworkStreamPhaseGame.cpp::RecvMessenger/RecvCubeRenewalPacket/CubeRenewalMakeItem/CubeRenewalClose.
|
||||
- Messenger GC74: original LIST, LOGIN, LOGOUT and MOBILE handling. All insert list membership, including offline friends. LIST connected bits select OnLogin/OnLogout then optional OnMobile(group0,name,1); explicit MOBILE preserves BYTE state. LOGIN calls RefreshTargetBoardByName after OnLogin. Case-sensitive set membership retained. INVITE/unknown subheaders have no handler and leave payload bytes for the stream dispatcher as Windows does.
|
||||
- Five messenger bindings now execute native state. RemoveFriend does not send a network request or callback; Destroy clears both lists without dropping the handler. Original no-message Py_BuildException argument failures return None. Native guild operations implement append-once/default-offline, login/logout, unconditional removal callbacks and sorted replay; GC75 is not yet connected. Replay copies the map to safely handle callback mutation instead of reproducing invalidated C++ iterators.
|
||||
- Cube GC221: fixed167-byte frame,165-byte original recipe, ordered vector append including duplicate recipe IDs. OPEN goes to the game phase window; LOADING uses the cube handler; CLEAR empties the list and retains that handler. Unknown subheaders consume the fixed frame without state changes.
|
||||
- Five cube bindings now implement count, original16-element GetDates tuple, handler registration, craft and close. Missing/negative array indices return the original15-zero + "None" tuple; missing argument returns None. Preserve Win32 signed DWORD values in Python getters and DWORD wrapping in requests. CG216 is10 bytes; craft sub4 carries index/count, close sub5 zeroes original undefined trailing fields. Both retain the original CanAct guard and sequence queue behavior.
|
||||
- Safety adaptations: own/release callback references across replacement/runtime teardown; bound messenger names to24 bytes and declared frame lengths; bound cube category to100 bytes; use a BYTE for the incoming bool representation and normalize it on query. These avoid original raw-pointer/stack-overwrite/out-of-bounds/invalid-bool behavior without inventing normal gameplay semantics.
|
||||
- Extended source extraction oracle compares original messenger structures/enums, cube structure sizes, every recipe offset and all cube subheaders. Wire fields use explicit Win32 widths; outgoing cube requests are serialized byte by byte.
|
||||
- tests/messenger_test.cpp covers split LIST+ping, mixed connection bits, signed/mobile255 state, membership during callbacks, login target refresh order, case sensitivity, deletion, sorted guild replay, clearing/handler retention, INVITE behavior, malformed lengths, raising callbacks, handler weakref ownership and a second clean runtime.
|
||||
- tests/cube_renewal_test.cpp covers literal167-byte fragmented recipe+ping,16-field signed tuples, duplicate append, open/loading/clear callbacks, invalid indices/arguments, exact CG bytes including high DWORD values, missing/controlled main actor gates, handler replacement and runtime reset.
|
||||
Validation: macOS and Android arm64 library builds pass; messenger/cube/quest/declaration-oracle tests4/4 pass. Nonvisual suite19/23 with the same four outstanding failures; comprehensive python_test passes in the prepared asset overlay with both zero exit and completion marker. render_3d remains excluded/unverified; no live server/device test. Packet audit214/0;925 reference hashes unchanged. Regenerated static inventory780 placeholders; active *Module.cpp-only method inventory remains597 (these two reference modules, like quest, are outside that glob). Remaining skipped GamePhase headers47,75,93,114,156,171,217,220,230. Full client parity remains incomplete.
|
||||
|
||||
### 2026-10-06 (pass 6): shop-search receive, query APIs and outgoing request
|
||||
Reference: PythonPrivateShopSearch.cpp/.h, Packet.h::packet_offline_shop_item/packet_priv_shop_item_set/command_shop_search, PythonNetworkStreamPhaseGame.cpp::RecvShopSearchSet/SendPrivateShopSearchInfo and PythonNetworkStreamModule.cpp::netSendPrivateShopSearchInfo under AVA2 Windows active feature guards.
|
||||
- GC156 reads the5-byte header, WORD record count and active128-byte item records. Decode all original Win32 fields including signed64 price, signed32 count/sockets,15 BYTE/signed16 attributes, status, seller and owner. Validate count against declared frame length before reading records; append only after the complete record block is read. Do not clear results on a new reply. Set a pending refresh flag, replayed once after the current receive batch and existing status refresh; zero-result replies also refresh.
|
||||
- Replaced all12 active privateShopSearch bindings. Preserve signed DWORD Python conversion, literal"^" new-name result, invalid attribute zero tuple and too-large socket None result. ClearSearchItems clears the vector without a callback. Transmutation/perma bindings removed because WJ_CHANGELOOK_SYSTEM/ENABLE_PERMA_ITEM are inactive. Invalid record indices and negative sockets raise RuntimeError rather than allowing vector::at exceptions to escape or out-of-bounds reads; seller strings are bounded to25 bytes.
|
||||
- net.SendPrivateShopSearchInfo parses the original19 arguments, serializes89 bytes with explicit widths/field order (sex before enchant/alchemy on wire despite different Python argument order), and applies CanAct. SendUnsequenced preserves the original absence of SendSequence. Valid text is copied with deterministic zeroed padding; >49 bytes raises ValueError rather than reproducing strcpy overflow. Prices remain signed64.
|
||||
- Original-source oracle compares record/header/request sizes and all item/request offsets with the active Windows declarations. tests/shop_search_test.cpp independently builds literal128-byte records and89-byte requests, tests fragmentation+following ping, batch refresh, append/duplicate/empty replies, high DWORD IDs, negative price/count, last socket/attribute, seller/name behavior, active exports, malformed count state preservation, handler-visible results, exact unsequenced send bytes, action gates, text bounds and runtime reset.
|
||||
- Global refresh throttle is still not ported: Windows sets the next refresh time to+500ms after a search refresh. Existing CheckPacket intentionally retains the reference's WORD dynamic framing even for this DWORD-size header; replies beyond65535 bytes and that reference edge case are not verified. No real-server search or rendered search UI claim.
|
||||
- Fixed tools/audit_ava2_python_interfaces.py to discover .cpp module registration regardless of filename. Report now covers47 modules (previous29), with726 overlapping placeholder methods and7 missing guild_ranking methods: Close,CountDate,GetPageCount,GetPageView,InfoDate,Open,SetPageCount. This larger count exposes prior omissions. quest/messenger/cube/search have zero missing/extra/placeholder methods in the expanded audit. This is name coverage, not behavior verification.
|
||||
Validation: macOS build and Android arm64 libmain.so pass. Five targeted CTests pass; full nonvisual20/24 with the same four baseline failures; comprehensive python_test passes through completion verification in the prepared asset overlay. render_3d remains excluded. Packet constants216 checked/0 mismatches;925 reference hashes unchanged; static placeholders765. Remaining skipped GamePhase headers47,75,93,114,171,217,220,230, plus the documented native systems/rendering/asset/server/device gaps. No reference files or existing server changed.
|
||||
|
||||
## 2026-10-06 pass7 — guild receive and Python state
|
||||
- Added the34 original compiled guild methods and all actual RecvGuild subheader branches;31 guild placeholders and net's guild-ID placeholder replaced. Preserve original cache insertion, tuple/sentinel behavior, member update/sort/statistics quirks, skill slots, authority mask and native/Python Destroy distinction.
|
||||
- GC75 now supplies messenger guild membership/login/logout/removal, immediate target/invite/war callbacks and deferred page refreshes in the reference order. Main actor guild changes update net.GetGuildID and the matching character-selection roster; name-based remove-member sending uses the real PID.
|
||||
- Win32 guild structures/enums/offsets are checked against source-extracted declarations. New guild_test validates state, embedded Python and literal fragmented/coalesced wire fixtures, including bounded malformed packets.
|
||||
- GVG keys are present; ChangeGVG text-tail/name colours remain a documented gap. Guild protocol/API coverage does not imply full combat/UI parity.
|
||||
- Interface audit now filters original .cpp files by Windows vcxproj compilation entries:46 modules,0 missing methods,694 overlapping placeholders; guild/quest/messenger/cube/search have no missing/extra/placeholder method names. Previous guild_ranking missing names were a false positive from orphan source.
|
||||
- Corrected the earlier refresh-throttle claim: the reference early-return guard is commented out. Its300/500ms timestamp assignments have no active throttling effect.
|
||||
- Builds pass on macOS Debug and Android arm64. Targeted tests6/6; full nonvisual CTest21/25 with the same four existing failures. The comprehensive Python test passes in the prepared asset overlay after replacing its outdated skipped-GC75 fixture with GC47. Static inventory733 placeholders;217 packet constants match;925 reference hashes unchanged. Remaining skipped game headers47,93,114,171,217,220,230; render_3d remains excluded/unverified.
|
||||
|
||||
## 2026-10-06 pass8 — battle pass
|
||||
- Replaced all8 battlepass placeholders. GC230 now dispatches the original two independent append-only lists, time, clear modes and loading/game callbacks. GetDates/GetDatesCount/GetDatesItems preserve original tuple shapes, defaults and signed values; invalid negative reward slots are bounded.
|
||||
- CG230 OPEN/REWARD encode6 Win32 bytes with the original CanAct and SendSequence behavior; OPEN undefined padding is zeroed. Owned Python handler references survive list clears and release on replacement/runtime teardown.
|
||||
- Literal fragmented/coalesced packet fixtures and source-extracted structure/enum/offset oracle checks pass. macOS Debug and Android arm64 builds pass; targeted7/7 and full nonvisual22/26 tests, with the four previously documented failures unchanged. Comprehensive Python regression passes in the prepared asset overlay. Static inventory725 placeholders, compiled-interface placeholders686,219 matching packet constants and925 unchanged reference files. Remaining skipped GamePhase headers47,93,114,171,217,220; full gameplay/rendering parity remains incomplete.
|
||||
|
||||
## 2026-10-06 pass9 — drop item search
|
||||
- Ported all8 drop_item methods, including the former hidden GetDates no-op. GC220 supplies ordered results and original clear/page/game/loading callback behavior; signed values, defaults and100-byte name bounds are verified.
|
||||
- CG215 OPEN/SEARCH use6 explicit Win32 bytes, original CanAct and SendSequence; undefined OPEN vnum padding is zeroed. Registered Python handlers survive clears and release on replacement/runtime teardown.
|
||||
- Literal fragmented/coalesced wire/native/Python tests and source-extracted protocol oracle pass. macOS Debug and Android arm64 builds pass; targeted8/8, full nonvisual23/27 with four existing failures unchanged, comprehensive Python regression passes in the prepared resource overlay. Static placeholders718, compiled-interface placeholders679,221 matching packet constants,925 unchanged reference files. Remaining skipped GamePhase headers47,93,114,171,217. Full gameplay/rendering parity is incomplete.
|
||||
|
||||
## 2026-10-06 pass10 — dungeon information
|
||||
- Replaced all12 dungeon_info methods and removed six fabricated dungeon entries/11-field query data. Original GC217 data drives the21-field info, mission and ranking queries, page behavior and original signed/default values.
|
||||
- Ported independent list clears, mission-send ranking-clear fallthrough, immediate game callbacks and all four CG213 requests with explicit6-byte Win32 encoding, CanAct and SendSequence. OPEN undefined index padding is zeroed; fixed strings are bounded.
|
||||
- Literal fragmented/coalesced packet/state/Python tests and source-extracted structure/enum/offset oracle pass. macOS Debug and Android arm64 builds pass; targeted9/9, nonvisual24/28 with four known failures unchanged. Comprehensive Python regression passes in the resource overlay. Static placeholders710, compiled-interface placeholders671,223 matching packet constants,925 unchanged reference files. Remaining skipped game headers47,93,114,171; full gameplay/rendering parity remains incomplete.
|
||||
|
||||
## 2026-10-06 pass11 — switchbot
|
||||
- Replaced9 existing but behaviorally incorrect switchbot methods: remove local fake run-state transitions and fabricated attribute lists/maxima; use GC171 table/item/server map state and actual player item-proto classification. Preserve internal6/exposed5 slots, BYTE/short conversions, original ClearSlot finished retention, sorted/deduplicated attribute map and32-bit max versus16-bit list values.
|
||||
- Item updates ignore packet vnum, retain existing item fields and update all8 sockets/15 attrs. Player-window RefreshInventory occurs after count update and before socket/attribute changes; phase-window item refresh follows. CG171 start/stop match original Win32 bytes/sequencing, absence of action guard and slot6 boundary/header-size quirk.
|
||||
- Original-source struct/enum/offset oracle and literal native/Python wire tests, including isolated generated item-proto classification fixtures, pass. macOS Debug and Android arm64 builds pass; targeted10/10, full nonvisual25/29 with the same four known failures. Comprehensive Python regression passes in the prepared resource overlay.225 matching constants,925 unchanged references. Static710/compiled671 placeholder counts are unchanged because the old functions were not named dummy; behavior still differed substantially. Remaining skipped game headers47,93,114; full parity remains incomplete.
|
||||
|
||||
## 2026-10-06 pass12 — item shop
|
||||
- GC93 now executes the original dragon-coin/log/item/catalog receive branches and game-window callbacks. Preserve64-bit prices/sales, signed DWORD values, original callback order, duplicate entries and per-category main-page opening/sentinel/zero-category behavior. No invented native item-shop store or extension API.
|
||||
- BUY/RELOAD/LOG_ADD/unknown payload remains for the dispatcher as Windows does; malformed lengths/counts and unterminated strings are bounded. Original Python UI/chat-based requests remain unchanged, so full rendered store interaction parity is still unverified.
|
||||
- Literal fragmented/coalesced callback tests and source-extracted Win32 structure/enum/offset oracle pass. macOS Debug and Android arm64 builds pass; targeted11/11, nonvisual26/30 with the same four known failures. Comprehensive Python regression passes in the resource overlay.226 matching constants,925 unchanged reference files; static710/compiled671 placeholder counts unchanged. Remaining skipped headers47,114; full client parity remains incomplete.
|
||||
|
||||
## 2026-10-06 pass13 — offline shop
|
||||
- GC47 now drives original shop item/metadata state and START/END/UPDATE/scalar/error callbacks. Replaced27 active PythonShop.cpp offline placeholders; preserve reversed logs, vnum-gated lookup, missing strings, Clear behavior, signed values and64-bit money/flags. Original IsOfflineShop is never set and remains0; CHECK_RESULT alone updates HasOfflineShop.
|
||||
- Stock replacement/deletion/price query and display sorting feed explicit Win32 CG58 build requests; CG57 decoration uses the original58+52-byte layout. No action gate or local server-success state is invented. Uninitialized bytes are zeroed, strings bounded, decoration text copied literally and malformed records rejected safely.
|
||||
- Original-source struct/enum/offset oracle and independent fragmented/coalesced wire/state/Python fixtures pass, including second-tab updates and zero-price logs. macOS Debug and Android arm64 builds pass;12 targeted tests pass, nonvisual27/31 with four existing failures.228 matching constants,925 unchanged references;683 static/644 overlapping compiled-interface placeholders remain,0 missing names across46 compiled original modules. Comprehensive Python regression passes in the prepared resource overlay. Remaining skipped header114; full client parity is incomplete.
|
||||
|
||||
## 2026-10-06 pass14 — item sound and equipment request guards
|
||||
- Ported original use/drop filename category state and selection, replacing2 item extension no-ops. Retain silent USE_POTION client use, separate native server-potion helper, bow/arrow/quiver, body/neck/ear, ability-up/talisman rules, missing-item suppression and selected-item retention.
|
||||
- Inventory use/move and safebox/mall requests now call original sound paths before send. Equipment requests retain exchange/shop/attacking restrictions and original source-cell-only rule; CanAct suppresses sound/send. No new drop/pickup/use-to-item sounds.
|
||||
- Independent24-category item-proto fixtures, generated WAV playback/cache evidence, source enum oracle and guarded packet/notification tests pass. macOS Debug and Android arm64 builds pass;13 targeted tests and comprehensive Python overlay regression pass. Nonvisual28/32 with four previous failures;681 static/642 compiled-interface placeholders remain.228 matching constants,925 unchanged references. GC114 remains skipped; full bone/effect/audio/device equivalence and full client parity remain incomplete.
|
||||
|
||||
## 2026-10-07 pass15 — item database and resource data
|
||||
- Removed7 fabricated item records, automatic item_names/list reads, inferred list-column types and hardcoded model fallbacks. Ported native original item-list/description loaders and ordered prototype icon fallback; selected/unloaded state, text/model/description/socket overwrites, failure retention and prototype sizes now follow AVA2.
|
||||
- Icon pixels no longer determine item grid size. Missing selected data raises; missing image returns Noname. Configured decoded-root image lookup and logical resource filenames now agree with the item loader instead of relying solely on process cwd.
|
||||
- Independent literal proto/TGA/list/description fixtures and related15 targeted tests pass. macOS Debug/Android arm64 builds and comprehensive Python overlay regression pass.925 immutable references unchanged;681 static/642 compiled-interface placeholders remain. Final nonvisual29/33 has the same four previously documented failures.228 protocol constants match. Full app.LoadLocaleData integration, complete resource/render lifecycle and full client parity remain pending.
|
||||
|
||||
## 2026-10-07 pass16 — locale data coordinator
|
||||
- app.LoadLocaleData now follows the original LoadLocaleData order, Destroy calls, fatal/non-fatal steps and integer result (item list/proto/desc, mob_proto, SkillDesc/SkillTable, pet_skill, insult, npc_wear, mob_scale, item_scale). Previously it was a no-op, so in-game item/mob/skill/pet data never loaded through the original path.
|
||||
- petskill module + RegisterSkillPet, CInsultChecker with net.LoadInsultList/IsInsultIn/IsChatInsultIn and the received-chat '*' filter, LoadMobScale, LoadNPCWear and LoadItemScale ported as data stores.
|
||||
- Not yet consumed: NPC wear/item scale renderer paths, CPythonWiki::ReadData; YMIR cvt tables intentionally skipped (EUROPE).
|
||||
- macOS Debug/Android arm64 builds and comprehensive Python overlay regression pass. Nonvisual 29/33 (render_3d excluded: timeout) with the four existing failures; 228 constants, 925 references unchanged, compiled-interface placeholders 642 -> 634.
|
||||
|
||||
## 2026-10-07 pass17 — GC114 effects, name colours, NPC wear, wiki, receive buffer
|
||||
- GC114 special/specific effects, the CInstanceBase effect table, bone/root attached effects and emoticons (1000 ms gate) are ported. The player-settings effect/emoticon/sound tables (236/12) are registered at app.Create, and the chrmgr effect/emoticon/name-colour bindings are no longer stubs. Name colours follow PVP/DUEL/GVG/party/empire mode, and text tails refresh on those events.
|
||||
- NPC wear is applied in AppendActor, using the Warp map name only, with no weapon/hair/sash for non-PCs. The sash keeps its refine effect (251) and item_scale row. chr.RaceToJob/RaceToSex, app text-file line APIs and the atof-style EffectData parser (Bezier control points) now match Windows.
|
||||
- CPythonWiki + CTextFileLoader are ported: ReadData (refine/item_proto/special_item_group/mob_drop_item), LoadMonster/ListReverse and all 22 methods, including the Windows IsBlackList argument bug. The output matches the real locale/common data.
|
||||
- The 128 KB game receive buffer now applies back-pressure, as Windows CNetworkStream does, instead of failing. DWORD-size packets frame by WORD in both clients.
|
||||
- Results:
|
||||
- macOS/Android builds pass, and the comprehensive Python overlay regression passes.
|
||||
- Nonvisual CTest is 29/33 (render_3d excluded: timeout).
|
||||
- 229 constants match, and the 925 references are unchanged.
|
||||
- Compiled-interface placeholders went from 634 to 618.
|
||||
- Remaining:
|
||||
- Sash/NPC-wear mesh attachment and the item-scale renderer.
|
||||
- Fly/race-motion settings and HAIR_COLOR_ENABLE.
|
||||
- Wiki: MIPT/unordered order/OOB differences.
|
||||
- Resource/audio lifetimes, device/server equivalence and render_3d.
|
||||
|
||||
## 2026-10-07 pass18 — race/shape/hair/weapon/sash model mounting
|
||||
- The fake race/weapon/hair path helpers are gone. CRaceData/CRaceManager (.msm shape/hair/skins, bones, npclist, motlist) are ported, and app.Create loads npclist plus the eight player races.
|
||||
- CInstanceBase::Create/ChangeArmor/ChangeWeapon/ChangeHair/SetSash order and gates now match Windows: the NPC-wear path, the PC-only parts, `!IsPC && race > 8`, animal-wear/wedding-dress weapons, ArmorVnumToShape and m_awPart. CActorInstance AttachWeapon follows the hand rules (dagger/bow/fan) and keeps stale slots, as Windows does. AttachSash uses `Bip01 Spine2` with its own motion and the sash-only item_scale. app.SetHairColorEnable/SetArmorSpecularEnable are wired, and weapon effects use the race bones.
|
||||
- Results:
|
||||
- macOS/Android builds pass, and the Python regression passes with real-asset mount assertions.
|
||||
- CTest is 29/33 (render_3d excluded: timeout).
|
||||
- The 229 constants and 925 references are unchanged, and interfaces are 618/46/0.
|
||||
- Remaining:
|
||||
- Most AVA2 gr2 are BitKnit-compressed, which libgr2 cannot decode, so the meshes do not draw yet.
|
||||
- Specular/LOD/trace/refine/shining are not ported.
|
||||
- The bow motion mode, PC motion registration, tree races and the chr preview path table.
|
||||
|
||||
## 2026-10-07 pass19 — BitKnit2 gr2 decompression
|
||||
- Granny 2.11 format 4 is BitKnit2, not BitKnit. libgr2 now decodes it (`shared/gr2/src/bitknit2.cpp`, MIT provenance BG3ModStudio, cross-checked against ooz), including the compressed pointer-fixup tables.
|
||||
- Results:
|
||||
- All 6406 BitKnit2 gr2 in the AVA2 pack tree load, with 10833 sane meshes.
|
||||
- The warrior shape/hair/weapon/sash now draw with the .msm skins applied (python_test asserts this).
|
||||
- macOS/Android builds pass.
|
||||
- CTest is 29/33 (render_3d excluded: timeout).
|
||||
- The 229 constants and 925 references are unchanged, and interfaces are 618/46/0.
|
||||
- Remaining:
|
||||
- 156 64-bit/big-endian gr2 are still rejected.
|
||||
- Oodle0 and BitKnit v1 are unimplemented (no AVA2 samples).
|
||||
|
||||
## 2026-10-07 pass20 — 64-bit gr2 + curve2 animation curves
|
||||
- **64-bit gr2.** libgr2 now loads 64-bit little-endian Granny files. Only pointer slots inside section data are 8 bytes, which changes the type-def entry size, member sizes and in-member offsets. All 156 previously rejected AVA2 files load (plechi_* zones/bosses, shadow_dragon, some weapons).
|
||||
- **curve2 animation.** Granny 2.11 `curve2` animation curves are decoded: constants, float and keyframe splines, K16u/K8u quantised curves, and D4n compressed quaternions (19 variants, all 17 used by AVA2). They cover 3111 32-bit and all 59 64-bit animation files, which previously left the compressed bones at bind pose.
|
||||
- **Results:**
|
||||
- 16725/16725 gr2 load.
|
||||
- Decoded quaternions are unit length and their bind-angle distribution matches the float curves.
|
||||
- python_test asserts that shadow_dragon run animates.
|
||||
- macOS/Android builds pass.
|
||||
- CTest is 29/33 (render_3d excluded: timeout).
|
||||
- The 229 constants and 925 references are unchanged, and interfaces are 618/46/0.
|
||||
- **Remaining:**
|
||||
- Big-endian, Oodle0 and BitKnit v1 (0 samples).
|
||||
- Keyframe curves step per TimeStep.
|
||||
- No render_3d visual check.
|
||||
|
||||
## 2026-10-07 pass21 — render_3d timeout
|
||||
- **Cause.** The software renderer `Gr2SceneRenderer::RenderDraw` had a leftover outer per-triangle loop, so each mesh was rasterised `num_tris` times (O(n²)). This took about 11–26 s per frame and 126 s per test run. It also over-composited blended and additive draws. That loop has been removed. The Windows client draws through D3D, so the GPU path was never affected.
|
||||
- **Environment.** `tools/make_test_rundir.py` builds a merged client-root run directory. `AVA2_TEST_RUNDIR` and `AVA2_PACK_MAKER` replace the `/Users/shen` paths. When the assets are missing, the test is skipped (exit 77).
|
||||
- **Results:**
|
||||
- render_3d takes 2.3 s under CTest's 15 s timeout.
|
||||
- Full CTest is 30/34, with the same four environment failures.
|
||||
- python_test passes, and the macOS/Android builds pass.
|
||||
- The 229 constants and 925 references are unchanged, and interfaces are 618/46/0.
|
||||
|
||||
## 2026-10-07 pass22 — the four environment test failures
|
||||
- **Parity fix.** `PyTuple_GetPointer` used to fail on any pending Python error. ScriptLib `Py_BuildException("msg")` leaves an error set while returning None, so after a missing image every later wndMgr handle lookup returned None (NewGoldWindow `board.GetWidth()` → None). Windows `PyTuple_GetInteger` ignores pending errors. The helper now preserves the earlier error and checks only its own conversion.
|
||||
- **Environment.** `tools/make_test_rundir.py` now builds the client root from the `*_create.xml` ArchivedPath manifests (python-root first; then PC, ETC, root and the rest; first wins), plus `map`, `mark` and `svside`. ava2.python, window_tree, render_3d and mark_manager all run from `AVA2_TEST_RUNDIR` and skip (77) without it. The speedtree_forest wind test now samples the highest canopy vertex instead of the bottom one.
|
||||
- **Results:**
|
||||
- CTest is 34/34.
|
||||
- python_test passes, and the macOS/Android builds pass.
|
||||
- The 229 constants and 925 references are unchanged, and interfaces are 618/46/0.
|
||||
|
||||
## 2026-10-07 pass23 — event module and simple lookups
|
||||
- **event.** This is a line-by-line port of CPythonEventManager plus script::Group (`src/python_event_manager.cpp`, `src/eter_lib/parser.cpp`).
|
||||
- All original methods are registered, including AddEvent; GetTotalLineCount is not, as in the original.
|
||||
- The button constants are fixed to NEXT/DONE/CANCEL = 0/1/2. The old placeholder had CANCEL=0 and NEXT=2.
|
||||
- The script packet now runs the real event set and opens the quest window through `OpenQuestWindow`.
|
||||
- SelectAnswer and QuestButtonClick send CG 29 and CG 66.
|
||||
- The quirks are kept: the elapsed time is subtracted twice, and the DWORD confirm-wait time goes negative after it expires.
|
||||
- **Lookups:**
|
||||
- item.GetApplyPoint uses aApplyInfo, generated from the original.
|
||||
- player.SlotTypeToInvenType.
|
||||
- app.GetRandom uses the EterBase Park–Miller generator.
|
||||
- nonplayer.GetResist.
|
||||
- player GetGuildID/GetGuildName/GetPKMode/IsGameMaster/GetRace/GetJob/GetEXP/GetConquerorEXP/Get/SetPlayTime.
|
||||
- **Still different:**
|
||||
- GetTargetVID: there is no target system yet.
|
||||
- Event camera and minimap atlas signals have no effect.
|
||||
- There are no real font metrics.
|
||||
- Apply types 176–179 return 0 (Windows reads out of bounds).
|
||||
- CheckStackReference is not ported.
|
||||
- **Results:**
|
||||
- CTest is 35/35, including the new ava2.event.
|
||||
- python_test passes, and the macOS/Android builds pass.
|
||||
- The 229 constants and 925 references are unchanged.
|
||||
- Interfaces are 590/46/0 (was 618), and the inventory has 629 placeholder bindings (was 657).
|
||||
|
||||
## 2026-10-07 pass24 — chat module
|
||||
- **chat.** This is a line-by-line port of CPythonChat and CWhisper (`src/python_chat.cpp`), using the __CHAT_SETTINGS__ and ENABLE_MULTILANGUAGE_SYSTEM build.
|
||||
- All 33 original methods replace the placeholders.
|
||||
- It has per-set line stores keyed by BYTE, and per-set mode and country filters.
|
||||
- It ports the 300-line cap, the `#ebvs` drop, item-link renaming, the SHOUT lang/empire prefixes with flag images, and the VIEW/EDIT/LOG board updates.
|
||||
- It also ports delayed chat, whispers, the ignore set and GetLinkFromHyperlink.
|
||||
- **Server path.** RecvChatPacket now calls `CPythonChat::AppendChat`, as on Windows. The temporary chat callback is removed.
|
||||
- **Quirks kept:**
|
||||
- IsIgnoreCharacter returns None.
|
||||
- CreateChatSet(256) aliases set 0's store.
|
||||
- Country-muted shouts still count toward the window size.
|
||||
- Update on an unknown set skips the delayed flush.
|
||||
- **Guards where Windows has undefined behaviour:**
|
||||
- A zero step.
|
||||
- Out-of-range mode indexes.
|
||||
- A hyperlink with no ':' or an odd attribute count.
|
||||
- A whisper position above 1.0.
|
||||
- The uninitialised whisper lineCount.
|
||||
- **Still different:**
|
||||
- There are no real fonts: no missing-font drop, no GM italic font, and no whisper clip rectangle.
|
||||
- Flag images are looked up without IsFileExist.
|
||||
- CheckStackReference, ChangeIcon and AppendMonsterList are not ported.
|
||||
- **Results:**
|
||||
- CTest is 36/36, including the new ava2.chat.
|
||||
- python_test passes, and the macOS/Android builds pass.
|
||||
- The 229 constants and 925 references are unchanged.
|
||||
- Interfaces are 557/46/0 (was 590), and the inventory has 596 placeholder bindings (was 629).
|
||||
## 2026-10-07 pass25 — systemSetting, skill, miniMap, chr/chrmgr
|
||||
- **systemSetting.** CPythonSystem + all 58 module methods: metin2.cfg/interface.cfg formats, display modes, SetConfig/GetConfig.
|
||||
- **skill.** The 21 PythonSkill.cpp methods: RegisterSkill files, skilldesc icon paths, requirement data, icon images/instances, GetGradeData, TEST.
|
||||
- **miniMap.** CPythonMiniMap (`src/python_minimap.cpp`) + the 27 module functions; LoadAtlas, point marks, Update, observers, targets, guild areas, way/signal points, GetInfo/GetAtlasInfo. RegisterColor (not in Windows) removed.
|
||||
- **chr / chrmgr.** `src/python_chr.cpp` ports all 80 chr and 37 chrmgr methods onto NetworkActorManager/RaceManager; the stand-in instance table is gone. Original error styles, rotation conversions, CreateInstance's "y" bug, no-instance answers, GetVIDInfo format and SetPathName guard are kept. chr.RequestPetName is absent (NEW_PET_SYSTEM off).
|
||||
- **Still different:**
|
||||
- systemSetting: no shadow/gamma/cursor/mob-info refresh; SDL display modes; Android config path.
|
||||
- skill: (None, 0) requirement quirk; emulated GetGradeData varargs; lazy icons; grpImage placeholder.
|
||||
- miniMap: no rendering; no guild-area overlay, symbol download or target effect.
|
||||
- chr: no pick pass, render modes, bounding spheres, weapon trace, horse actor, motion blending, fade-out or dead list; Hide/Show use a flag; SetDirection null guard; testSetRideMan VID 1.
|
||||
- **Results:**
|
||||
- CTest is 40/40 (new ava2.system_setting, ava2.skill, ava2.minimap, ava2.chr).
|
||||
- python_test passes, and the macOS/Android builds pass.
|
||||
- The 229 constants and 925 references are unchanged.
|
||||
- Interfaces are 370/46/0 (was 557), and the inventory has 402 placeholder bindings (was 596).
|
||||
|
||||
Reference in New Issue
Block a user