59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
624 lines
40 KiB
Markdown
624 lines
40 KiB
Markdown
# World entry and movement integration
|
|
|
|
Status: real Turtle backend world login verified; Forever world entry is experimental
|
|
and not yet verified. The proven regionwide character-selection path remains the default.
|
|
Recovery tag: `checkpoint-character-selection-298b4a4`. A fresh private database/config
|
|
backup is in `recovery/20261014T043226Z`; restore instructions remain in LOCAL_INTEGRATION.md.
|
|
No executable, reference source, server config or server binary changed for this work.
|
|
|
|
## Source audit
|
|
|
|
F = `/home/praxis/Projects/WoW-Hybrid/servers/trinity-forever`.
|
|
T = `/home/praxis/Servers/tortoise-wow`.
|
|
|
|
* F `src/server/game/Server/Packets/CharacterPackets.cpp::PlayerLogin::Read`:
|
|
packed GUID128, float FarClip, one RPE bit. The gateway compares the complete modern
|
|
identity with the freshly authenticated Turtle roster before extracting its counter.
|
|
T `src/game/Handlers/CharacterHandler.cpp::HandlePlayerLoginOpcode` consumes a raw
|
|
64-bit GUID and checks ownership. Gateway sends CMSG_PLAYER_LOGIN `0x03D` on the
|
|
same authenticated world socket used for enumeration; it never queries Forever characters.
|
|
* F `src/server/game/Handlers/CharacterHandler.cpp::HandlePlayerLoginOpcode` checks
|
|
legit character membership, then calls `SendConnectToInstance`. `HandleContinuePlayerLogin`
|
|
sends instance `ResumeComms` before database load. F
|
|
`src/server/game/Server/WorldSession.cpp::SendConnectToInstance` emits address/port,
|
|
account+connection-type+random key, native realm and token metadata. F
|
|
`src/server/game/Server/WorldSocket.cpp::HandleAuthContinuedSessionCallback` verifies a
|
|
24-byte HMAC-SHA512 proof with the primary session key and derives a new AES key;
|
|
`AuthenticationPackets.cpp::EnterEncryptedMode::Write` signs its enable message with
|
|
contextual Ed25519. Merely sending login verification on the realm socket has not
|
|
been shown to replace this instance handshake.
|
|
* T `CharacterHandler.cpp::HandlePlayerLogin`: LOGIN_VERIFY_WORLD `0x236` contains
|
|
map uint32, X/Y/Z/orientation float32 (20 bytes). F
|
|
`CharacterPackets.cpp::LoginVerifyWorld::Write` appends uint32 Reason (24 bytes).
|
|
The gateway's bounded decoder validates finite coordinates; initial-login reason is zero.
|
|
F `ClassicOpcodes.cpp::TranslateServerOpcode` maps retail `0x45002F` to observed-build
|
|
candidate `0x47002F` (no main-index insertion at this low index).
|
|
* T `src/game/Objects/Player.cpp::SendInitialPacketsBeforeAddToMap` sends rest/bind,
|
|
proficiency, tutorials, spells, action buttons, reputation, time/speed and mover setup.
|
|
`SendInitialPacketsAfterAddToMap` initializes zone/world states. F equivalents are in
|
|
`src/server/game/Entities/Player/Player.cpp`; their modern layouts must be translated
|
|
individually, rather than copying Turtle bytes under modern opcodes.
|
|
* T `src/game/Objects/UpdateData.cpp::BuildPacket`: block count uint32 + transport byte,
|
|
block stream; packets over 100 bytes use zlib with declared uncompressed size uint32
|
|
(`0x1F6`), otherwise `0xA9`. T `Object.cpp::BuildCreateUpdateBlockForPlayer`,
|
|
`BuildMovementUpdate`, `BuildValuesUpdate`: packed GUID64, type/update flags, conditional
|
|
movement, six speeds/splines, legacy indexed value mask and uint32 values. F
|
|
`src/server/game/Entities/Object/Object.cpp` and generated
|
|
`src/server/game/Entities/Object/Updates/UpdateFields.cpp` use modern object GUID128,
|
|
movement bit fields and separate typed ObjectData/UnitData/PlayerData/ActivePlayerData
|
|
masks. Legacy field indices cannot be reused. Player creation and modern typed masks
|
|
are required before the actual client can be considered in-world.
|
|
* T `Object.cpp::MovementInfo::Read/Write`: flags32, time32, XYZO, optional transport
|
|
GUID64/offset, swimming pitch, mandatory fallTime, optional jumping and spline elevation.
|
|
T `src/game/Handlers/MovementHandler.cpp::HandleMovementOpcodes` checks mover,
|
|
teleport/spline state, VerifyMovementInfo and server movement validation before relocation.
|
|
F `src/server/game/Server/Packets/MovementPackets.cpp::operator>>(MovementInfo&)`:
|
|
GUID128, flags64, time32, XYZO, pitch, step elevation, removed-force count, move index,
|
|
gravity modifier, optional-bit groups then transport/fall/inertia/flying/drive sections.
|
|
Transport, jump and flag mappings require explicit semantic conversion. Tortoise is to
|
|
remain authoritative; no client-side position or Forever DB row is a world-state source.
|
|
|
|
## Verified backend result
|
|
|
|
`gateway-probe ... --world-build 5875 --login Gatewaytest` independently authenticated
|
|
SRP (including server M2), enumerated 3 real characters and logged GUID 4509 in on the
|
|
retained socket. It received map 0, position (-8949.95,-132.493,83.5312), orientation 0,
|
|
LOGIN_VERIFY_WORLD and compressed player/nearby object updates. The 8-second capture
|
|
is private `runtime/turtle-world-probe.log`. This is not proof of Forever world entry.
|
|
|
|
## Actual client experiments
|
|
|
|
Actual WowB.exe 70334 was launched through the existing Wine prefix. The first encryption
|
|
attempt disconnected while its existing RAM key watcher initialized; retrying the same
|
|
process restored the real 3-character roster. Selecting Gatewaytest and clicking Enter
|
|
World sent `0x440129`, 36 bytes, and showed "Retrieving server information". Source
|
|
`BattlenetPackets.cpp::ChangeRealmTicket::Read` matches token32 + secret32, but the
|
|
provider's `ClassicClientOpcodes.inc` maps that number to QUICK_JOIN_SIGNAL_TOAST_DISPLAYED.
|
|
The regionwide realm-ticket handoff therefore stalls before CMSG_PLAYER_LOGIN.
|
|
|
|
Opt-in `GATEWAY_WORLD_EXPERIMENT=1` tests a realm-bound enum using the source's
|
|
CharacterInfoBasic + inline CharacterRestrictionAndMailData layout. The default
|
|
regionwide codec is preserved. This experiment currently translates only authoritative
|
|
login map/position, not object fields, inventory/spells or movement. Do not interpret
|
|
an enum, loading screen or backend login as completed Forever world entry.
|
|
|
|
## Further actual-client results
|
|
|
|
The local `realmlist` row for realm 70 has Region=70 and Battlegroup=1. Its address
|
|
is therefore `0x46010046`, not the earlier prototype `0x01010046`. The wrong region
|
|
permitted display but triggered a server-information lookup for a different realm.
|
|
The experiment now supplies the correct address. The realm-bound roster rendered
|
|
all real Turtle characters in the actual client, but login initially failed locally
|
|
with "Login for that race, class, or character is currently disabled". Keeping the
|
|
provider's race/class entitlement tail fixed that refusal. The provider account is
|
|
required to have ZERO normal/regionwide characters before its entitlement data is
|
|
accepted; no provider character records are copied into the translated response.
|
|
|
|
**Verified real chain:** WowB.exe sent PlayerLogin `0x440016`, 12 bytes. GUID128 decoded
|
|
to owned Turtle GUID 4509 (Gatewaytest). The retained SRP-authenticated Turtle session
|
|
received CMSG_PLAYER_LOGIN and supplied LOGIN_VERIFY_WORLD. Gateway sent translated
|
|
`0x47002F`, 24 bytes. WowB.exe displayed the Eastern Kingdoms loading screen at roughly
|
|
80%. Evidence: `evidence/actual-world-login-INCOMPLETE.log` and
|
|
`evidence/forever-70334-turtle-loading-INCOMPLETE.png`. This is NOT world-entry success.
|
|
|
|
The immediate missing packet is modern SMSG_UPDATE_OBJECT `0x5E0000`, containing the
|
|
self CREATE_OBJECT/CREATE_OBJECT2 block. F `BaseEntity.cpp::BuildCreateUpdateBlockForPlayer`
|
|
sets ThisIsYou/ActivePlayer and TYPEID_ACTIVE_PLAYER, writes 21 movement-presence bits,
|
|
then a length-delimited field section with visibility flags and entity fragments.
|
|
`BuildEntityFragments` shifts non-tag IDs by one for Classic. F
|
|
`Player.cpp::BuildValuesCreate` serializes ObjectData + UnitData + PlayerData +
|
|
ActivePlayerData. The latter includes Classic's 145 inventory GUID slots, skills,
|
|
character state and many counted/optional fields. Sending legacy indexed masks in
|
|
this position would be invalid. The self creation block has not yet been sent.
|
|
The source instance handshake described above is a potential additional dependency;
|
|
the actual client already begins loading on realm-socket login verification without it.
|
|
|
|
## Independent object and movement verification
|
|
|
|
The bounded C++ Turtle object decoder handles compressed/uncompressed blocks, packed
|
|
GUIDs, indexed values, creation/removal, conditional movement and six speeds, including
|
|
spline paths (T `Movement/spline/packet_builder.cpp::PacketBuilder::WriteCreate`).
|
|
A real world capture decoded a self player (101 nonzero fields), inventory items,
|
|
creatures and game objects. These are decoded backend records, not yet rendered in Forever.
|
|
|
|
A newly server-created disposable human warrior **Gatewaymove**, GUID 4512, was used
|
|
for a backend-only movement test. The prototype sent CMSG_SET_ACTIVE_MOVER `0x26A`,
|
|
MOVE_START_FORWARD `0xB5`, then MOVE_STOP `0xB7` with X+1 after 250 ms. Turtle acknowledged
|
|
logout. An independent SQL read of `tw_char.characters` showed X=-8948.95, Y=-132.493,
|
|
Z=83.5312, orientation=0, online=0 (initial X=-8949.95). The saved server position proves
|
|
Turtle accepted and persisted this limited movement. It does not prove actual Forever
|
|
movement. `evidence/backend-movement-state.txt` records the authoritative result.
|
|
Forever account 2 still has zero characters.
|
|
|
|
Grounded movement codecs convert GUID128, flags64 and the modern presence bits to/from
|
|
legacy flags32/time/XYZO/fallTime. Only forward/back/strafe/turn/walk is implemented;
|
|
transport, jumping, force removal, swimming and modern optional states reject explicitly.
|
|
They are not yet enabled as bidirectional actual-client movement synchronization.
|
|
|
|
Debug regression run: 468 offline checks, 14 localhost auth/roster fixtures, 2/2 CTest.
|
|
|
|
## Instance and self-create experiment
|
|
|
|
`ops/build_forever_create.py` builds an optional C++ serializer from the read-only
|
|
Trinity `WriteCreate` methods and types. The layout input hashes are pinned in
|
|
`FOREVER_SCHEMA_PROFILE.json`. Generated source carries Trinity's GPL notice;
|
|
`COPYING-FOREVER-SCHEMA` supplies the license. The helper runs no game server and
|
|
connects to no database. It uses Turtle's serialized self object and the authenticated
|
|
roster to populate GUID, name, race/class/sex, health, level, display, position, movement
|
|
speeds and XP. Inventory item creation, equipment and backpack slots are now translated. A synthetic
|
|
modern bank-tab container represents Turtle's 24 fixed bank slots; it creates no backend
|
|
item and currently supports no bank operations. Quests, skills and many optional fields
|
|
remain default or empty. This is an experimental minimal player profile, not complete character-state
|
|
translation. Rebuild with `python3 ops/build_forever_create.py` after the normal build.
|
|
|
|
The actual client now opens loopback **19086** after gateway CONNECT_TO `0x4E0008`.
|
|
The gateway validates account/realm/key binding and the continued-session HMAC proof.
|
|
The existing local provider independently verifies the proof and supplies the signed
|
|
ENTER_ENCRYPTED_MODE transition. WowB.exe acknowledges it, the instance AES channels
|
|
activate, and gateway sends RESUME_COMMS and TIME_SYNC_REQUEST. Provider character
|
|
login is never invoked; gameplay packets come from the retained Turtle session.
|
|
This chain was verified with the real client, including its `0x42005C` time-sync response.
|
|
|
|
The source-derived self creation packet (20,369 bytes for Gatewaytest) is sent on the
|
|
instance socket. The client subsequently requests played time. Gateway translates that
|
|
request/reply to Turtle. Additional codecs now send Turtle bind point, login clock,
|
|
tutorials, known spells/cooldowns, action buttons and initial world states. Spell/item/
|
|
faction ID compatibility with the Forever data set remains unverified. Empty charge and
|
|
unlearn lists are provisional initialization, not a complete gameplay translation.
|
|
|
|
**Still incomplete:** WowB.exe remains on the ~80% loading screen. Earlier primary-socket
|
|
and instance-socket runs produced ERROR #109 soft-lock watchdog reports, not a packet
|
|
size assertion. The exact remaining packet/field dependency is not yet identified.
|
|
The client has not visibly entered the world. No movement/NPC visibility milestone is
|
|
claimed. Grounded movement forwarding and server movement-block conversion are now
|
|
wired for the experimental instance socket, but have not been exercised by an in-world
|
|
Forever client. Unsupported grounded flags/optional data remain explicit errors.
|
|
|
|
To run this experimental path, use `GATEWAY_WORLD_EXPERIMENT=1`,
|
|
`GATEWAY_INSTANCE_EXPERIMENT=1`, and
|
|
`GATEWAY_CREATE_CODEC=/home/praxis/Projects/WoW-Hybrid/gateway/build/forever-schema/forever-create-codec`
|
|
with `ops/run_relay.py`. Stop only the recorded relay PID after verifying its comm name
|
|
before starting another relay. Without these environment variables the proven character
|
|
selection implementation is retained and world login returns an explicit failure.
|
|
The source-derived helper remains opt-in and is not part of the default CMake build.
|
|
|
|
Validation: 476 bounded offline codec checks, 14 localhost SRP/roster scenarios,
|
|
3 optional serializer fixture cases. Debug and the earlier sanitized protocol tests
|
|
passed; these tests do not establish real world-entry compatibility.
|
|
|
|
## Verified actual world entry — 2026-10-14
|
|
|
|
The actual WowB.exe 70334 entered Northshire with Turtle Gatewaytest (GUID 4509).
|
|
Evidence: `evidence/forever-70334-turtle-world-entry.png`. This supersedes the loading
|
|
stall described above. The complete account binding and retained Turtle session were
|
|
used; no Forever character records were created. The translated self+inventory update
|
|
was 23,101 bytes. Equipment and player UI rendered. NPCs are not yet translated.
|
|
|
|
Read-only executable-code diagnostics associated the earlier Lua watchdog with
|
|
GetItemCount. Account GUIDs, backpack capacity, inventory objects and a bank-tab
|
|
representation were added together, so the exact field responsible for resolving
|
|
the stall has not been isolated. D3D11 testing did not resolve the older stall; the
|
|
original client renderer configuration was restored. No executable file was modified.
|
|
|
|
The first post-entry heartbeat had FALLING (0x800), outside the grounded codec.
|
|
Unsupported movement is now rejected without terminating the session; it is not
|
|
forwarded with invented fall state. That initial falling packet remains unsupported; grounded movement was subsequently verified below.
|
|
Debug and sanitizer CTest suites passed (2/2 each), as did three optional serializer
|
|
fixtures. These are separate evidence from the actual client world screenshot.
|
|
|
|
Basic actual-client grounded movement is now verified: holding W for one second
|
|
moved X from -8949.95 to -8942.73. Tortoise persisted X/Y/Z and supplied that same
|
|
position on the next real Forever login. See `evidence/actual-client-movement.txt`
|
|
and `evidence/forever-70334-turtle-movement-relogin.png`. No position database
|
|
writes were used. This validates client-to-backend movement plus authoritative
|
|
initialization on reconnect, not live teleport corrections, falling, jumping or
|
|
complete combat-state synchronization.
|
|
|
|
## NPC experiment and resume diagnostics
|
|
|
|
`GATEWAY_NPC_EXPERIMENT=1` enables a separate, **unverified** creature-create path.
|
|
Keep it unset for the working self/world/movement profile. It currently restricts
|
|
entries to 6, 38 and 197; read-only queries of local `tw_world.creature_template`
|
|
confirmed type 7 for these entries. The creature object state comes from Turtle
|
|
UPDATE_OBJECT, never Forever character storage. Creature names, queries, splines,
|
|
field changes, removal and interactions are not implemented.
|
|
|
|
Source audit: Turtle `src/game/Objects/Object.cpp`, `Object::BuildMovementUpdate`
|
|
and `MovementInfo::Read/Write`; Forever `BaseEntity::BuildMovementUpdate` and
|
|
`BuildEntityFragments`, `UF::UnitData::WriteCreate`, and
|
|
`ObjectGuidFactory::CreateWorldObject` in `ObjectGuid.cpp`. Creature GUIDs use
|
|
HighGuid 8, realm/map/entry and the Turtle counter. The non-tag fragment id offset
|
|
is explicitly documented in Forever `BuildEntityFragments`; unit tag is 204.
|
|
|
|
Actual tests remain unsuccessful: WowB.exe reports ERROR #135,
|
|
“Failed to validate JamCliObjCreate” for a Creature GUID with entry 38, at
|
|
`CoreGameClient/MirrorSystem_C.cpp:564`. Read-only executable-code inspection
|
|
places this in create-structure validation before object field initialization.
|
|
A stationary-only packet passed that check but then asserted
|
|
`BC_ASSERT(this->m_has_value)` when unit initialization required movement data.
|
|
Therefore stationary-only creation is not a valid workaround and was removed.
|
|
Restoring full movement, using the shared proven movement serializer, and
|
|
preserving Turtle's timestamp still fail. The exact remaining field is unknown.
|
|
NPC visibility is **not verified**. The three self fixtures plus a bounded NPC
|
|
structure fixture pass, demonstrating why serialization tests alone are insufficient.
|
|
|
|
Session maintenance: primary Forever ping (8 bytes) maps to Turtle CMSG_PING
|
|
0x1DC, with a minimum 28-second interval. Turtle `WorldSocket::HandlePing` expects
|
|
sequence and latency uint32 values and flags intervals below 27 seconds. Its
|
|
SMSG_PONG 0x1DD is drained even at character selection. Actual local keepalive
|
|
acknowledgment was observed. No server ping/integrity policy was changed.
|
|
The diagnostic owner now polls/reaps its actual Wine child and closes its socket
|
|
when that child exits; executable-code reads remain bounded and read-only.
|
|
|
|
## Actual fall/jump forwarding verified
|
|
|
|
The basic movement decoder now handles the modern fall optional block (fallTime,
|
|
vertical velocity, direction presence, sine/cosine and horizontal speed), with bounds,
|
|
finite-value checks, identity binding and explicit rejection of unrelated optional
|
|
data. Modern FALLING 0x800 / FALLING_FAR 0x1000 map to Turtle JUMPING 0x2000 /
|
|
FALLINGFAR 0x4000. The direction order differs: Forever sends sine then cosine;
|
|
Turtle expects cosine then sine. Landing retains fallTime and omits the legacy jump
|
|
tail once JUMPING clears.
|
|
|
|
Audit sources: Forever `src/server/game/Server/Packets/MovementPackets.cpp`,
|
|
`operator>>(ByteBuffer&, MovementInfo&)`; its `MovementInfo.h` movement flags;
|
|
Turtle `src/game/Objects/Object.cpp`, `MovementInfo::Read` and `Write`, and
|
|
`Object.h` flags. Build70334 CMSG_MOVE_JUMP 0x420006 maps to MSG_MOVE_JUMP
|
|
0xBB; CMSG_MOVE_FALL_LAND 0x420017 maps to 0xC9. The source opcode constants
|
|
use group0x41, remapped to this client build's observed group0x42.
|
|
|
|
Actual space-key test: jump Z=83.6783, heartbeat Z=85.2447 at500ms, landing
|
|
Z=83.6784 at825ms. Tortoise's saved position was83.6784 and the character
|
|
remained online. Evidence: `evidence/actual-client-jump.txt` and
|
|
`evidence/forever-70334-turtle-jump.png`. These prove actual client-originated
|
|
fall/jump forwarding and backend persistence; live server fall corrections,
|
|
fall damage, transport/swimming and knockback remain unverified or unsupported.
|
|
Debug and sanitizer CTest passed2/2 each;559 offline checks now pass.
|
|
|
|
## Actual local chat and initial skills verified
|
|
|
|
`src/chat.cpp` translates source-cited CMSG_CHAT_MESSAGE_SAY (observed70334
|
|
0x2D0023) to Turtle CMSG_MESSAGECHAT0x95. It supports Universal/Common,
|
|
1..255 text bytes, an11-bit MSB-first length and secure metadata bit, and rejects
|
|
reserved bits, embedded terminators and truncation. Turtle SAY type0 maps to
|
|
modern SAY1; SYSTEM10 maps to0. Legacy GM tag3 maps semantically to modern
|
|
GM flag4. Replies bind player GUID/name to the authenticated Turtle roster.
|
|
Unsupported chat categories/senders are logged and skipped. Channels, whispers
|
|
and other players are not yet supported.
|
|
|
|
Sources: Forever `ChatPackets.cpp`, `ChatMessage::Read`, `Chat::Initialize`,
|
|
`Chat::Write`; Turtle `Handlers/ChatHandler.cpp`,
|
|
`WorldSession::HandleMessagechatOpcode`, and `Chat/Chat.cpp`,
|
|
`ChatHandler::BuildChatPacket`. Reply layout includes four packed GUIDs, realm
|
|
addresses, flags and51 string/presence bits.
|
|
|
|
Important70334 mapping: Forever `ClassicOpcodes::TranslateServerOpcode` first
|
|
applies the70245 mapping, then an extra group shift for builds70291+.
|
|
SMSG_CHAT retail0x4A0001 becomes **0x4C0001**, not0x4B0001. The latter was
|
|
tested during development and caused a client type-conversion assertion; it
|
|
was corrected before the verified chat run. `ClassicClientOpcodes.inc` maps
|
|
name queries to0x450011; observed0x440010 requests were not name queries.
|
|
No new name-cache handler was needed for this local round trip.
|
|
|
|
The actual client initially refused to send Common because the self profile had
|
|
empty skill arrays. `src/forever_create.cpp` now translates128 legacy triples
|
|
starting at PLAYER_SKILL_INFO_1_1 into modern SkillInfo's300-entry arrays: ID,
|
|
step, rank/max and temporary/permanent bonuses. Starting rank1 follows the
|
|
modern initialization profile. Sources: Turtle `Player::SetSkill` and Forever
|
|
`UF::SkillInfo::WriteCreate`. Thirteen real Turtle skills were present; translating
|
|
them enabled actual Common chat. Broader modern/Turtle skill-ID compatibility
|
|
and live skill changes remain unverified.
|
|
|
|
Evidence: `evidence/forever-70334-turtle-chat.png` shows Turtle welcome messages,
|
|
[Gatewaytest] says: Gateway local chat test, and the speech bubble. The gateway
|
|
log confirms actual CMSG0x2D0023 -> Turtle0x95 -> Turtle0x96 -> modern0x4C0001.
|
|
Debug and sanitizer CTest passed2/2 each;612 offline checks, three self fixtures
|
|
and one NPC structure fixture passed. NPC visibility remains unverified.
|
|
|
|
Environment note: /tmp tmpfs filled because Konsole held a roughly67GB deleted
|
|
scrollback file. Its process/files were not modified. Builds/tests used
|
|
`TMPDIR=$PWD/runtime/tmp` and authorized host execution; gateway storage remained
|
|
available. This condition can prevent normal sandbox startup independently of
|
|
the gateway.
|
|
|
|
## Actual server-authoritative same-map teleport verified
|
|
|
|
Turtle MSG_MOVE_TELEPORT_ACK0xC7 carries packed64 mover GUID, movement counter,
|
|
and legacy MovementInfo. The gateway validates the selected character, finite
|
|
XYZO, bounded walk/fall flags and complete framing. It emits Forever
|
|
SMSG_MOVE_TELEPORT0x600034: packed128 GUID, the unchanged counter, XYZ/facing
|
|
and three empty optional bits. Actual CMSG_MOVE_TELEPORT_ACK0x420016 is validated
|
|
against the outstanding full GUID/counter and becomes Turtle's raw64 GUID,
|
|
counter and client moveTime. Unsolicited acknowledgments are not forwarded.
|
|
|
|
Sources: Turtle `Movement/MovementPacketSender.cpp`,
|
|
`MovementPacketSender::SendTeleportToController`; `Handlers/MovementHandler.cpp`,
|
|
`WorldSession::HandleMoveTeleportAckOpcode` and `Player::ExecuteTeleportNear`;
|
|
Forever `MovementPackets.cpp`, `MoveTeleport::Write` and `MoveTeleportAck::Read`.
|
|
`ClassicOpcodes::TranslateServerOpcode` maps retail0x5E0034 through two group
|
|
shifts to70334 opcode0x600034. The source packet uses the realm connection;
|
|
the actual client acknowledgment arrived on its instance connection.
|
|
|
|
Actual test used `.go xyz -8949.95 -132.493 83.5312 0` through WowB.exe. Tortoise
|
|
supplied the destination/counter0, the actual client moved and acknowledged it,
|
|
and Turtle's live `.gps` confirmed X=-8949.950195, Y=-132.492996, Z=83.531197,
|
|
map0, zone12, area9. See `evidence/actual-client-teleport.txt` and the teleport/
|
|
server-gps screenshots. This proves live server-to-client position changes and
|
|
client acknowledgment, in addition to earlier client-to-server movement.
|
|
Cross-map transfers, transport/vehicle teleports, overlapping requests and combat
|
|
state corrections remain unsupported or unverified.
|
|
|
|
The initial commands were denied because AccountMgr caches GM roles at startup
|
|
(`AccountMgr::LoadGmLevels`/`GetSecurity`) and the disposable rank4 account was
|
|
created afterward. Its rank was never changed. A fresh private recovery snapshot
|
|
was created at `recovery/20261014T151931Z`, then only
|
|
`tortoise-docker-mangosd-1` was restarted. The existing role then loaded normally.
|
|
Both auth servers, original Forever world service, certificates, Wine prefix and
|
|
RAM key watcher were preserved. To recover pre-test DB/config state, follow the
|
|
local-only restore procedure in LOCAL_INTEGRATION.md with that snapshot; restarting
|
|
the world container itself changed no configs or role records.
|
|
|
|
Latest validation:668 offline checks; debug and sanitizer CTest2/2 each; three
|
|
self/skill fixtures and one NPC structural fixture. Actual world, jump, chat and
|
|
teleport screenshots are separate integration evidence. A read-only query again
|
|
confirmed zero Forever character rows for frontend account2. The /tmp exhaustion
|
|
subsequently resolved externally (96GB tmpfs available); no Konsole files/process
|
|
were changed by this work.
|
|
|
|
## Existing Turtle mailbox rendered in the actual client
|
|
|
|
`GATEWAY_GO_EXPERIMENT=1` enables an opt-in static game-object profile for
|
|
Turtle type7 benches and type19 mailboxes. Actual WowB.exe rendered the existing
|
|
Alliance Mailbox: Turtle spawn3998667, template144131, display1907, map0,
|
|
position(-8908.81,-132.054,80.643). The baseline screenshot at the same location
|
|
shows no mailbox; the translated run shows it. Twenty-one real Turtle static
|
|
objects were sent. See `evidence/forever-70334-no-turtle-mailbox.png` and
|
|
`evidence/forever-70334-turtle-mailbox.png`. No objects/database rows were created.
|
|
|
|
Audit sources: Turtle UpdateFields.h game-object indices and
|
|
`Object::BuildMovementUpdate`; Forever `GameObject::Create`,
|
|
`GameObject::UpdatePackedRotation`, `BaseEntity::BuildMovementUpdate`,
|
|
`UF::GameObjectData::WriteCreate`, and `ObjectGuidFactory::CreateWorldObject`.
|
|
Ordinary benches/mailboxes use HasEntityPosition+Stationary+Rotation bits
|
|
(81 08 00), packed quaternion22/21/21-bit components, and fragments
|
|
CGObject3 + game-object tag206 + terminator255. The additional GameObject block
|
|
is used for effects/transports, not every static object. Parent rotation is identity;
|
|
local legacy rotation is normalized and packed. Display/state/type/artkit/level/
|
|
faction/scale come from Turtle. Interaction flags, templates, permissions, use,
|
|
mail operations and live field updates remain unsupported or unverified.
|
|
|
|
Game-object GUID translation validates the standard legacy F110 format, its
|
|
embedded entry and24-bit counter; it emits modern HighGuid11 with realm/map/entry
|
|
and the same counter. Transport GUID1FC0 is a separate unsupported format.
|
|
|
|
Bounded removal codecs now follow Forever `UpdateData::BuildPacket`: map,
|
|
zero create-block count, C0 bits, destroy count, combined GUID count, packed
|
|
GUIDs and empty value data. Relay tracks only actually translated static objects.
|
|
Legacy out-of-range block4 removes mapped actors; legacy SMSG_DESTROY_OBJECT0xAA
|
|
removes mapped destroyed actors. Block5 is not treated as removal. These new
|
|
removal paths have independent golden/truncation/identity tests and **actual
|
|
destruction is now verified**, as recorded below. Source
|
|
`HandleGameObjectTempAddCommand`/`WorldObject::SummonGameObject` performs no DB save.
|
|
|
|
Latest offline validation:676 checks plus three self/skill, one NPC structure,
|
|
and two game-object serializer cases. Static mailbox visibility is real-client
|
|
evidence; those tests do not establish NPC compatibility or mailbox interactions.
|
|
|
|
## Actual temporary game-object creation and destruction verified
|
|
|
|
The actual in-world WowB.exe sent `/say .gobject tmpadd 144131 10`. Turtle
|
|
created temporary mailbox GUID17370386180891926431; the gateway translated its
|
|
create, and it appeared over Gatewaytest. Turtle later sent SMSG_DESTROY_OBJECT
|
|
0xAA, the relay emitted the mapped modern removal envelope, and that mailbox
|
|
disappeared while the original permanent mailbox remained. Screenshots
|
|
`evidence/forever-70334-turtle-mailbox-created.png` and
|
|
`evidence/forever-70334-turtle-mailbox-removed.png` and
|
|
`evidence/actual-client-gameobject-lifecycle.txt` record the actual test.
|
|
Persistent template144131 spawn count remained34 before and after.
|
|
|
|
The command did not honor the requested10-second lifetime. Source
|
|
`Commands.cpp::HandleGameObjectTempAddCommand` calls
|
|
`Chat.cpp::ExtractUint32KeyFromLink`, which advances an explicit argument pointer
|
|
through `ExtractKeyFromLink`/`ExtractQuotedOrLiteralArg`; it then mistakenly reads
|
|
the lifetime through `strtok(nullptr, " ")`. The observed object remained beyond
|
|
10seconds and was removed by335seconds, consistent with the default300. No
|
|
server source/configuration was changed to work around this command parser.
|
|
|
|
This verifies real creation and destruction of a Turtle-owned temporary static
|
|
object. Out-of-range removals, interaction/mail use and live field changes remain
|
|
unverified. Previously passing676 protocol checks and debug/sanitizer CTest2/2
|
|
remain the offline baseline; screenshot evidence independently establishes the
|
|
actual client behavior.
|
|
|
|
## Actual Turtle NPC visibility verified after facing normalization
|
|
|
|
WowB.exe now enters the world with the optional NPC profile enabled. The actual
|
|
client rendered Turtle spawn79970, entry197 Marshal McBride, display1859, level20
|
|
at(-8902.59,-162.606,82.0223) inside Northshire Abbey. A real client command
|
|
teleported Gatewaytest five yards west of that existing spawn; clicking the
|
|
visible actor displayed its level20 target frame. The name remains **Unknown**
|
|
because creature-template queries are not yet translated. See
|
|
`evidence/forever-70334-turtle-npc-visible.png`. No NPC/database rows were created;
|
|
a read-only query again confirmed zero Forever characters for frontend account2.
|
|
|
|
The previous create rejection is superseded by this result. Newly logged Turtle
|
|
entry38 movement carried orientation-0.256737; entry6 also carried negative
|
|
facing. Read-only executable inspection of the owned client identified its
|
|
movement validator RVA0x9DA1C0: orientation must be nonnegative and below one
|
|
full turn. Normalizing facing modulo2*pi in the NPC movement block preserves
|
|
the represented direction and resolves the actual client rejection, including
|
|
later creates with negative angles. No client code or memory was changed.
|
|
The earlier neutral-rate/empower defaults alone still failed in the real client.
|
|
Those defaults match Forever `Creature.cpp::Creature::InitEntry`.
|
|
|
|
The source-derived NPC adapter still restricts entries6/38/197 (audited
|
|
humanoids). Two offline regressions independently cover negative and over-turn
|
|
legacy orientation. The original three self/skill, one NPC structure, and two
|
|
static-object cases pass; debug CTest2/2 also passed after rebuilding.
|
|
|
|
Only initial NPC identity/model/position/health/level visibility is verified.
|
|
NPC template names, field changes, splines/motion, removals, NPC flags, quests,
|
|
combat and interactions are not implemented or verified. The profile remains
|
|
opt-in; retaining an actor after it leaves Turtle visibility is a known limit.
|
|
|
|
## Actual Turtle creature-template names verified
|
|
|
|
The actual client now shows **Marshal McBride** in its overhead name, target
|
|
frame and tooltip. Its modern CMSG_QUERY_CREATURE0x3E0143 contains a6-bit count
|
|
(flushed to one byte) and uint32 entry ids. The gateway validates count/padding/
|
|
framing and forwards each requested entry already present in its translated NPC
|
|
profile as Turtle CMSG_CREATURE_QUERY0x60: entry32 plus empty rawGUID64.
|
|
Turtle SMSG_CREATURE_QUERY_RESPONSE0x61 is matched to an outstanding request,
|
|
strictly decoded, and translated to modern instance packet0x4B0006. No database
|
|
lookup or frontend character record supplies the name. Class comes from Turtle
|
|
UNIT_FIELD_BYTES_0 in the visible create, because the legacy query lacks class.
|
|
|
|
Sources: Turtle `Handlers/QueryHandler.cpp::HandleCreatureQueryOpcode` and
|
|
`Protocol/Opcodes_1_12_1.h`; Forever `QueryPackets.cpp::QueryCreature::Read`,
|
|
`QueryCreatureResponse::Write`, `QueryPackets.h::CreatureStats`,
|
|
`PacketOperators.h::SizedCString`, and
|
|
`Creature.cpp::CreatureTemplate::BuildQueryData`. ClassicClientOpcodes.inc gives
|
|
the explicit client mapping. The response wraps one entry per batch, result byte
|
|
0/1,117 MSB-first string/leader bits, names, flags/type/family/rank, one
|
|
legacy display with neutral probability/scale, and the modern extension fields.
|
|
Absent proxy/quest/currency/movement/widget metadata remains empty; scaling is
|
|
disabled and HP/energy metadata multipliers are neutral. Civilian and legacy
|
|
spell-list semantics are not mapped. Live health/level remains Turtle object data.
|
|
|
|
See `evidence/forever-70334-turtle-npc-named.png` and
|
|
`evidence/actual-client-creature-query.txt`. Four independent bounded cases
|
|
compare the standalone translator byte-for-byte with the pinned native Forever
|
|
query serializer (names/title/flags/leader, long strings, missing-template reply).
|
|
The source helper is an offline oracle; the real-client screenshot separately
|
|
proves the supported name exchange.
|
|
|
|
`ops/verify_gameobject_lifecycle.py` now automates the actual client command,
|
|
exact create/destroy GUID correlation, screenshots and read-only persistent-row
|
|
checks. The completed run used GUID17370386180891926440, observed create at5.45s
|
|
and matching translated destruction at305.21s; rows remained34/34. See
|
|
`evidence/actual-client-lifecycle-automated.json`. The first removal screenshot
|
|
caught the client's despawn fade; it was recaptured after the fade finished, and
|
|
the harness now waits2seconds before its removal screenshot. Screenshots still
|
|
require visual review; packet delivery alone is not asserted to prove rendering.
|
|
|
|
Validation:742 offline checks; debug and sanitizer CTest2/2 each; four native
|
|
query comparisons; three self/skill, one NPC structure, two orientation, and two
|
|
static-object serializer cases. NPC motion/splines, field changes and removal,
|
|
quest/gossip actions and combat remain the next independent work.
|
|
|
|
## Login automation recovery verified in the actual client
|
|
|
|
The resumed test found two independent automation problems: asynchronous/stale
|
|
Spectacle captures, and account-field text that was not reliably cleared by
|
|
Ctrl+A. Spectacle now runs as a new background instance, excludes decorations/
|
|
shadows, removes stale outputs and waits for a complete fresh PNG. Captures stay
|
|
private in runtime. Public yellow form labels and bounded account-field OCR are
|
|
processed in memory; credential-screen outputs are discarded. `state` reports
|
|
only fixed UI classifications, never OCR field text.
|
|
|
|
Input checks WowB focus before each key/pointer action. Login explicitly clicks
|
|
the verified1920x1080 account/password coordinates, clears each field with End
|
|
and256 bounded Backspace events, and verifies overlapping16-character account
|
|
prefix/suffix views using Home/End before entering the password. Coverage must
|
|
span the entire stored address. Bounded fresh-frame retries handle caret/input
|
|
dispatch timing; failure stops before password entry. A post-entry check rejects
|
|
an unmasked eight-character secret fragment. No credential image is retained.
|
|
|
|
Actual `ops/client_ui.py login` completed both checks, authenticated, and reached
|
|
Normal realm selection. Earlier guard failures were UI verification failures,
|
|
not protocol-test failures, and were not treated as successful logins.
|
|
|
|
On the console/gameplay reconnect, the account field showed the verified suffix
|
|
but Home did not refresh its horizontal viewport for prefix OCR. Home followed
|
|
by Right/Left produced the correct prefix; End followed by Left/Right similarly
|
|
refreshes the suffix. Neither pair edits the account. The guarded login now uses
|
|
those pairs and successfully verified both complete address views and masked
|
|
password before authentication. This preserves all credential checks; no values
|
|
or credential screenshots were printed or committed.
|
|
|
|
Before the latest resume, a diagnostic focus mistake exposed part of the
|
|
disposable frontend secret. That credential was replaced once, only for the
|
|
bound local Battle.net account2, after targeted private recovery snapshot
|
|
`recovery/frontend-credential-20261014T171129Z`. The unsafe image was removed.
|
|
The current private credentials were preserved throughout the subsequent resume.
|
|
Original accounts, Turtle credentials, certificates, Wine prefix and running
|
|
authentication services were not changed. Recovery SQL/password files are private;
|
|
do not restore/reuse the previous exposed credential. The versioned explicit
|
|
rotation operator is scoped to the locally bound test frontend and does not run
|
|
during ordinary login.
|
|
|
|
## Actual NPC and static-object visibility-range roundtrip verified
|
|
|
|
The relay now tracks every actually translated static object and supported NPC,
|
|
using strict standard Turtle F110/F130 GUID validation. Creature GUIDs validate
|
|
embedded entry and nonzero24-bit counter and map to modern HighGuid8. Creation
|
|
and removal share that exact identity; no approximation or frontend object row
|
|
is involved. Legacy destroy0xAA and UPDATE_OBJECT out-of-range block4 erase only
|
|
known translated actors. Block5 remains distinct.
|
|
|
|
Actual WowB.exe entered with this profile, then sent a Turtle-directed same-map
|
|
teleport to Goldshire(-9465.58,64.72,56.38). Turtle removed104 known actors,
|
|
including Marshal McBride GUID17379390965327935586 and permanent mailbox
|
|
GUID17370386180888921035. The modern removal envelope cleared the selected target.
|
|
Returning to the Abbey removed35 Goldshire actors, re-created Marshal McBride
|
|
and displayed his correct name/level20 target frame. Moving back beside the
|
|
mailbox rendered the original mailbox again. Both directions were acknowledged
|
|
by the actual client. See `evidence/actual-client-actor-range.txt` and
|
|
`forever-70334-turtle-range-{before,away,return,mailbox-return}.png`.
|
|
|
|
These are visibility-range removals, not evidence of combat death or NPC respawn.
|
|
Ordinary NPC motion, health/field changes and quest interactions remain separate.
|
|
The strict GUID fixture now uses a real F130 creature identity instead of a player
|
|
GUID placeholder. Five new identity/bounds checks bring the protocol suite to747.
|
|
Debug and sanitizer CTest passed2/2 each; the optional self/NPC/orientation/static
|
|
serializer cases passed after rebuilding. Original working world/authentication,
|
|
existing credentials and commits were preserved.
|
|
|
|
## Real Turtle compressed movement decoded; NPC spline translation pending
|
|
|
|
Turtle opcode0x2FB is SMSG_COMPRESSED_MOVES. Source
|
|
`Objects/UpdateData.cpp::MovementData::AddPacket` stores each record as length8
|
|
(including opcode/body, excluding the length byte), opcode16 and body.
|
|
`MovementData::BuildPacket` prefixes the uncompressed size32 and
|
|
`PacketCompressor::Compress` uses a complete libdeflate zlib stream. The new
|
|
`turtle_compressed_moves` decoder enforces1MiB input/output, exact zlib stream
|
|
consumption, record sizes,4096-record maximum and no nested0x2FB envelope.
|
|
Independent golden packets and malformed/truncated/trailing/nested/count cases
|
|
bring the offline suite to778 checks; debug and sanitizer CTest passed2/2 each.
|
|
|
|
With GATEWAY_MOVEMENT_AUDIT=1 the actual retained Turtle world session decoded
|
|
a real embedded opcode0xDD (SMSG_MONSTER_MOVE),60-byte body, while WowB.exe
|
|
remained in Northshire. See `evidence/actual-client-compressed-movement-audit.txt`.
|
|
This confirms the backend envelope decoder against real traffic; it does **not**
|
|
prove NPC motion in Forever. The audit sends no new movement to the client and
|
|
logs each embedded opcode only once per session. Current credentials were
|
|
preserved, and verified-field login succeeded again after the gateway restart.
|
|
|
|
The remaining movement packet is now precisely identified. Turtle
|
|
`Movement/spline/packet_builder.cpp::WriteCommonMonsterMovePart` supplies origin,
|
|
spline id, facing mode/optional facing, legacy flags and duration;
|
|
`WriteLinearPath` packs intermediate offsets relative to the **destination**.
|
|
Forever `MovementPackets.cpp::MonsterMove::Write`, the MovementSpline and
|
|
MovementMonsterSpline stream operators, and `InitializeSplineData` use packed
|
|
GUID128, structured spline fields/presence bits, and offsets relative to the
|
|
**origin/destination midpoint**. Its SMSG_ON_MONSTER_MOVE core0x5E0002 maps to
|
|
actual70334 opcode0x600002. Raw Turtle deltas cannot be copied unchanged.
|
|
|
|
Legacy Runmode0x100 is also a modern unused/unknown flag; cyclic/done/falling
|
|
flag bits differ between the two MoveSplineFlag.h files. The next translator
|
|
needs bounded waypoint reconstruction and modern flag/facing/duration encoding,
|
|
with separate stop/cyclic/Catmull-Rom handling or explicit unsupported rejection.
|
|
These fields are an implementation gap, not a verified client-data blocker.
|
|
Quest/gossip/combat and modern-versus-Turtle custom-content dependencies remain
|
|
unverified. Working character selection, world entry, player movement, chat,
|
|
teleport, NPC names and visibility lifecycle are preserved.
|
|
|
|
## Expanded population and actual NPC patrol (2026-10-14)
|
|
|
|
The restricted NPC entries and pending linear-movement statements above are
|
|
historical. [OBJECT_POPULATION.md](OBJECT_POPULATION.md) documents the actual
|
|
Turtle stream comparison and expanded live-template creates (checkpoint24f25b5).
|
|
[NPC_SPLINES.md](NPC_SPLINES.md) documents captured ground spline translation
|
|
and actual WowB patrol screenshots. Initial/in-progress spline continuation,
|
|
nonlinear/stop/transport forms and broader gameplay still need implementation.
|