I did some experimenting and I wanted you to confirm a few things for me @red51 if you can.
1)
each gunzip decompressed mt_* file consists of 262144bytes.
Now each image pixel takes up 3 bytes of space (hex colour) and a 4th FF byte defining the end of the hex colour code correct?
If yes then that means that each image consists of 65536 pixels, which is nothing else that a 256x256 pixel image.
2)
how does the game know which square goes next to which? I assume it has to do with the way they are named, since looking inside the files there are no "excess" bytes to hold map position data, but could you provide some more information please?
My thought was something like the following (i.e. the first number means left/right position and the second number top/bottom with positive numbers towards top and right and negative towards bottom and left) but could you confirm it if I am correct or correct me if I am wrong?
mt_-2_2 | mt_-1_2 | mt_0_2 | mt_1_2 | mt_2_2 |
mt_-2_1 | mt_-1_1 | mt_0_1 | mt_1_1 | mt_2_1 |
mt_-2_0 | mt_-1_0 | mt_0_0 | mt_1_0 | mt_2_0 |
mt_-2_-1 | mt_-1_-1 | mt_0_-1 | mt_1_-1 | mt_2_-1 |
mt_-2_-2 | mt_-1_-2 | mt_0_-2 | mt_1_-2 | mt_2_-2 |