benilla-re systems structs docs

ClientConnection::SetInWorld

function · net · orchestration

Address
0x5aae70 · 56 bytes, up to 0x5aaea7
Signature
void __thiscall (ClientConnection *this, uint32_t inWorld)
Meaning
Completes the operation as CHAR_LOGIN_SUCCESS, stores the in-world flag, and fires LOGOUT_CANCEL if a logout was pending
Confidence
verified, proof one
Finding
net/connection#character-login

Finding: Character login in net: connection

0x5aae20(guid) begins operation 8 and sends CMSG_PLAYER_LOGIN (0x3d) with the guid through 0x5b4700, then stores 1 at +0x1b04; without a link it fails with code 4. The reply that refuses is SMSG_CHARACTER_LOGIN_FAILED (0x41): 0x5b45f0 reads one byte and calls slot 19, 0x5aad70. That function clears +0x1b04, leaves the world through 0x401ee0(1, 1, 1) when it is the current connection, and completes the operation as failed with a code chosen by the byte: 1 CHAR_LOGIN_NO_WORLD (0x3e), 2 CHAR_LOGIN_DUPLICATE_CHARACTER (0x3f), 3 CHAR_LOGIN_NO_INSTANCES (0x40), 4 CHAR_LOGIN_DISABLED (0x42), 5 CHAR_LOGIN_NO_CHARACTER (0x43), 6 CHAR_LOGIN_LOCKED_FOR_TRANSFER (0x44), and CHAR_LOGIN_FAILED (0x41) for 0 and every byte from 7 up. The connection stays open.

The derivation is in the doc.

Callers 3

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.