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

CExitEditingMode (0x23)

Previous: CEmotion | Client action index | Next: CDropGold

CExitEditingMode is client-to-server action 0x23 in the 4.21 protocol.

Direction: client to server

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
0x001paper_modeMode byte stored at Paper object +0x554.
0x012text_lengthBig-endian number of following text bytes.
0x03text_lengthtextPaper text bytes without a terminator. Carriage returns are changed to tab bytes before submission.

Queue call sites

Queue callContaining IDA functionFunction address
Darkages.exe:0x00493C99ui_paper_dialog_handle_completionDarkages.exe:0x00493B60
Darkages.exe:0x0049421Cnet_c_send_exit_editing_modeDarkages.exe:0x00494100

UI flow

Both builders read the Paper text control, limit the local copy to 0x1F40 bytes, normalize carriage returns, and queue text_length + 4 logical bytes including the action. ui_paper_dialog_handle_completion performs this submission when its completion conditions allow it, then closes the Paper dialog. net_c_send_exit_editing_mode performs the same serialization without owning the close transition.

See UI, Input, and Packet Flows.