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,80 @@
{
"reference": "GameLib/ActorInstanceRotation.cpp",
"reference_sha256": "3705d581bf935985e3b0df1709cf94ee07afaaaf65698d1b4b25a1c3a334be80",
"priority": "P0",
"contracts": [],
"functions": {
"CActorInstance::SetXYRotation": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::SetXYRotation"
]
},
"CActorInstance::SetRotation": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::SetRotation"
]
},
"CActorInstance::BlendRotation": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::BlendRotation"
]
},
"CActorInstance::SetAdvancingRotation": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::SetAdvancingRotation"
]
},
"CActorInstance::RotationProcess": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::RotationProcess"
]
},
"CActorInstance::LookAtFromXY": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::LookAtFromXY"
]
},
"CActorInstance::LookAt": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::LookAt"
]
},
"CActorInstance::LookWith": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::LookWith"
]
},
"CActorInstance::GetRotation": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::GetRotation"
]
},
"CActorInstance::GetTargetRotation": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::GetTargetRotation"
]
},
"CActorInstance::GetRotatingTime": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::GetRotatingTime"
]
},
"CActorInstance::GetAdvancingRotation": {
"status": "PORTED",
"impl": [
"extension/src/port/GameLib/ActorInstanceRotation.cpp:CActorInstance::GetAdvancingRotation"
]
}
}
}