Statics
- All static elements which are not part of the base level map are stored in the statics file.
- staidx0.mul is the index file to statics0.mul which stored the tiles.
- Best see the map chapter first, for some general information on construction of the world.
This is in example the center of britain with static data only:
The blocks inside of staidx0.mul have exactly the some formatation as from map0.mul,
expect each entry consists of 12 bytes. (8x8 grouping, sorted from top to down, then left ot right).
To read a static block set the filepointer to blockID * 12 and get the offset and length for statidx0.mul.
| UNSIGNED INT16 | Start |
| UNSIGNED INT16 | Length |
| UNSIGNED INT16 | unkown |
If start has a value of 0xFFFFFFFF the are no static tiles for this cell.
NOTE: Due the format of this file one is really forced this time to read it block-wise...
The block has Length (from above) divided by 7 entries of following format:
| UNSIGNED INT16 | Tile ID |
| UNSIGNED INT8 | X |
| UNSIGNED INT8 | Y |
| SIGNED INT8 | Z |
| UNSIGNED INT16 | unknown |
Tile-ID are this time static tile id's, meaning you have to add 0x4000 to find them in art.mul.
X and Y are the cell coordinates inside this block.
Z is the height of the tile.
Note: I've no idea how the tiles are ordered in a block, if they are ordered at all, and if it has an order about it's meaning...
(Arachnide currently doesn't rely on any tile-order in a block)
- finished