PEW File Format
Introduction
- To do...
Legend
Type | Description |
---|---|
byte | 8 bit (1 byte) |
short | 16 bit signed short (2 bytes) |
int | 32 bit signed integer (4 bytes) |
float | 32 bit signed single precision floating point value (4 bytes) |
asciiz | Null terminated (0x00) variable length ascii string |
Although technically there should never be negetive values for many of the 16 bit & 32 bit values, it's 'safer' in programming terms to use signed datatypes as opposed to unsigned datatypes.
File Format
- The following is a mix of pseudo-code and structure references that could be used to discribe the file format of POSEW60.pew Island project design file. It may or may not be accurate.
- This file format is principally used with Armed Assault v1.09 and later plus the ArmA Tools Suite Final release (v1.14).
POSEW60
{
structHeader Header;
int NoOfObjectTypes;
structObjectType[NoOfObjectTypes] ObjectTypes;
short Unknown;
short Unknown;
short RoadNetworkTypesIndicator;
if(RoadNetworkTypesIndicator == 0)
{
}
int TerrainGrid_X;
int TerrainGrid_Z;
float[TerrainGrid_Z,TerrainGrid_X] TerrainGridHeights;
int NoOfBlueFloats = (TerrainGrid_X / 16) * TerrainGrid_X;
float[NoOfBlueFloats] BlueEdgeTerrainHeights; //Always zero values.
int Unknown;
int NoOfObjects;
structObject[NoOfObjects] Objects;
int NoOfLayers;
structLayer[NoOfLayers] Layers;
...
}