SMSG_INITIALIZE_FACTIONS

Client Version 1, Client Version 2

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/faction/smsg_initialize_factions.wowm:9.

smsg SMSG_INITIALIZE_FACTIONS = 0x0122 {
    u32 amount_of_factions;
    FactionInitializer[amount_of_factions] factions;
}

SMSG have a header of 4 bytes.

SMSG Header

OffsetSize / EndiannessTypeNameDescription
0x002 / Biguint16sizeSize of the rest of the message including the opcode field but not including the size field.
0x022 / Littleuint16opcodeOpcode that determines which fields the message contains.

Body

OffsetSize / EndiannessTypeNameComment
0x044 / Littleu32amount_of_factionsvmangos/cmangos/mangoszero: sets to 0x00000040 (64)
mangostwo (wrath) sets this to 0x00000080 (128)
0x08? / -FactionInitializer[amount_of_factions]factions

Client Version 3

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/faction/smsg_initialize_factions.wowm:26.

smsg SMSG_INITIALIZE_FACTIONS = 0x0122 {
    u32 amount_of_factions;
    FactionInitializer[amount_of_factions] factions;
}

Header

SMSG have a header of 4 bytes.

SMSG Header

OffsetSize / EndiannessTypeNameDescription
0x002 OR 3 / Biguint16 OR uint16+uint8sizeSize of the rest of the message including the opcode field but not including the size field. Wrath server messages can be 3 bytes. If the first (most significant) size byte has 0x80 set, the header will be 3 bytes, otherwise it is 2.
-2 / Littleuint16opcodeOpcode that determines which fields the message contains.

Body

OffsetSize / EndiannessTypeNameComment
-4 / Littleu32amount_of_factionsvmangos/cmangos/mangoszero: sets to 0x00000040 (64)
mangostwo (wrath) sets this to 0x00000080 (128)
-? / -FactionInitializer[amount_of_factions]factions