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 v0.31:Raw file

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 "v0.31"). 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}}
 
{{av}}
 
{{Quality|Fine}}
 
{{Quality|Fine}}
'''Raw files''' are text files found in the '''\raw\objects''' subfolder of Dwarf Fortress (used for [[world generation]]) and in '''\data\save\<region-name>\raw\objects''' (for already generated worlds).  These files can be looked through to discover various specifics of game items, materials, and creatures, and can be changed to alter how the game behaves.  They are sometimes referred to by players as just "the raws".
+
'''Raw files''' are text files found in the \raw\objects subfolder of Dwarf Fortress.  These files can be looked through to discover various specifics of game items, materials, and creatures, and can be changed to alter how the game behaves.  They are sometimes referred to by players as just "the raws".
  
The '''\raw\graphics''' subfolder of Dwarf Fortress is used to store user-customizable [[graphics sets]].
+
The \raw\graphics subfolder of Dwarf Fortress is used to store user-customizable {{L|graphics sets|graphics sets}}.
  
Dwarf Fortress is not an open source program, so most [[modding]] of the game is limited to altering the raws or doing [[memory hacking]].
+
Dwarf Fortress is not an open source program, so most {{L|modding|modding}} of the game is limited to altering the raws or doing {{L|memory hacking}}.
 
 
Duplicating the raw files can cause several bugs, and even crashes. The game gets very messy and buggy when you do it.
 
  
 
==Syntax of raw files==
 
==Syntax of raw files==
Line 22: Line 20:
 
===Types of content:===
 
===Types of content:===
 
*BODY - body parts and structures
 
*BODY - body parts and structures
*BODY_DETAIL_PLAN - similar to CREATURE_VARIATION, but used for defining tokens related to body parts (specifically materials, tissues, the assignment thereof, and body part positions, relative sizes, etc.)
+
*BODY_DETAIL_PLAN - similar to the following creature variation file type, but used for defining tokens related to body parts (specifically materials, tissues, the assignment thereof, and body part positions, relative sizes, etc.)
 
*BUILDING - custom workshops
 
*BUILDING - custom workshops
 
*CREATURE - creatures
 
*CREATURE - creatures
Line 51: Line 49:
 
*MATERIAL_TEMPLATE - definitions of information common to groups of materials (referenced all over the place)
 
*MATERIAL_TEMPLATE - definitions of information common to groups of materials (referenced all over the place)
 
*PLANT - definitions of plants, their materials, and their derivitives
 
*PLANT - definitions of plants, their materials, and their derivitives
*REACTION - reactions/custom workshop jobs (turn items into other items through dwarven effort)
+
*REACTION - reactions/custom workshop jobs (turn items into other items though dwarven effort)
 
*TISSUE_TEMPLATE - defines templated tissues for use with BODY_DETAIL_PLAN objects or in creatures
 
*TISSUE_TEMPLATE - defines templated tissues for use with BODY_DETAIL_PLAN objects or in creatures
  
Usually empty strings are used to divide different types of structures like the fine name and [OBJECT:] or different entries, however everything which is not a token besides the 1st string (which is the filename) is understood as comments and is not considered.
+
 
 +
    * usually the empty strings are used to divide different types of structures like the fine name
 +
and [OBJECT:] or different entries, however everything which is not a token besides the 1st string
 +
(which is the filename) is understood as comments and is not considered.
  
 
The tokens are enclosed in square brackets ([TOKEN:VALUES]).
 
The tokens are enclosed in square brackets ([TOKEN:VALUES]).
  
When a world is generated, the raw files are copied from <game folder>/raw/ to <game folder>/data/save/REGION/raw/. It is currently unknown how much these can then be changed without breaking the save.
+
When a world is generated, the raw files are moved from <game folder>/raw/ to <game folder>/data/save/REGION/raw/. It is currently unknown how much these can then be changed without breaking the save. Unlike [[40d:raw file|previous versions]] of the game, raw files are not "compiled" into the data/objects folder. Indeed, said folder does not exist.
  
 
A list of tokens can be seen at [[:Category:Tokens]].
 
A list of tokens can be seen at [[:Category:Tokens]].
  
{{Category|Files}}
+
[[Category:Files]]
 
{{Category|Modding}}
 
{{Category|Modding}}

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)