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 "v0.31:Cheating"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Failproofing)
Line 1: Line 1:
 
{{AV}}
 
{{AV}}
 
{{elven}}
 
{{elven}}
 +
{{mod}}
  
 +
'''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).
  
Adding the [SPEED:1] tag will make things super fast. Something like [SPEED:200] feels less like cheating for some, though.
 
  
Some of the new raw structures are a tad confusing, but here are some pre-made rawhacks.
+
=Raw Editing=
 +
 
 +
Raw files are located in the raw/objects directory
 +
 
 +
The most common use of editing raw files is to get free items, such as gems, adamantine, or flux.
 +
 
 +
When changing the raw files, you may or may not need to create a new world in order for your changes to be reflected.
 +
 
 +
Generally speaking, ''modifications'' to an existing entry in a raw file don't require a new world. Altering existing reactions or creatures is an example of this.
 +
 
 +
However, when adding or deleting entries, you need to create a new world for the changes to take place, and when deleting, it can and probably will render your old world unplayable as attempting to play worlds generated before the deletion will cause an error.
 +
 
 +
 
 +
==Creature Token Modifications==
 +
Modifying creature files does not require the creation of a new world. You can modify the physical attributes of a creature, make animals tamable and trainable, make your dwarves into short little bearded terminators, and much more.
 +
 
 +
 
 +
===Speedy Dwarves===
 +
Getting bored with slow dwarves?
 +
 
 +
Go into the creature_standard file and add the [SPEED:1] in somewhere in the top section of the entry.(or SPEED:0 if you're up to some psychedelic light speed traveling)
 +
 
 +
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.
 +
 
 +
 
 +
==Reaction Additions==
 +
There are now two reaction files: reaction_smelter and reaction_other. Additions to these lists will not take effect until you generate a new world. Note that if you edit an existing reaction entry (leaving the [REACTION:NAME] line unchanged) rather than add a new one, you will not need to generate a new world.
 +
 
 +
===Free Gems===
 +
Fill in the name of a gem from the inorganic_stone_gem file and paste this in the reaction_smelter file to make your smelter spew out gems.
 +
<pre>
 +
[REACTION:FREE_(insert gem name)]
 +
[NAME: make (insert gem name)]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:(insert gem name)]
 +
[SKILL:SMELT]
 +
</pre>
 +
Note: You can change the skill used and the workshop, but make sure to keep it in the correct reaction file.
 +
For convience, here are all the precious gems in the game.
 +
<pre>
 +
[REACTION:FREE_DIAMOND_LY]
 +
[NAME: make light yellow diamonds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_LY]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_DIAMOND_FY]
 +
[NAME: make faint yellow diamonds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_FY]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_EMERALD]
 +
[NAME: make emeralds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:EMERALD]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_RUBY]
 +
[NAME: make rubies]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_SAPPHIRE]
 +
[NAME: make sapphires]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_DIAMOND_CLEAR]
 +
[NAME: make clear diamonds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_CLEAR]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_DIAMOND_RED]
 +
[NAME: make red diamonds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_RED]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_DIAMOND_GREEN]
 +
[NAME: make green diamond]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_GREEN]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_DIAMOND_BLUE]
 +
[NAME: make blue diamonds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLUE]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_DIAMOND_YELLOW]
 +
[NAME: make yellow diamonds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_YELLOW]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_DIAMOND_BLACK]
 +
[NAME: make black diamonds]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLACK]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_RUBY_STAR]
 +
[NAME: make star rubies]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY_STAR]
 +
[SKILL:SMELT]
 +
 
 +
[REACTION:FREE_SAPPHIRE_STAR]
 +
[NAME: make star sapphires]
 +
[BUILDING:SMELTER:NONE]
 +
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE_STAR]
 +
[SKILL:SMELT]
 +
</pre>
 +
 
 +
 
 +
===Easy Adamantine===
 +
To get free adamantine wafers, add this to your reaction_smelter.
 
<pre>
 
<pre>
[REACTION:F_ADAMANTINE_WAFERS]
+
[REACTION:FREE_ADAMANTINE_WAFERS]
 
[NAME:create adamantine wafers]
 
[NAME:create adamantine wafers]
 
[BUILDING:SMELTER:NONE]
 
[BUILDING:SMELTER:NONE]
 
[PRODUCT:100:10:BAR:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:150]
 
[PRODUCT:100:10:BAR:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:150]
 
[SKILL:SMELT]
 
[SKILL:SMELT]
 +
</pre>
  
[REACTION:F_ADAMANTINE_THREAD]
+
For adamantine thread it would be:
 +
<pre>
 +
[REACTION:FREE_ADAMANTINE_THREAD]
 
[NAME:create adamantine thread]
 
[NAME:create adamantine thread]
 
[BUILDING:SMELTER:NONE]
 
[BUILDING:SMELTER:NONE]
 
[PRODUCT:100:1:THREAD:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:15000]
 
[PRODUCT:100:1:THREAD:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:15000]
 
[SKILL:SMELT]
 
[SKILL:SMELT]
 +
</pre>
  
[REACTION:F_OAK_WOOD]
+
 
[NAME:create Oak Wood]
+
===Easy Flux, Sand, and Ore===
 +
Add [REACTION_CLASS:FLUX] to any stone you have to turn it into a flux. This is in inorganic_stone_mineral, or inorganic_stone_layer Or, add [METAL_ORE:{metal name}:100] to turn it into an ore. It also bears noting that the metal can easily be an alloy, like steel or brass. Likewise, open inorganic_stone_soil and add [SOIL_SAND] to any soil to turn it into sand suitable for making glass with.
 +
 
 +
None of these cheats require creating a new world. Turn peat into glass, basalt into platinum, and combine iron, diorite, and coal to make steel.
 +
 
 +
 
 +
===Easy Metal===
 +
Open reaction_smelter and change any reactions you like. Remove the [FUEL] tag.
 +
to make them require no fuel. Remove the line(s) headed with [REAGENT:whatever] to make them require no reagents. For examples, here are the edited reactions for steel and adamantine.
 +
<pre>
 +
[REACTION:ADAMANTINE_WAFERS]
 +
[NAME:make adamantine wafers]
 
[BUILDING:SMELTER:NONE]
 
[BUILDING:SMELTER:NONE]
[PRODUCT:100:5:WOOD:NO_SUBTYPE:PLANT_MAT:OAK:WOOD][PRODUCT_DIMENSION:150]
+
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
 
[SKILL:SMELT]
 
[SKILL:SMELT]
  
[REACTION:F_COKE]
+
[REACTION:STEEL_MAKING]
[NAME:create coke (fuel)]
+
[NAME:make steel bars]
 
[BUILDING:SMELTER:NONE]
 
[BUILDING:SMELTER:NONE]
[PRODUCT:100:5:BAR:NO_SUBTYPE:COAL:COKE][PRODUCT_DIMENSION:150]
+
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STEEL]
 
[SKILL:SMELT]
 
[SKILL:SMELT]
 
</pre>
 
</pre>
 +
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.
  
Copy that into the end of your raw/objects/reaction_smelter.txt file.
 
 
Also, do not forget to add the lines below to raw/objects/entity_default.txt under [ENTITY:MOUNTAIN] (thats the Dwarves, I suggest you add the reactions at the end of permitted reactions list)
 
  
 +
===Create Wood===
 +
Add this:
 
<pre>
 
<pre>
[PERMITTED_REACTION:F_ADAMANTINE_WAFERS]
+
[REACTION:FREE_WOOD]
[PERMITTED_REACTION:F_ADAMANTINE_THREAD]
+
[NAME:create wood]
[PERMITTED_REACTION:F_OAK_WOOD]
+
[BUILDING:SMELTER:NONE]
[PERMITTED_REACTION:F_COKE]
+
[PRODUCT:100:5:WOOD:NO_SUBTYPE:PLANT_MAT:OAK:WOOD][PRODUCT_DIMENSION:150]
 +
[SKILL:SMELT]
 
</pre>
 
</pre>
 
+
to reaction_smelter.
Now generate a new world.
 
 
 
You can now produce these things at a Smelter for no material cost.
 

Revision as of 00:30, 23 April 2010

Template:AV Template:Elven

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).


Raw Editing

Raw files are located in the raw/objects directory

The most common use of editing raw files is to get free items, such as gems, adamantine, or flux.

When changing the raw files, you may or may not need to create a new world in order for your changes to be reflected.

Generally speaking, modifications to an existing entry in a raw file don't require a new world. Altering existing reactions or creatures is an example of this.

However, when adding or deleting entries, you need to create a new world for the changes to take place, and when deleting, it can and probably will render your old world unplayable as attempting to play worlds generated before the deletion will cause an error.


Creature Token Modifications

Modifying creature files does not require the creation of a new world. You can modify the physical attributes of a creature, make animals tamable and trainable, make your dwarves into short little bearded terminators, and much more.


Speedy Dwarves

Getting bored with slow dwarves?

Go into the creature_standard file and add the [SPEED:1] in somewhere in the top section of the entry.(or SPEED:0 if you're up to some psychedelic light speed traveling)

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.


Reaction Additions

There are now two reaction files: reaction_smelter and reaction_other. Additions to these lists will not take effect until you generate a new world. Note that if you edit an existing reaction entry (leaving the [REACTION:NAME] line unchanged) rather than add a new one, you will not need to generate a new world.

Free Gems

Fill in the name of a gem from the inorganic_stone_gem file and paste this in the reaction_smelter file to make your smelter spew out gems.

[REACTION:FREE_(insert gem name)]
[NAME: make (insert gem name)]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:(insert gem name)]
[SKILL:SMELT]

Note: You can change the skill used and the workshop, but make sure to keep it in the correct reaction file. For convience, here are all the precious gems in the game.

[REACTION:FREE_DIAMOND_LY]
[NAME: make light yellow diamonds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_LY]
[SKILL:SMELT]

[REACTION:FREE_DIAMOND_FY]
[NAME: make faint yellow diamonds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_FY]
[SKILL:SMELT]

[REACTION:FREE_EMERALD]
[NAME: make emeralds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:EMERALD]
[SKILL:SMELT]

[REACTION:FREE_RUBY]
[NAME: make rubies]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY]
[SKILL:SMELT]

[REACTION:FREE_SAPPHIRE]
[NAME: make sapphires]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE]
[SKILL:SMELT]

[REACTION:FREE_DIAMOND_CLEAR]
[NAME: make clear diamonds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_CLEAR]
[SKILL:SMELT]

[REACTION:FREE_DIAMOND_RED]
[NAME: make red diamonds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_RED]
[SKILL:SMELT]

[REACTION:FREE_DIAMOND_GREEN]
[NAME: make green diamond]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_GREEN]
[SKILL:SMELT]

[REACTION:FREE_DIAMOND_BLUE]
[NAME: make blue diamonds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLUE]
[SKILL:SMELT]

[REACTION:FREE_DIAMOND_YELLOW]
[NAME: make yellow diamonds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_YELLOW]
[SKILL:SMELT]

[REACTION:FREE_DIAMOND_BLACK]
[NAME: make black diamonds]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:DIAMOND_BLACK]
[SKILL:SMELT]

[REACTION:FREE_RUBY_STAR]
[NAME: make star rubies]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:RUBY_STAR]
[SKILL:SMELT]

[REACTION:FREE_SAPPHIRE_STAR]
[NAME: make star sapphires]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ROUGH:NO_SUBTYPE:STONE:SAPPHIRE_STAR]
[SKILL:SMELT]


Easy Adamantine

To get free adamantine wafers, add this to your reaction_smelter.

[REACTION:FREE_ADAMANTINE_WAFERS]
[NAME:create adamantine wafers]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:BAR:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

For adamantine thread it would be:

[REACTION:FREE_ADAMANTINE_THREAD]
[NAME:create adamantine thread]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:THREAD:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:15000]
[SKILL:SMELT]


Easy Flux, Sand, and Ore

Add [REACTION_CLASS:FLUX] to any stone you have to turn it into a flux. This is in inorganic_stone_mineral, or inorganic_stone_layer Or, add [METAL_ORE:{metal name}:100] to turn it into an ore. It also bears noting that the metal can easily be an alloy, like steel or brass. Likewise, open inorganic_stone_soil and add [SOIL_SAND] to any soil to turn it into sand suitable for making glass with.

None of these cheats require creating a new world. Turn peat into glass, basalt into platinum, and combine iron, diorite, and coal to make steel.


Easy Metal

Open reaction_smelter and change any reactions you like. Remove the [FUEL] tag. to make them require no fuel. Remove the line(s) headed with [REAGENT:whatever] to make them require no reagents. For examples, here are the edited reactions for steel and adamantine.

[REACTION:ADAMANTINE_WAFERS]
[NAME:make adamantine wafers]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANTINE]
[SKILL:SMELT]

[REACTION:STEEL_MAKING]
[NAME:make steel bars]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:STEEL]
[SKILL:SMELT]

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.


Create Wood

Add this:

[REACTION:FREE_WOOD]
[NAME:create wood]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:5:WOOD:NO_SUBTYPE:PLANT_MAT:OAK:WOOD][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

to reaction_smelter.