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.

Editing 40d:Cheating

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "40d"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{av}}
 
{{Quality|Exceptional}}
 
 
{{mod}}
 
{{mod}}
  
'''Cheating''' is altering the game to make dwarf fortress easier. This is distinctly different from [[Main:exploits|exploits]]. There are two main ways to alter the game: changing the game's raw source files (which are really just text files), and directly altering the game's memory (which requires special tools).
+
'''Cheating''' is altering the game to make dwarf fortress easier. This is distinctly different from [[exploits]]. There are two main ways to alter the game: changing the game's raw source files (which are really just text files), and directly altering the game's memory (which requires special tools).
  
 
=File Edits=
 
=File Edits=
Line 19: Line 17:
 
Raw files are located in the raw/objects directory
 
Raw files are located in the raw/objects directory
  
See also: [[Material token]], [[Creature token]], [[Matgloss token]], and [[Reactions]] for making your own custom cheats.
+
See also: [[Material tokens]], [[Creature tokens]], [[Matgloss tokens]], and [[Reactions]] for making your own custom cheats.
  
 
==Reaction Additions==
 
==Reaction Additions==
Line 155: Line 153:
  
 
These cheats do not require a new world (because they only modify existing reactions), and allow my smelters to create steel and adamantine from nothing. It's probably easier, though, to mod some bulk stone into the ore you need and go from there.
 
These cheats do not require a new world (because they only modify existing reactions), and allow my smelters to create steel and adamantine from nothing. It's probably easier, though, to mod some bulk stone into the ore you need and go from there.
 
===Ultimate Smelter Cheat===
 
Since it's easy enough to alter smelter reactions, one can build a single multi-purpose reaction as follows:
 
    [REACTION:CHEAT_HORRIBLY]
 
    [NAME:prospect bulk stone]
 
    [SMELTER][FUEL]
 
    [REAGENT:1:REACTION_CLASS:JUNK]
 
    [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:COPPER]
 
where any bulk stone you want to destroy is labeled REACTION_CLASS:JUNK, and PRODUCT is whatever you want; turtle shells, rough rock crystals, platinum, whatever you need. No need to make lots of reactions just for gems, no need to modify existing reactions.
 
  
 
==Creature Token Modifications==
 
==Creature Token Modifications==
Line 179: Line 168:
 
     [ITEMCORPSE:ARMOR:ITEM_ARMOR_CHAINMAIL:METAL:ADAMANTINE]
 
     [ITEMCORPSE:ARMOR:ITEM_ARMOR_CHAINMAIL:METAL:ADAMANTINE]
 
     [ITEMCORPSE_QUALITY:5]
 
     [ITEMCORPSE_QUALITY:5]
Note that you do ''not'' need to make a new world for this to work, and that you can even change this entry in-between saves on the same adventurer (and by highly likely extension, fortress), which has immense and obvious cheating potential.  You may want to take a look at the [[Item token]] page for a better general understanding of the ITEMCORPSE tag; ITEMCORPSE_QUALITY, on the other hand, simply ranges from 0 (no quality modifier) to 5 (masterpiece quality).
+
Note that you do ''not'' need to make a new world for this to work, and that you can even change this entry in-between saves on the same adventurer (and by highly likely extension, fortress), which has immense and obvious cheating potential.  You may want to take a look at the [[Item tokens]] page for a better general understanding of the ITEMCORPSE tag; ITEMCORPSE_QUALITY, on the other hand, simply ranges from 0 (no quality modifier) to 5 (masterpiece quality).
  
 
Another example:
 
Another example:
Line 188: Line 177:
  
 
===Super-Fast Dwarves===
 
===Super-Fast Dwarves===
If you believe your dwarves are a bit too slow, try opening the following [[creature token]] file...  
+
If you believe your dwarves are a bit too slow, try opening the following [[creature token]] file...
<pre>\raw\objects\creature_standard.txt</pre> ...and adding '''[SPEED:1]''' (or SPEED:0 if you're up to some psychedelic light speed traveling)  somewhere after '''[CREATURE:DWARF]''' but before the next '''[CREATURE]''' entry. *NEW RELEASE EDIT*  Find [HOMEOTHERM:#####] and add [SPEED:###] edit the "#" and replace with desired value ((found by looking at creature fairy) edit if needed)
+
<pre>\raw\objects\creature_standard.txt</pre> ...and adding '''[SPEED:1]''' (or SPEED:0 if your up to some psychedelic light speed traveling)  somewhere after '''[CREATURE:DWARF]''' but before the next '''[CREATURE]''' entry.
 +
 
 
This will make your dwarves do the majority of their actions '''''super''''' fast, including moving, digging and workshop actions.
 
This will make your dwarves do the majority of their actions '''''super''''' fast, including moving, digging and workshop actions.
  
This may, ironically, lower FPS when a high population is present, but no more than what doing many actions at once would.
+
This may, ironically, lower FPS when a high population is present{{verify}}.
  
 
===Healing Nervous Injuries===
 
===Healing Nervous Injuries===
Line 212: Line 202:
 
Savescumming refers to the practice of regularly backing up your saves so you can revert to one if your fortress crumbles to the last. This can be toggled to be done automatically in the init file, so some might not consider this to be cheating.
 
Savescumming refers to the practice of regularly backing up your saves so you can revert to one if your fortress crumbles to the last. This can be toggled to be done automatically in the init file, so some might not consider this to be cheating.
  
Another method to save scum is open up task manager (ctrl+alt+delete) and open the Processes tab, and then selecting dwarfort.exe and clicking on end task. This will cause Dwarf Fortress to close, reverting to the last saved game.
+
Another method to save scum is open up task manager (ctrl+alt+delete) and open the Processes tab, and then selecting dwarfort.exe and clicking on end task. This will cause dwarf fortress to close, reverting to the last saved game. Back a long time ago, this could cause inflate errors and destroy the save-game, but Toady has solved the problem.
  
 
On Linux, since the game binary (named dwarfort.exe) is launched via a script wrapper (named df), simply closing the launched script does not work as the actual game will continue to run. However, closing dwarfort.exe is possible in a number of ways:
 
On Linux, since the game binary (named dwarfort.exe) is launched via a script wrapper (named df), simply closing the launched script does not work as the actual game will continue to run. However, closing dwarfort.exe is possible in a number of ways:
Line 223: Line 213:
  
 
     killall -9 dwarfort.exe
 
     killall -9 dwarfort.exe
 +
  
 
=Memory Editing=
 
=Memory Editing=
  
:''[[40d:Memory editing|Main article: Memory editing]]''
+
:''[[:Memory editing|Main article: Memory editing]]''
  
Memory editing refers to using an external program to modify numbers within the game. This is at its most useful when choosing what to take with you, as you can give yourself an unlimited number of points. What doesn't work in the new version is giving your starting dwarves tons of prof skills, since there now is a limit in how many skills they can start with. You can still start your dwarves with all proficient skills, but you need to change the [skill limit value] (What?) first on every dwarf you want to do this with, also when editing the memory values with such programs as CheatEngine in adventure mode your point value is 4bytes but in fortress you have to change the search to 2bytes only for hex editors though
+
Memory editing refers to using an external program to modify numbers within the game. This is at its most useful when choosing what to take with you, as you can give yourself an unlimited number of points. What doesn't work in the new version is giving your starting dwarves tons of prof skills, since there now is a limit in how many skills they can start with. You can still start your dwarves with all proficient skills, but you need to change the skill limit value first on every dwarf you want to do this with, also when editing the memory values with such programs as CheatEngine in adventure mode your point value is 4bytes but in fortress you have to change the search to 2bytes only for hex editors though(NOTE as of 0.27.176.38c I have found that you can only edit the value of the first dwarf in you starting team)
  
 
The [[utilities]] page has several tools that do specific memory hacks, such as to teleport a creature.
 
The [[utilities]] page has several tools that do specific memory hacks, such as to teleport a creature.
 +
 +
Don't forget, Cheat-O-Matic is a very easy to use tool for memory hacking, use it to change starting points, the dwarf skill limits, etc.
  
 
Editing the memory of a game has a possibility to cause the game to crash or misbehave, including corrupting of saves.
 
Editing the memory of a game has a possibility to cause the game to crash or misbehave, including corrupting of saves.
Line 241: Line 234:
 
|-  
 
|-  
 
! style="text-align: left; padding: 0.1em 0.5em" | Various Memory Hacking Tools:
 
! style="text-align: left; padding: 0.1em 0.5em" | Various Memory Hacking Tools:
| [http://wpepro.net/index.php?categoryid=9&p13_sectionid=1&p13_fileid=79?&category=3 WPE Pro/PermEdit/Tsearch],  [http://www.artmoney.ru/?threadid=2669677 ARTMONEY], [http://cheatengine.org/?t=38984 Cheat Engine]
+
| [http://wpepro.net/index.php?categoryid=9&p13_sectionid=1&p13_fileid=79?&category=3 WPE Pro/PermEdit/Tsearch],  [http://www.artmoney.ru/?threadid=2669677 ARTMONEY], [http://www.developerfusion.co.uk/show/2426/?t=38984 Cheat-O-Matic],
 +
[http://cheatengine.org/?t=38984 Cheat Engine]
 
|}
 
|}
{{Category|Guides}}
+
[[Category:Guides]]
 
Guide on how to edit the starting skills and points using TSearch: http://www.youtube.com/watch?v=boC-IxvkYsI
 
Guide on how to edit the starting skills and points using TSearch: http://www.youtube.com/watch?v=boC-IxvkYsI

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)