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: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 "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:
{{Quality|Superior|13:25, 5 August 2013 (UTC)}}
+
= Introduction =
{{av}}'''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 set repository|graphics sets]].
+
The modding of the Dwarf Fortress game is mostly limited to the things the author allowed us to do via text files because the application is not an open-source one.
 +
This page describes the main idea of the raw file.
  
Dwarf Fortress is not an open source program, so most [[modding]] of the game is limited to altering the raws or doing [[memory hacking]].
+
= What is a "raw file"? =
  
==Syntax of raw files==
+
== Where are they? ==
 +
A "raw file" is a text file which is stored in your <game folder>/raw/ folder.
 +
There're 2 subfolders: "graphics" and "objects".
 +
 
 +
The first one contains information about a special feature which supports replacement of ascii characters for creatures with actual pictures.
 +
The second one contains all the major moddable info about the game.
 +
 
 +
== How does the game understands their content? ==
 +
 
 +
===Syntax===
  
 
  filename
 
  filename
Line 34: Line 43:
  
 
The tokens are enclosed in square brackets ([TOKEN:VALUES]).
 
The tokens are enclosed in square brackets ([TOKEN:VALUES]).
 +
*[http://www.dwarffortresswiki.net/index.php/Category:Tokens The list of tokens]
  
 
When the game is started the program "compiles" each file from <game folder>/raw/objects folder and converts them in actual data files which are placed in <game folder>/data/objects folder with the same names. This is made every time you start the game so if you make any changes to file structure or remove some files don't forget to clear the /data/objects folder as well for the game to avoid presense of data files which are no longer supported by raw files (the engine does not check for it yet).
 
When the game is started the program "compiles" each file from <game folder>/raw/objects folder and converts them in actual data files which are placed in <game folder>/data/objects folder with the same names. This is made every time you start the game so if you make any changes to file structure or remove some files don't forget to clear the /data/objects folder as well for the game to avoid presense of data files which are no longer supported by raw files (the engine does not check for it yet).
  
A list of tokens can be seen at [[:Category:Tokens]].
+
[[Category:Files]]
 
 
{{Category|Files}}
 
{{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)