Difference between revisions of "IS VER"

From LFS Manual
Jump to navigationJump to search
m
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
  
The IS_VER packet contains information about the LFS and InSim versions, allowing you to prevent your program interacting with legacy versions of the game. To request a IS_VER packet to be sent, either set the ReqI to non-zero in the [[IS_ISI]] packet when initialising InSim, or by sending a [[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
 
<big><pre>struct IS_VER // VERsion
Line 11: Line 11:
  
 
char Version[8]; // LFS version, e.g. 0.3G
 
char Version[8]; // LFS version, e.g. 0.3G
char Product[6]; // Product : DEMO or S1
+
char Product[6]; // Product: DEMO / S1 / S2 / S3
word InSimVer; // InSim Version : increased when InSim packets change
+
byte InSimVer; // InSim version (see below)
 +
byte Spare; // Spare
 
};</pre></big>
 
};</pre></big>
  
== Packet Detail ==
+
== Packet Details ==
  
 
=== Size ===
 
=== Size ===
Line 31: Line 32:
 
=== Version ===
 
=== Version ===
  
The LFS version, E.G. 0.5Z.
+
The LFS version, e.g. 0.7G.
  
 
=== Product ===
 
=== Product ===
  
The LFS product, E.G. S2.
+
The LFS product, e.g. S3.
  
 
=== InSimVer ===
 
=== InSimVer ===
  
The current InSim version, which at the time of writing is version 4. 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.
  
 
[[Category:InSim packets]]
 
[[Category:InSim packets]]

Revision as of 15:21, 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.

struct IS_VER // VERsion
{
	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.