Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SExchange (0x42)

Previous: SSendPatch | Server action index | Next: SSpellDelayCancel

SExchange is server-to-client action 0x42 in the 4.21 protocol.

Direction: server to client

Encrypted: Yes. See Sequence and XOR Transformation.

Payload offsets begin with the first byte after the action. The frame marker, frame length, action, sequence, and trailing zero are excluded.

Payload format

OffsetWidthFieldEstablished meaning
0x001subtypeExchange operation. Values 1 through 5 have mapped Stone branches.
0x01payload_length - 1unknown_01Subtype-dependent payload bytes whose field boundaries remain to be mapped.

Handler functions

Function addressCurrent IDA nameRole
Darkages.exe:0x00435EA0sub_435EA0Accepts the action in its pane’s Event type 9 packet handler.
Darkages.exe:0x004374F0sub_4374F0Accepts the action in its pane’s Event type 9 packet handler.
Darkages.exe:0x00437C70sub_437C70Accepts the action in its pane’s Event type 9 packet handler.
Darkages.exe:0x00468A90ui_map_dispatch_server_packetAccepts and dispatches the action in MapPane.

Handler notes

Darkages.exe:0x00435EA0 sub_435EA0, Darkages.exe:0x004374F0 sub_4374F0, Darkages.exe:0x00437C70 sub_437C70, Darkages.exe:0x00468A90 ui_map_dispatch_server_packet. Exchange-session handlers dispatch on a second byte with established subtypes 1 through 5.

Schema status

The 4.21 exchange-pane handlers establish the subtype byte and branches 1 through 5. Their individual payload schemas remain to be mapped.