feat(network): align ping/pong and observer packets with Windows reference (pass30)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"reference": "upstream/ava2-client/UserInterface/Packet.h preprocessed with AVA2 Windows feature headers",
|
||||
"checked": 229,
|
||||
"checked": 233,
|
||||
"mismatches": [],
|
||||
"unmatched": []
|
||||
}
|
||||
|
||||
+19
-1
@@ -673,10 +673,28 @@ Validation: macOS build and Android arm64 libmain.so pass. Five targeted CTests
|
||||
- Eliminated Clang `constexpr switch` warnings in `nonplayer_value` template specialization (`src/python_native_modules.cpp`).
|
||||
- **Portable Asset Loading**:
|
||||
- Replaced developer absolute paths in `src/main.cpp` for `height.raw`, `tile.raw`, `attr.atr`, `metin2_map1.txt`, `property`, `water.wtr`, and `minimap.dds` with portable relative paths and safe fallbacks.
|
||||
- **Results:**
|
||||
- Results:
|
||||
- `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%)** including `ava2.render_3d`.
|
||||
- Android arm64 `libmain.so`: builds cleanly with 0 warnings.
|
||||
- macOS arm64 `ava2_client`: builds cleanly and runs 60fps game phase.
|
||||
|
||||
## 2026-10-07 pass30 — network protocol & observer stream alignment
|
||||
- **Ping/Pong Protocol**:
|
||||
- Replaced literal 44/254 handling in `src/eter_net/PythonNetworkStream.cpp` with `HEADER_GC_PING` and `HEADER_CG_PONG`.
|
||||
- Added `TPacketGCPing` and `TPacketCGPong` wire structures in `src/eter_net/Packet.h`.
|
||||
- Implemented `PythonNetworkStream::RecvPingPacket()` in `src/eter_net/PythonNetworkStreamPhaseGameRecv.cpp`.
|
||||
- **Observer Packet Handlers**:
|
||||
- Added `HEADER_GC_OBSERVER_ADD` (96), `HEADER_GC_OBSERVER_REMOVE` (97), and `HEADER_GC_OBSERVER_MOVE` (98) to `EPacketGC` in `src/eter_net/Packet.h`.
|
||||
- Defined `TPacketGCObserverAdd`, `TPacketGCObserverMove`, and `TPacketGCObserverRemove` packed wire structures.
|
||||
- Implemented `RecvObserverAddPacket()`, `RecvObserverRemovePacket()`, and `RecvObserverMovePacket()` in `PythonNetworkStreamPhaseGameRecv.cpp`, routing coordinates and VIDs directly to `CPythonMiniMap::Instance().{AddObserver, MoveObserver, RemoveObserver}`.
|
||||
- Updated `src/eter_net/Ava2GcPacketTable.inc` entries for 96, 97, and 98 to valid mapped packets.
|
||||
- **Wire Protocol Constants Clean-up**:
|
||||
- Refactored `src/protocol.cpp` to use named `HEADER_CG_*` constants instead of magic numbers.
|
||||
- **Results**:
|
||||
- Checked packet constants increased to **233**, 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` builds cleanly.
|
||||
|
||||
Reference in New Issue
Block a user