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.

23a Talk:Strange mood

From Dwarf Fortress Wiki
Revision as of 02:10, 12 May 2012 by Quietust (talk | contribs) (updated patch)
Jump to navigation Jump to search

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)

More Artifacts

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)

Demands

Using a tool, I've observed that when dwarves request stone or blocks, they seem to insist on gray stone, dark stone, or light stone. Metal bar requests seem to be for a specific metal, though I haven't yet confirmed their desires for ores. I actually got several dwarves demanding rough gems of "any material", but they refused to collect them - perhaps there's a bug that prevents them from randomly selecting one of the 4 gem groups. --Quietust 01:03, 13 July 2011 (UTC)

Dropping Artifacts

Due to a bug, dwarves never drop their artifacts like they're supposed to. Edit dwarfort.exe and apply the following patches and it'll start working correctly again. Additionally, changing the bytes at 0x0A721F from 0x0F 0x84 0xB1 0x03 to 0x90 0xE9 0x22 0x02 will cause dwarves to always drop their artifacts instead of hiding or becoming obsessed with them. --Quietust 21:31, 19 August 2011 (UTC)

  • 0x14079B : 8A -> 8B
  • 0x1407A1 : B0 FE C2 04 00 90 90 90 -> B8 FE FF FF FF C2 04 00
  • 0x0B5430 : B0 FE C2 04 00 90 90 90 -> B8 FE FF FF FF C2 04 00
  • 0x1E8015 : 0F BE C0 -> 90 90 90