feat: pass38 - FlyingManager indexed fly data, CPythonManagerBank wire integration, renderTarget 1:1 parity, and dynamic module resolver

This commit is contained in:
shen
2026-10-08 05:33:31 -07:00
parent 8d505c3d34
commit 83c7c5ad0b
13 changed files with 221 additions and 65 deletions
+29
View File
@@ -862,3 +862,32 @@ Validation: macOS build and Android arm64 libmain.so pass. Five targeted CTests
- `python3 tools/audit_ava2_python_interfaces.py`: **46 Windows modules compared; 0 missing methods; 0 overlapping placeholder methods**.
- CTest suite: **41/41 tests passed (100%)**.
- Android arm64 `libmain.so` and macOS arm64 `ava2_client` build cleanly.
## 2026-10-08 pass38 — FlyingManager indexed fly data, CPythonManagerBank wire integration, renderTarget 1:1 parity, and dynamic module resolver
- **`FlyingManager` Indexed Fly Data (`src/eter_effect/FlyingManager.{h,cpp}`, `src/python_native_modules.cpp`)**:
- Aligned `effect.RegisterIndexedFlyData` to parse all 3 parameters `(iIndex, iType, szFlyDataName)` matching upstream `UserInterface/PythonEffectModule.cpp`.
- Implemented `RegisterIndexedFlyData(index, type, filename)` in `FlyingManager` storing indexed entries in `m_indexedFlyData`.
- Extended `CreateFlyingInstance` to resolve fly models by index type fallback when packet data specifies fly indices.
- **`CPythonManagerBank` Singleton & Wire Integration (`src/python_manager_bank.h`, `src/eter_net/Packet.h`, `src/eter_net/PythonNetworkStreamPhaseGameRecv.cpp`, `src/python_native_modules.cpp`)**:
- Implemented `CPythonManagerBank` singleton matching upstream `UserInterface/PythonManagerBank.{h,cpp}`.
- Aligned `TAccountBank` field names in `src/eter_net/Packet.h` to upstream (`user_action`, `user_money`, `user_datetime`, `user_ip`, `user_recvmoney`) and added `using TPacketCGBank = TPacketGCBank;`.
- Wired `CPythonManagerBank::Instance().Append(p)` in `RecvAccountBankPacket()` when receiving `TPacketGCBank` packets from wire.
- Updated `bankLoadLogs` (`managerBankLogs.Append`) to query `CPythonManagerBank::Instance().BINARY_LoadLogs_Account(id)` and return 5-tuple logs to Python UI.
- **`renderTarget` Python Module Parity (`src/python_native_modules.cpp`, `src/python_app.{h,cpp}`, `src/python_gameplay_modules.{h,cpp}`)**:
- `renderTarget.Zoom`: Added mouse wheel direction handling (`app.CAMERA_TO_NEGATIVE` / `app.CAMERA_TO_POSITIVE`), calculating zoom ratio as `1.0f + GetCameraZoomSpeed() * float(iDirection)` matching upstream `CPythonRenderTargetModule.cpp`.
- Exposed `GetCameraZoomSpeed()` (`0.05f`) from `python_app.{h,cpp}`.
- `renderTarget.SetHair`: Added support for 3rd argument `isValue`. When `!isValue`, looks up `pItemData->GetValue(3)` via newly added `GetItemValue(vnum, 3, &val)` in `python_gameplay_modules.{h,cpp}`.
- `renderTarget.GetFreeIndex`: Aligned index search range `[iMin, iMax)` with fallback `iMin + 20`.
- `renderTarget.IsShow`: Aligned boolean query to `CRenderTarget::IsShow()`.
- `renderTarget.Destroy`: Added support for zero-argument invocation clearing all render targets via `CRenderTargetManager::Instance().Destroy()`.
- Aligned argument parsing across `SetScale`, `RotateEyeAroundTarget`, `SetModelV3Eye`, `SetModelV3Target`, and `SetMotionIndex`.
- **`impMgr` Dynamic Module Resolver (`src/python_native_modules.{h,cpp}`, `src/python_runtime.cpp`)**:
- Implemented `impMgr` module with `getModule(name)` and registered `initModuleNameManager()` in inittab matching upstream `UserInterface/PythonDynamicModuleNames.cpp`.
- **Class-by-Class Verification**:
- Verified `PythonApplicationWebPage.cpp`, `PythonPlayerEventHandler.cpp`, `ServerStateChecker`, `AffectFlagContainer`, `GuildMarkDownloader`/`GuildMarkUploader`, `PythonNetworkDatagram`, `PythonCombatZone`, `MovieMan`, `InsultChecker`, `PythonSkillPet`, `PythonSash`, `PythonMiniMap`, and `ServerCommand` handlers against upstream.
- **Results**:
- Checked packet constants: **395/395 (100%)**, 0 mismatches, 0 unmatched.
- `python3 tools/audit_windows_parity.py`: **0 placeholder bindings**.
- `python3 tools/audit_ava2_python_interfaces.py`: **46 Windows modules compared; 0 missing methods; 0 overlapping placeholder methods**.
- CTest suite: **41/41 tests passed (100%)**.
- Android arm64 `libmain.so` and macOS arm64 `ava2_client` build cleanly.