VGA-planets Turn 3.X format
This document contains the data-structure of a VGA-planets turn-file
version 3.x. I don't know about earlier versions, these are probably
simpler. These specifications are non-WinPlan.
Guarantee
No guarantee whatsoever is given about these specifications; I can't
be 100% sure that what I'm writing here is complete. It is, however,
correct in all cases I have seen.
Important numbers
Tim Wisseman has written VGA-planets in Basic. Therefor, the first
byte of any file or any count is 1. In C this is 0.
A long is 4 bytes and a short 2.
Specifications
Any turn is built up according to the following structure:
- playernumber (short)
- number of commands (long)
- timestamp (18 bytes)
- 2 bytes (meaning unknown)
- host-id (short; see result-format or GEN??.DAT-format)
- when there are commands, one byte (meaning unknown)
- the commands
- checksum over all previous (long; timestamp counts 4 times)
- 4 bytes (meaning unknown)
- your registration (204 bytes)
- 11 checksums, for each race (longs)
Commands
Each of the following items is the command number, followed by a
description of that command and between square brackets the items the
command is made from. The last number is the total length (in bytes)
of that command. Most items are shorts (on planet more longs).
- Friendly code of a ship [shipid;FC] 7
- Warp of a ship [shipid;warp] 6
- Waypoint of a ship [shipid;dx;dy] 8
- Mission of a ship [shipid;mission] 6
- Primary enemy of a ship [shipid;enemy] 6
- Tow target of a ship [shipid;towtarget] 6
- Name of a ship [shipid;name] 24
- Transfer to another planet [shipid;neutr;trit;dur;molyb;clans;supp;planetid] 18
- Transfer to another ship [shipid;neutr;trit;dur;molyb;clans;supp;secondshipid] 18
- Intercepttarget of a ship [shipid;intercepttarget] 6
- Amount of fuel of a ship [shipid;neutr] 6
- Amount of tritanium of a ship [shipid;trit] 6
- Amount of duranium of a ship [shipid;dur] 6
- Amount of molybdenium of a ship [shipid;molyb] 6
- Amount of supplies of a ship [shipid;supplies] 6
- Amount of clans of a ship [shipid;clans] 6
- Amount of torpedoes of a ship [shipid;torps] 6
- Amount of MegaCredits of a ship [shipid;MC] 6
-
-
- Friendly code of a planet [planetid;FC] 7
- Mines on a planet [planetid;mines] 6
- Factories on a planet [planetid;factories] 6
- Defense on a planet [planetid;defense] 6
- Neutronium of a planet [planetid;neutr] 8
- Tritanium of a planet [planetid;trit] 8
- Duranium of a planet [planetid;dur] 8
- Molybdenium of a planet [planetid;molyb] 8
- Colonists of a planet [planetid;clans] 8
- Supplies of a planet [planetid;suppl] 8
- MegaCredits of a planet [planetid;MC] 8
- Colonist tax of a planet [planetid;coltax] 6
- Natives tax of a planet [planetid;nattax] 6
- Build a base on a planet [planetid;boolean] 4
-
-
-
-
-
- Defense of a base [baseid;defense] 6
- Engine tech level of a base [baseid;enginetech] 6
- Hull tech level of a base [baseid;hulltech] 6
- Beam tech level of a base [baseid;beamtech] 6
- Amounts of engines on a base [baseid;9_amounts] 22
- Amounts of hulls on a base [baseid;20_amounts] 44
- Amounts of beamweapons on a base [baseid;10_amounts] 24
- Amounts of torplaunchers on a base [baseid;10_amounts] 24
- Amounts of torpedoes on a base [baseid;10_amounts] 24
- Number of fighters on a base [baseid;fighters] 6
- Target ship of Fix/Recycle [baseid;shipid] 6
- Fix or Recycle command [baseid;fixrec] 6
- Base mission [baseid;mission] 6
- Build ship on a base [baseid;hull;engine;beamtype;#beams;torptype;#launchers;0] 18
- Torp tech level of a base [baseid;torptech] 6
-
-
-
-
-
- Encoded message [length;from;to;message] 8+length
- New encoded password [0;pwd] 14
This page has been made by Kero van Gelder.
Last update 15th of January 1997