Decoding - Houses.dat

 

 

This section has information about the construction of the game files and how to edit them. If you know something about a that there is no information available about, please contribute! Provided are documents, descriptions and tools allowing you to edit the files.


The information here is based on The Peasants Rebellion, unless otherwise stated!

 

 

 

Overview

 

Contents: Inside the house files, the vast majority of the house information is being stored. All graphical things, cost, hitpoints, resources and more are being stored.
Status: ~5%
Only a little information has been documented
Contributors: free_sms_km
Documents: free_sms_km (HTML)
Tools: Merchator download.png

 

 

Construction

 

Only a little detailed information is available, and that is to edit the building cost. Instead of rewording the sutff he originally wrote, I'll just copy over it. This is what free_sms_km wrote into his blog:

 

"In kam , buildings' duration are marked by A/B , such as a burning store house's duration may be 400/550 . To build a building , timbers and stones are necessary and their amount is related with A . For example , a store house's duration A is 550 . It means that 6 timbers and 5 stones are needed to build the store house . A troop workshop's duration A is 600 . It means that 6 timbers and 6 stones are needed to build the troop workshop . To build a building which needs 4 timbers and 3 stones , then , the building' duration A will be 350 . Besides , one can change buildings' duration B also . Now , I will tell you about how to modify the HEX data to change buildings' duration .

 

The duration's datas are stored in houses.dat located in \data\defines\ . One can open the file with a HEX editor . The address of store house's duration A is 56B4h which is 06 and 56B5h which is 05 . It means that 6 timbers and 5 stones are needed to build a store house with the duration A 550 . If one changes 06 to 04 and 05 to 03 , 4 timbers and 3 stones are needed to build a store house with the duration A 350 . The address of store house's duration B is 572Bh which is 26 and 572Ch which is 02 . One must change 26 02 to 02 26 , then one will convert the HEX data 02 26 to DECIMAL 550 . Of course , one can change 26 02 to 20 03 , then the duration B of a store house will be 800 .
But what's the difference between A and B ? A is actual duration while B is general dutation . A is more important than B . But if one want to see perfect A/B , one should modify the datas both . Finally , the modification of duration will have effect to opponents too .

 

As stated above , one may learn how to change the duration of buildings . Now , I list all buildings' address .
----------------------------------------------------------
9910 : troop workshop 98a0 : 06 06
c0a0 : dining area c030 : 06 05
6450 : school 63e0 : 06 05
8550 : town hall 84d0 : 06 05
5720 : store house 56b0 : 06 05
5dc0 : stable 5d40 : 06 05
7eb0 : stone tower 7e40 : 03 02
6af0 : stone house 6a70 : 03 02
49f0 : woodcutter house 4980 : 03 02
2260 : coal mine 21f0 : 03 02
a640 : siege worshop a5d0 : 04 02
1bd0 : weapon smithy 1b50 : 04 03
3630 : fish house 35b0 : 04 03
4360 : farm 42e0 : 04 03
5090 : armor smithy 5010 : 04 03
7820 : swine house 77a0 : 04 03
8be0 : weapon workshop 8b70 : 04 03
9280 : armor workshop 9200 : 04 03
9fb0 : mill 9f30 : 04 03
ace0 : butcher house ac60 : 04 03
c740 : wine house c6c0 : 04 03
ea0 : sawmill e20 : 04 03
2900 : iron mine 2880 : 03 02
2f90 : gold mine 2f20 : 03 02
7180 : metal house 7110 : 04 03
1530 : iron smithy 14c0 : 04 03
b370 : tannery house b300 : 04 03
3cc0 : bakery 3c50 : 04 03
----------------------------------------------------------
One may find more secrets in houses.dat except the duration ."

 

I tried editing the file myself, and unless my memory fails me, one or more of these adresses had been mistyped. But the information did work!