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: | ||
− | |||
− | |||
{{mod}} | {{mod}} | ||
− | '''Cheating''' is altering the game to make dwarf fortress easier. This is distinctly different from [[ | + | '''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 | + | See also: [[Material tokens]], [[Creature tokens]], [[Matgloss tokens]] for making your own custom cheats. |
==Reaction Additions== | ==Reaction Additions== | ||
Line 35: | Line 33: | ||
For convience, here are all the precious gems in the game. | For convience, here are all the precious gems in the game. | ||
<pre> | <pre> | ||
− | [REACTION:FREE_GEMS1] | + | [REACTION:FREE_GEMS1][NAME: make DIAMOND_LY][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_LY] |
− | [NAME: make DIAMOND_LY] | + | [REACTION:FREE_GEMS2][NAME: make DIAMOND_FY][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_FY] |
− | [SMELTER] | + | [REACTION:FREE_GEMS3][NAME: make EMERALD][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:EMERALD] |
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_LY] | + | [REACTION:FREE_GEMS4][NAME: make RUBY][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY] |
− | + | [REACTION:FREE_GEMS5][NAME: make SAPPHIRE][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE] | |
− | [REACTION:FREE_GEMS2] | + | [REACTION:FREE_GEMS6][NAME: make DIAMOND_CLEAR][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_CLEAR] |
− | [NAME: make DIAMOND_FY] | + | [REACTION:FREE_GEMS7][NAME: make DIAMOND_RED][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_RED] |
− | [SMELTER] | + | [REACTION:FREE_GEMS8][NAME: make DIAMOND_GREEN][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_GREEN] |
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_FY] | + | [REACTION:FREE_GEMS11][NAME: make DIAMOND_BLUE][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLUE] |
− | + | [REACTION:FREE_GEMS33][NAME: make DIAMOND_YELLOW][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_YELLOW] | |
− | [REACTION:FREE_GEMS3] | + | [REACTION:FREE_GEMS44][NAME: make DIAMOND_BLACK][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLACK] |
− | [NAME: make EMERALD] | + | [REACTION:FREE_GEMS55][NAME: make RUBY_STAR][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY_STAR] |
− | [SMELTER] | + | [REACTION:FREE_GEMS56][NAME: make SAPPHIRE_STAR][SMELTER][PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE_STAR] |
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:EMERALD] | ||
− | |||
− | [REACTION:FREE_GEMS4] | ||
− | [NAME: make RUBY] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY] | ||
− | |||
− | [REACTION:FREE_GEMS5] | ||
− | [NAME: make SAPPHIRE] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE] | ||
− | |||
− | [REACTION:FREE_GEMS6] | ||
− | [NAME: make DIAMOND_CLEAR] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_CLEAR] | ||
− | |||
− | [REACTION:FREE_GEMS7] | ||
− | [NAME: make DIAMOND_RED] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_RED] | ||
− | |||
− | [REACTION:FREE_GEMS8] | ||
− | [NAME: make DIAMOND_GREEN] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_GREEN] | ||
− | |||
− | [REACTION:FREE_GEMS11] | ||
− | [NAME: make DIAMOND_BLUE] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLUE] | ||
− | |||
− | [REACTION:FREE_GEMS33] | ||
− | [NAME: make DIAMOND_YELLOW] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_YELLOW] | ||
− | |||
− | [REACTION:FREE_GEMS44] | ||
− | [NAME: make DIAMOND_BLACK] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLACK] | ||
− | |||
− | [REACTION:FREE_GEMS55] | ||
− | [NAME: make RUBY_STAR] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY_STAR] | ||
− | |||
− | [REACTION:FREE_GEMS56] | ||
− | [NAME: make SAPPHIRE_STAR] | ||
− | [SMELTER] | ||
− | [PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE_STAR] | ||
</pre> | </pre> | ||
Line 127: | Line 74: | ||
to reaction_standard.txt. | to reaction_standard.txt. | ||
− | ===Easy Flux | + | ===Easy Flux and Sand=== |
Add | Add | ||
[REACTION_CLASS:FLUX] | [REACTION_CLASS:FLUX] | ||
− | to any stone you have to turn it into a flux. This is in matgloss_stone_mineral.txt | + | to any stone you have to turn it into a flux. This is in matgloss_stone_mineral.txt. Likewise, open matgloss_stone_soil.txt and add |
− | |||
− | |||
[SOIL_SAND] | [SOIL_SAND] | ||
− | to any soil to turn it into sand suitable for making glass with. | + | to any soil to turn it into sand suitable for making glass with. Neither of these cheats require creating a new world. |
− | |||
− | |||
===Easy Metal=== | ===Easy Metal=== | ||
Line 154: | Line 97: | ||
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STEEL] | [PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STEEL] | ||
− | These cheats do not require a new world | + | These cheats do not require a new world, and allow my smelters to create steel and adamantine from nothing. It has not been tested it yet, but theoretically you could change a reaction to take in, say, bulk stone like alunite, and produce valuable gems like rubies, rock crystals, and what have you. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Creature Token Modifications== | ==Creature Token Modifications== | ||
Line 179: | Line 113: | ||
[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 | + | 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 122: | ||
===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]''' | + | <pre>\raw\objects\creature_standard.txt</pre> ...and adding '''[SPEED:1]''' 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 | + | This may lower FPS when a high population is present{{verify}}. |
===Healing Nervous Injuries=== | ===Healing Nervous Injuries=== | ||
Line 201: | Line 136: | ||
Note that simply removing the brackets from the NERVOUS and THOUGHT token is enough to "remove" the token from the body part, while retaining the information (to human viewers of the file) that the parts are nervous if you wish to revert the edit after that critical dwarf has healed. | Note that simply removing the brackets from the NERVOUS and THOUGHT token is enough to "remove" the token from the body part, while retaining the information (to human viewers of the file) that the parts are nervous if you wish to revert the edit after that critical dwarf has healed. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Savescumming== | ==Savescumming== | ||
Line 212: | Line 141: | ||
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 | + | 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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=Memory Editing= | =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 | + | 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 162: | ||
|- | |- | ||
! 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]] | |
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 |