IS III

From LFS Manual
Jump to navigationJump to search

Introduction

The InsIm Info packet is a variable-size packet containing text messages sent by LFS when a user types a message using /i message. Such messages are not displayed in-game, but are sent to the host's InSim program. This results in a similar effect to standard messages prefixed with the IS_ISI prefix.

IS_III packet properties
Type Name Description
byte Size 12, 16, 20... 72 depending on Msg
byte Type ISP_III
byte ReqI 0
byte Zero
byte UCID connection's unique id (0 = host)
byte PLID player's unique id (if zero, use UCID)
byte Sp2
byte Sp3
char Msg[64] 4, 8, 12... 64 characters - last byte is zero

Packet Details

Size

The size of the packet varies from 12 to 72 bytes depending on the message contents.

Type

The packet type from the ISP_ enumeration, always ISP_III.

ReqI

ReqI is always equal to zero.

UCID

The unique ID of the connection that sent the message. A value of 0 represents the host (in multiplayer) or the local client (in single player). Only used if PLID is 0.

PLID

The player ID of the player who sent the message. If 0, UCID is used instead.

Msg

The bytes representing the message.

The message can be 4, 8, ..., up to 64 bytes, padded with zeros. The last byte is always zero.