benilla-re systems structs docs

HandleInitializeFactionsPacket

function · ui · primitive

Address
0x4d5640 · 112 bytes, up to 0x4d56af
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Reads SMSG_INITIALIZE_FACTIONS, storing each position's flags and standing, then rebuilds the list and signals
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/reputationwire#faction-messages

Finding: Faction messages in ui: reputation messages and requests

0x4d5290 registers five handlers and 0x4d5360 removes them. The slot in each message is the faction's reputationListID. No message checks a slot or a count against the 64 slots.

opcodemessagebody
0x122SMSG_INITIALIZE_FACTIONSu32 count, then per entry a u8 flags and a u32 standing; the slot is the entry's position
0x123SMSG_SET_FACTION_VISIBLEu32 slot
0x124SMSG_SET_FACTION_STANDINGu32 count, then per entry a u32 slot and a u32 standing
0x313SMSG_SET_FACTION_ATWARu32 slot, u8 flags
0x2a5SMSG_SET_FORCED_REACTIONSu32 count, then per entry a u32 faction and a u32 rank
0x125CMSG_SET_FACTION_ATWARu32 slot, u8 at war
0x317CMSG_SET_FACTION_INACTIVEu32 slot, u8 inactive
0x318CMSG_SET_WATCHED_FACTIONu32 slot, -1 for none

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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