worldMap - themeldingwars/Documentation GitHub Wiki
worldMap
Files containing the minimap images / world map.
010 Editor Template
Implementations
- Read and Writer have been implemented in FauFau: WorldMap.cs
File Structure
//--------------------------------------
// 010 Editor Template
// File: worldMap
// Author: freakbyte
//--------------------------------------
struct FILE
{
struct HEADER
{
char GTNO[4];
uint version[3];
uint last; //filename
uint second; //filename
float location[9];
uint _25601;
byte padding;
uint reminder;
uint payloadExtractedSize;
uint payloadCompressedSize;
ushort checksumPerhaps;
byte deflated[payloadCompressedSize-2];
} header;
} file;
Inflated Payload
//--------------------------------------
// 010 Editor Template
// File: worldMap deflate stream
// Author: freakbyte
//--------------------------------------
struct b13 // unknown
{byte b[13];};
struct CHUNK
{
uint id;
if(id==10 || id == 11)
{
uint u;
uint length;
byte b[length];
}
else if(id == 61)
{
uint length;
uint i;
b13 b[i];
uint x;
short y[x];
}
else
{
uint length;
byte b[length];
}
} chunks[7]<optimize=false>;