Save*.map Resource footer
PostPosted: 08 Dec 2008, 14:57
I've been looking into the .map file description which The Barbarian wrote and tried a few things with them, and here's what I found out this far:
The resource table is being used by the AI.
It's so that the AI knows where to put for the mines (quarry, cole, gold and stone).
If a resource is not put in the table, the AI will simply ignore it, and search for the first following resource of that type.
If the resource isn't put in anywhere in the map, the AI will continue with the other buildings.
Mission to prove this fact (altered mission1 TSK):
http://rapidshare.com/files/171451743/resourcetable.rar.html
OR
http://www.megaupload.com/?d=58B9L0XD
To run this mission, do the following:
1) put the mission(.dat) file over your mission1.dat in KaM TPR/data/mission.
2) copy save01_resource_deleted.map to KaM TPR/data/mission/smaps and rename it to save01.map.
you can also see the normal result (with the resource still in the .map) by using your original save01.map, or by using save01_original.map in the archive.
This proves that the info from The Barbarian's save*.map File Description to be correct about that part.
However, the comment of the size of the resource record is not always true, for example, these are the missions which don't:
TSK MAPS
7, 8, 11, 12, 16, 18, 20
TPR MAPS
1, 4*, 6*, 7*, 9, 10*, 12*, 14*
MPLAYER MAPS
0*, 1*, 2*, 3*, 4*, 5*, 6*, 8*, 9*
just a number means the number of resource records isn't set.
a number with a * means it is set, but it has a value which isn't equal to MAP_WIDTH+MAP_HEIGHT
The resource table is being used by the AI.
It's so that the AI knows where to put for the mines (quarry, cole, gold and stone).
If a resource is not put in the table, the AI will simply ignore it, and search for the first following resource of that type.
If the resource isn't put in anywhere in the map, the AI will continue with the other buildings.
Mission to prove this fact (altered mission1 TSK):
http://rapidshare.com/files/171451743/resourcetable.rar.html
OR
http://www.megaupload.com/?d=58B9L0XD
To run this mission, do the following:
1) put the mission(.dat) file over your mission1.dat in KaM TPR/data/mission.
2) copy save01_resource_deleted.map to KaM TPR/data/mission/smaps and rename it to save01.map.
you can also see the normal result (with the resource still in the .map) by using your original save01.map, or by using save01_original.map in the archive.
This proves that the info from The Barbarian's save*.map File Description to be correct about that part.
However, the comment of the size of the resource record is not always true, for example, these are the missions which don't:
TSK MAPS
7, 8, 11, 12, 16, 18, 20
TPR MAPS
1, 4*, 6*, 7*, 9, 10*, 12*, 14*
MPLAYER MAPS
0*, 1*, 2*, 3*, 4*, 5*, 6*, 8*, 9*
just a number means the number of resource records isn't set.
a number with a * means it is set, but it has a value which isn't equal to MAP_WIDTH+MAP_HEIGHT