Table of Contents

Compressed Gump (0xDD)

Moongate Packet Classes

  • CompressedGumpPacket (Outgoing, Variable, length -1) from src/Moongate.Network.Packets/Outgoing/UI/CompressedGumpPacket.cs

Current Moongate Behavior

Moongate currently has packet classes for this opcode.

Packet Build

Type Field
BYTE[1] Cmd
BYTE[2] len
BYTE[4] Player Serial
BYTE[4] Gump ID
BYTE[4] x
BYTE[4] y
BYTE[4] Compressed Gump Layout Length (CLen)
BYTE[4] Decompressed Gump Layout Length (DLen)
BYTE[CLen-4] Gump Data, zlib compressed
BYTE[4] Number of text lines
BYTE[4] Compressed Text Line Length (CTxtLen)
BYTE[4] Decompressed Text Line Length (DTxtLen)
BYTE[CTxtLen-4] Gump's Compressed Text data, zlib compressed

Subcommand Build

N/A

Notes

text lines is in Big-Endian Unicode formate, not NULL terminated

loop:

  • BYTE[2] Length BYTE[Length*2] text

endloop

Default level for decompresion