Difference between revisions of "IS VER"

From LFS Manual
Jump to navigationJump to search
m
Line 3: Line 3:
 
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.
  
<big><pre>struct IS_VER // VERsion
+
{| class="wikitable"
{
+
|+ IS_MSL packet properties
byte Size; // 20
+
|-
byte Type; // ISP_VERSION
+
! Type !! Name !! Description
byte ReqI; // ReqI as received in the request packet
+
|-
byte Zero;
+
| byte
 
+
| Size
char Version[8]; // LFS version, e.g. 0.3G
+
| 20
char Product[6]; // Product: DEMO / S1 / S2 / S3
+
|-
byte InSimVer; // InSim version (see below)
+
| byte
byte Spare; // Spare
+
| Type
};</pre></big>
+
| 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
 +
|}
  
 
== Packet Details ==
 
== Packet Details ==

Revision as of 19:36, 9 February 2026

Introduction

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.

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

Packet Details

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.