benilla-re systems structs docs

SelectedCharacterRecord

struct · ui · 272 bytes

Meaning
Holds the character list entry copied when the player enters the world: name, race, class, sex and level
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.

Fields 5

offsetsizetypenamemeaningconfidencefinding
0x000856char[56]m_nameHolds the character's name, empty before the first copyverified, proof oneui/unitplayer#the-selected-character-record
0x01001uint8_tm_raceHolds the ChrRaces idverified, proof oneui/unitplayer#the-selected-character-record
0x01011uint8_tm_classHolds the ChrClasses idverified, proof oneui/unitplayer#the-selected-character-record
0x01021uint8_tm_sexHolds the sex byte that indexes the UnitSex tableverified, proof oneui/unitplayer#the-selected-character-record
0x01081uint8_tm_levelHolds the level byte that no function readsverified, proof oneui/unitplayer#the-selected-character-record

Globals of this type