Difference between revisions of "IS VER"

From LFS Manual
Jump to navigationJump to search
m
 
Line 1: Line 1:
== Introduction ==
+
{{Infobox InSim packet
 +
| description  = Version information
 +
| size          = 20
 +
| type_key      = ISP_VER
 +
| type_value    = 2
 +
| direction    = in
 +
| category      = Version information
 +
| prev          = [[IS_ISI]]
 +
| next          = [[IS_TINY]]
 +
}}
  
 
The '''VER'''sion packet contains information about the LFS and InSim versions, allowing you to prevent your program interacting with legacy versions of the game. To request an IS_VER packet, either set ReqI to non-zero in the [[IS_ISI]] packet when initialising InSim, or send an [[IS_TINY]] packet with a SubT of TINY_VER.
 
The '''VER'''sion packet contains information about the LFS and InSim versions, allowing you to prevent your program interacting with legacy versions of the game. To request an IS_VER packet, either set ReqI to non-zero in the [[IS_ISI]] packet when initialising InSim, or send an [[IS_TINY]] packet with a SubT of TINY_VER.
 +
 +
== Packet details ==
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 40: Line 51:
 
| Spare
 
| Spare
 
|}
 
|}
 
== Packet Details ==
 
  
 
=== Size ===
 
=== Size ===
Line 66: Line 75:
  
 
The current InSim version, which at the time of writing is version 10. If this value does not match the version of InSim you are expecting, your program may not work correctly.
 
The current InSim version, which at the time of writing is version 10. If this value does not match the version of InSim you are expecting, your program may not work correctly.
 +
 +
{{InSim packets}}
  
 
[[Category:InSim packets]]
 
[[Category:InSim packets]]

Latest revision as of 18:47, 13 February 2026

IS_VER
Version information
Overview
Size 20
Type ISP_VER (2)
Usage info
Previous packet
IS_ISI
Next packet
IS_TINY

The VERsion packet contains information about the LFS and InSim versions, allowing you to prevent your program interacting with legacy versions of the game. To request an IS_VER packet, either set ReqI to non-zero in the IS_ISI packet when initialising InSim, or send an IS_TINY packet with a SubT of TINY_VER.

Packet details

IS_MSL packet properties
Type Name Description
byte Size 20
byte Type ISP_VERSION
byte ReqI ReqI as received in the request packet
byte Zero
char Version[8] LFS version, e.g. 0.3G
char Product[6] Product: DEMO / S1 / S2 / S3
byte InSimVer InSim version (see below)
byte Spare Spare

Size

The size of the packet, always 20.

Type

The type of packet from the ISP_ enumeration, always ISP_VER.

ReqI

Contains the ReqI as received in the request for an IS_VER to be sent.

Version

The LFS version, e.g. 0.7G.

Product

The LFS product, e.g. S3.

InSimVer

The current InSim version, which at the time of writing is version 10. If this value does not match the version of InSim you are expecting, your program may not work correctly.


Initialisation IS_ISI
Version Information IS_VER
General Purpose IS_TINY · IS_SMALL · IS_TTC
State Reporting and Requests IS_STA · IS_SFP · IS_ISM
Text Messages and Key Presses IS_SCH · IS_MSO · IS_III · IS_MST · IS_MTC · IS_MSX · IS_MSL
Voting IS_VTN
Race Tracking IS_RST · IS_REO
Autocross IS_AXI · IS_AXO · IS_UCO · IS_OCO · IS_AXM
Connection Tracking IS_NCN · IS_CNL · IS_CPR · IS_ACR · IS_NCI · IS_SLC · IS_CIM
Car Tracking IS_NPL · IS_PLP · IS_PLL · IS_LAP · IS_SPX · IS_PIT · IS_PSF · IS_PLA · IS_PEN · IS_TOC · IS_FLG · IS_PFL · IS_FIN · IS_RES · IS_NLP · IS_MCI · IS_CRS · IS_CON · IS_OBH · IS_HLV · IS_CSC
Camera Control IS_SCC · IS_CPP
Replay Control IS_RIP
Screenshots IS_SSH
InSim Buttons IS_BFN · IS_BTN · IS_BTC · IS_BTT
AI Control IS_AIC · IS_AII
Other packets IS_MOD · IS_CCH · IS_PLC · IS_HCP · IS_JRR · IS_MAL · IS_PLH · IS_IPB