Crossbowman
Posts: 233
Joined: 22 Jan 2008, 23:00
Website: http://thunderwolf.freehost10.com/KaMMissionBuilder/index.php
Location: Netherlands
Save*.map Resource footer
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
MissionBuilder v0.9f2 UPDATED!!
Defend The Outer Colony. fight for your king and uncover the secrets of this land.
Temporary version at
http://thunderwolf.x10hosting.com/index.php
"You can't defeat me, I've played Knights and Merchants"