port 2V2-d.1: ActorInstance/InstanceBase closure creates the main character

Port the ActorInstance*/InstanceBase* siblings plus GameUtil, FlyTarget,
PhysicsObject, GameEventManager, WeaponTrace, MapUtil and lineintersect_utils
verbatim and drop their pending stand-ins; CGameEventManager and CPythonSystem
join PythonBoot in CPythonApplication member order.

Root cause of the intermittent Loading-phase header 7: TPlayerSkill::tNextRead
is time_t, 32-bit in 40250 (_USE_32BIT_TIME_T) but 64-bit on LP64, so
SKILL_LEVEL (76) was read as 2551 bytes instead of 1531. Packet.h now uses
LONG with a static_assert, and the fake server sends SKILL_LEVEL in Loading.

The fake server's CHARACTER_ADD now uses CHAR_TYPE_PC; port.login_flow
asserts the main instance exists with race 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-23 19:02:21 +09:00
co-authored by Claude Opus 5.5
parent 996d793f0c
commit 5266b00c6e
71 changed files with 13832 additions and 1405 deletions
@@ -0,0 +1,26 @@
{
"reference": "UserInterface/InstanceBaseEvent.cpp",
"reference_sha256": "93012ce251d92883a877bd7cb6cd5b84c82c35bdfc3f5a5452cd8de4c812697b",
"priority": "P0",
"contracts": [],
"functions": {
"CInstanceBase::GetEventHandlerRef": {
"status": "PORTED",
"impl": [
"extension/src/port/UserInterface/InstanceBaseEvent.cpp:CInstanceBase::GetEventHandlerRef"
]
},
"CInstanceBase::GetEventHandlerPtr": {
"status": "PORTED",
"impl": [
"extension/src/port/UserInterface/InstanceBaseEvent.cpp:CInstanceBase::GetEventHandlerPtr"
]
},
"CInstanceBase::SetEventHandler": {
"status": "PORTED",
"impl": [
"extension/src/port/UserInterface/InstanceBaseEvent.cpp:CInstanceBase::SetEventHandler"
]
}
}
}