benilla-re systems structs docs

s_selectedCharacter

global · net

Address
0xc27d80 · 272 bytes, up to 0xc27e8f
Type
SelectedCharacterRecord
Meaning
Holds the selected character's list entry from the last EnterWorld, empty before it
Confidence
verified, proof one
Finding
ui/unitplayer#the-selected-character-record

Finding: The selected character record in ui: the player token before the player object

0xc27d80 holds a 0x110-byte copy of the selected character's entry from the character list. Fields: +0x08 the name (NUL-terminated), +0x100 the race byte, +0x101 the class byte, +0x102 the sex byte, +0x108 the level byte (nothing reads it). It sits in the zeroed tail of the data section, so it is empty at start-up. 0x5abd90(src) is the one runtime writer: rep movsd of 0x44 dwords. Its one caller is CGlueMgr::EnterWorld (0x46b60f), reached from the glue script EnterWorld, after the character, realm and connection checks and before the loading screen is raised. Nothing zeroes the record afterwards, so it keeps the last selected character through a logout.

The derivation is in the doc.