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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0008 | 56 | char[56] | m_name | Holds the character's name, empty before the first copy | verified, proof one | ui/unitplayer#the-selected-character-record |
0x0100 | 1 | uint8_t | m_race | Holds the ChrRaces id | verified, proof one | ui/unitplayer#the-selected-character-record |
0x0101 | 1 | uint8_t | m_class | Holds the ChrClasses id | verified, proof one | ui/unitplayer#the-selected-character-record |
0x0102 | 1 | uint8_t | m_sex | Holds the sex byte that indexes the UnitSex table | verified, proof one | ui/unitplayer#the-selected-character-record |
0x0108 | 1 | uint8_t | m_level | Holds the level byte that no function reads | verified, proof one | ui/unitplayer#the-selected-character-record |
Globals of this type
0xc27d80s_selectedCharacter