Version 4 RST, TRN, and YIG File Headers

** Note first Byte of the file is Byte 1 ( NOT Zero as in C )
String = ascii strings with no terminating place holder. ( BASIC String )
Long = 4 byte signed integer
Int = 2 byte signed integer

V4 RST File Header Details
Bytes Type What is it? Notes
1 - 40 String * 40 VGA Planets 4 RST By Tim Wisseman Every RST starts with this string
41-44 Long Turn Number Increases by one each turn
45-48 Long Game ID Number A random number made up when the game universe is made
77-94 String * 18 Timestamp All RST files from the same turn and same game have the same timestamp
116-159 String * 44 Name of the game Host person can name each game when the game starts or change it later
160-203 String * 44 Name of the host person The handle or nickname of the person hosting the game
204-263 String * 60 Name of the player Player handle or nickname of player, entered by the player using Planets4
264-267 Long RST Version Used incase changes to the RST are needed
268-271 Long Player Number Allows a renamed RST file to be tested to see which player owns it

 

V4 TRN File Header Details
Bytes Type What is it? Notes
1 - 40 String * 40 VGA Planets 4 TRN By Tim Wisseman Every TRN starts with this string
41-44 Long Turn Number Increases by one each turn
45-48 Long Game ID Number A random number made up when the game universe is made
77-94 String * 18 Timestamp All TRN files from the same turn and same game have the same timestamp
116-159 String * 44 Name of the game Host person can name each game when the game starts or change it later
160-203 String * 44 Name of the host person The handle or nickname of the person hosting the game
204-263 String * 60 Name of the player Player handle or nickname of player, entered by the player using Planets4
264-267 Long TRN Version Used incase changes to the TRN format are needed
268-271 Long Player Number Allows a renamed TRN file to be tested to see which player owns it


V4 YIG File Header Details
Bytes Type What is it? Notes
1 - 48 String * 48 VGA Planets 4 ( By Tim Wisseman ) Universe File: Every YIG starts with this string
101 - 220 30 Long REG Serial Numbers of players Only there if known
221 - 340 30 Long Race numbers of players A race pack number greater than 100
341 - 344 Long In game flags Bits 0 to Bit 29 used
345 - 348 Long Game ID number Every game has a different one
349 - 352 Long Turn Number Increase by one each turn
353 - 370 String * 18 Last Turn Time Stamp Incoming TRN files will have this time stamp also