v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "23a Talk:Strange mood"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
==Item count==
 
==Item count==
 
One of the limiting factors on artifact count is indeed the number of items in the fortress; however, the number being used seems to be '''double''' the actual count. The strange mood code sums up the contents of the vector starting at [00EA059C] (using the size of another seemingly unrelated vector) and divides it by 200, and that vector contains both counts of generic item types (e.g. STONE, ORE; presumably for the left side of the Stocks screen) and of specific item/material combinations (e.g. chalk boulders, schist boulders, pumice boulders, cassiterite, malachite, sphalerite; presumably for the right side of the stocks screen), so the item count is doubled. It might be worth checking if this same is true in later versions. --[[User:Quietust|Quietust]] 19:27, 8 July 2011 (UTC)
 
One of the limiting factors on artifact count is indeed the number of items in the fortress; however, the number being used seems to be '''double''' the actual count. The strange mood code sums up the contents of the vector starting at [00EA059C] (using the size of another seemingly unrelated vector) and divides it by 200, and that vector contains both counts of generic item types (e.g. STONE, ORE; presumably for the left side of the Stocks screen) and of specific item/material combinations (e.g. chalk boulders, schist boulders, pumice boulders, cassiterite, malachite, sphalerite; presumably for the right side of the stocks screen), so the item count is doubled. It might be worth checking if this same is true in later versions. --[[User:Quietust|Quietust]] 19:27, 8 July 2011 (UTC)
 +
 +
==Increasing moods==
 +
Edit dwarfort.exe and change the byte at address 0x12AA87 from 0x03 to 0x02 and you'll get one artifact per 10 squares mined toward the right edge instead of per 20 squares; decrementing it additional times will further double the artifact limit for a given depth (0x01 for one artifact per 5 squares, 0x00 for one artifact per 2.5 squares). --[[User:Quietust|Quietust]] 21:47, 8 July 2011 (UTC)

Revision as of 21:47, 8 July 2011

Item count

One of the limiting factors on artifact count is indeed the number of items in the fortress; however, the number being used seems to be double the actual count. The strange mood code sums up the contents of the vector starting at [00EA059C] (using the size of another seemingly unrelated vector) and divides it by 200, and that vector contains both counts of generic item types (e.g. STONE, ORE; presumably for the left side of the Stocks screen) and of specific item/material combinations (e.g. chalk boulders, schist boulders, pumice boulders, cassiterite, malachite, sphalerite; presumably for the right side of the stocks screen), so the item count is doubled. It might be worth checking if this same is true in later versions. --Quietust 19:27, 8 July 2011 (UTC)

Increasing moods

Edit dwarfort.exe and change the byte at address 0x12AA87 from 0x03 to 0x02 and you'll get one artifact per 10 squares mined toward the right edge instead of per 20 squares; decrementing it additional times will further double the artifact limit for a given depth (0x01 for one artifact per 5 squares, 0x00 for one artifact per 2.5 squares). --Quietust 21:47, 8 July 2011 (UTC)