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.34:Saved game folder

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.34"). 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|Exceptional|21:05, 11 May 2013 (UTC)}}
+
{{quality|Fine|00:48, 29 April 2012 (UTC)}}{{av}}
{{av}}
 
  
The '''saved game folder''' is the location in where a certain region's information and necessary files are stored and accessed by ''Dwarf Fortress''. Knowledge on the technicals of the saved game folder is crucial if one wishes to [[Importing and exporting worlds|import or export saves]].
+
The '''saved game folder''' is the location in where a certain region's information and necessary files are stored and accessed by Dwarf Fortress. Knowledge on the technicals of the saved game folder is crucial if one wishes to [[Importing and exporting worlds|import or export saves]].
  
 
== Location ==
 
== Location ==
Individual [[world generation|worlds]] are stored in the '''data/save/''' directory in the Dwarf Fortress root directory.  By default, they are saved in the format: ''region#'', where # is a number, starting with region1 and then incrementing; however, world directories can be renamed without consequence '''if the game is not running''' (this will not change the actual name of the world). On modern versions of Windows, if Dwarf Fortress is installed in the Program Files directory, the saved game folders are instead located at "Users\Myname\Appdata\Local\VirtualStore\Program Files\Dwarf Fortress\data\save" unless the game was invoked with "Run as Administrator".
+
Individual [[world generation|worlds]] are stored in the '''data/save/''' directory in the Dwarf Fortress root directory.  By default, they are saved in the format: ''region#'', where # is a number, starting with region1 and then incrementing; however, world directories can be renamed without consequence '''if the game is not running''' (this will not change the actual name of the world). On Windows 7, if Dwarf Fortress is installed in the Program Files subdirectory, the saved game folders are instead located at "Users\Myname\Appdata\Local\VirtualStore\Program Files\Dwarf Fortress\data\save". And for the steam version at: "Users\USERNAME\AppData\Roaming\Zeal Game Studio\A Game of Dwarves"
  
 
If you have modified your [[d_init.txt]] to seasonally backup, then the backup folders will be named ''region#-season-year'', for example region1-spr-202.
 
If you have modified your [[d_init.txt]] to seasonally backup, then the backup folders will be named ''region#-season-year'', for example region1-spr-202.
  
This can become confusing if you frequently [[cheating|savescum]]. There is no way to change the name of these folders inside the game, but it is safe to change them using the standard methods of your operating system if the game is not running.  However, '''never''' alter or delete the folder with the name of the game you're playing ''while saving'' from the game, or while that game is running! This can cause fatal flaws many dwarf-seasons later, and is one known cause of the "Nemesis Unit Load Failed" crash error.
+
This can become confusing if you frequently [[cheating|savescum]]. There is no way to change the name of these folders inside the game, but it is safe to change them using the standard methods of your operating system if the game is not running.  However, '''never''' alter or delete the folder with the name of the game you're playing ''while saving'' from the game, or while that game is running! This can cause fatal flaws many dwarf-seasons later, and is one known cause of the [http://www.bay12games.com/forum/index.php?topic=34936.0| "Nemesis Unit Load Failed"] crash error.
  
 
== Contents ==
 
== Contents ==
Line 18: Line 17:
 
** There is also a ''graphics'' folder for [[Graphics set repository|graphics]] for creatures.
 
** There is also a ''graphics'' folder for [[Graphics set repository|graphics]] for creatures.
 
** Finally, there may be an ''interaction examples'' folder. This, along with any files or folders not present in the aforementioned two folders, can be safely deleted.
 
** Finally, there may be an ''interaction examples'' folder. This, along with any files or folders not present in the aforementioned two folders, can be safely deleted.
* A series of files named ''art_image-#.dat''. As their name would suggest, these files store information about art and are necessary for proper functioning. Don't replace!
+
* A series of files named ''art_image-#.dat''. As their name would suggest, these files store information about art and are necessary for proper functioning. Replacement with other files is not recommended.
 
* A series of files named ''feature-#-#.dat''. The amount of these files is heavily dependent on the size of the world, and they store the information about map features (such as [[river]]s, [[cavern]]s, [[magma sea]]s, and [[adamantine|spires]]). Replacing these files will very rarely crash the game, but usually will cause unwanted effects such as magma seas present on the surface. These files do not seem to cause too many crashes when removed, and do not exist in some peculiar worlds.
 
* A series of files named ''feature-#-#.dat''. The amount of these files is heavily dependent on the size of the world, and they store the information about map features (such as [[river]]s, [[cavern]]s, [[magma sea]]s, and [[adamantine|spires]]). Replacing these files will very rarely crash the game, but usually will cause unwanted effects such as magma seas present on the surface. These files do not seem to cause too many crashes when removed, and do not exist in some peculiar worlds.
 
* A series of files named ''region_snapshot-#.dat''. These are the historical maps available in [[Legends|Legends mode]].
 
* A series of files named ''region_snapshot-#.dat''. These are the historical maps available in [[Legends|Legends mode]].
Line 26: Line 25:
  
 
Missing one or more of the aforementioned important files may indicate a problem with the save; this is a very common source of crashes.
 
Missing one or more of the aforementioned important files may indicate a problem with the save; this is a very common source of crashes.
 
For basic backups, though, all you need to keep to is: Always copy the whole folder, not parts of it.
 
  
 
== Backing up saves ==
 
== Backing up saves ==
Line 51: Line 48:
 
The golden rule is: if you want to restore a savegame from backup, you should rename that backup to indicate that. Remember to do that while the game is not running, per the instructions for savescumming above.
 
The golden rule is: if you want to restore a savegame from backup, you should rename that backup to indicate that. Remember to do that while the game is not running, per the instructions for savescumming above.
  
==Warning==
+
[[Category:Modding]]
Save folders can be large, ranging from 20 MB for small saves to several hundred megabytes for large saves. If you run out of hard drive space while saving, Dwarf Fortress will ''pretend'' to save correctly, but the save will be unloadable. Opening other saves to verify that they still work, then saving and exiting, will corrupt your previously-working saves as well. Make sure you have sufficient free disk space before launching Dwarf Fortress! {{bug|2587}}
+
[[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)