IS NLP

From LFS Manual
Revision as of 14:31, 10 February 2026 by Bokujishin (talk | contribs) (Created page with "== Introduction == The '''N'''ode and '''L'''ap '''P'''acket is sent by LFS as a reply to a [[InSim_enumerations#TINY|TINY_NLP] request, or at regular intervals if requested...")
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to navigationJump to search

Introduction

The Node and Lap Packet is sent by LFS as a reply to a [[InSim_enumerations#TINY|TINY_NLP] request, or at regular intervals if requested in IS_ISI.

IS_NLP packet properties
Type Name Description
byte Size 4 + NumP * 6 (PLUS 2 if needed to make it a multiple of 4)
byte Type ISP_NLP
byte ReqI 0 unless this is a reply to an TINY_NLP request
byte NumP number of players in race
NodeLap Info[NLP_MAX_CARS] node and lap of each player, 1 to NLP_MAX_CARS (NumP)

Packet Details

Size

The size of the packet varies from 4 to 244 bytes, depending on NumP. If the resulting size is not a multiple of 4, it is padded with zeros to be.

Type

The packet type from the ISP_ enumeration, always ISP_NLP.

ReqI

ReqI is equal to zero, unless the packet is a reply to a TINY_NLP request.

NumP

The number of players in the race.

Info

A list of NodeLap structs, one for each player.