
| This file is a sort of "hit-test" matrix. With the data contained in this file, you can easily find out which pixel on the map belongs to which province. |
File Info |
Location » (eu2 root)\map\id.tbl
Size » 4.488.436 bytes (4,28 MB) |
File format |
So, each line contains a number of spans. All spans combines form a whole line: the first block starts with start-x value 0, the last block has and end-x value of 18944 (the map size). So you know when to stop reading when the end-x value is equal or greater than the map size. The block after the last block (in a line) is the first block of the next line.
|
Usability |
I guess this file is used for hit testing: all you have to do is find out the offset of the y-coordinate in the file, and read blocks until you found the one which spans your x-coordinate. |