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.34:Importing and exporting worlds"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (moved Importing and Exporting Games to DF2012:Importing and exporting worlds: Deletion notice but indication on talk page against deletion)
(major revision)
Line 1: Line 1:
{{delete|This page is orphaned and it's not clear if the instructions are applicable to all versions. It should probably be moved into a version-specific namespace, fixed up, and linked to from somewhere, or just deleted.}}
+
{{av}}
  
Found a great site that you want to share with others? Are people asking you for your "world gen parameters" or "seed"?
+
Although Dwarf Fortress is a single-player game, it is still common to incorporate a social aspect into the game. For example, you may have found a great site that you want to share with others, want to play a save or embark someone else posted, or maybe simply want to back up your world or game. There are two primary methods for importing and exporting worlds in Dwarf Fortress: exchanging the seed and exchanging the save.
Maybe you want to play a save or embark someone else posted? Maybe you just want to back up your world or your game and save it for later?
 
  
This page is for you.
+
== Seed ==
  
There are two ways of moving worlds in and out of DF: The seed, or the save.
+
When people say "the seed", they usually mean "the [[world token|world gen parameters]]", but seed is shorter to say. Provided the versions of Dwarf Fortress are similar enough and no [[modding]] has taken place on either end, using a person's world gen parameters suffices to generate the same worlds as they did. Unfortunately, this method is incapable of also moving around any events that happened after world generation ended, including the fortresses or adventurers that may have taken place.
  
= Seed =
+
If modding has taken place, the world (but still not any events past worldgen) can still be exchanged if both receiver and transmitter have the exact same modification. Moving the world through this method may be slow for the receiver, especially for worlds with a long history.
  
When people say "the seed", they usually mean "the world gen parameters", but seed is shorter to say. Using a person's world gen parameters, you can generate the same world in your game that they did in theirs (provided your versions of DF are similar enough). Of course you won't get their fort, or anything else they built in that world, just the world as it was when it was genned.
+
===Export===
 +
Start the game in [[Legends mode]], and press {{k|P}}. Your Dwarf Fortress root folder should now contain several new files including a text file with phrase "world_gen_param" in its name. That's the one people want. Copy or email the file or the text inside it to the receiver, or simply store the file in a safe place to be able to regenerate the world later.
  
==Export the seed if you haven't embarked:==
+
This process is more difficult during [[Fortress mode|fortress]] or [[Adventure mode|adventure]] play, because the world cannot be loaded in Legends mode. During fortress mode, load up your fortress and press {{k|Esc}}. Go to "export local image". Export local images of however much of you fortress you want (select only one level of it to save time exporting); the exported image is not important. Your Dwarf Fortress root folder should now contain several new files including a text file with phrase "world_gen_param" in its name. That is the one people want. As before, copy or email the file or its contents to whatever purpose was intended.
Start the game in Legends mode, and press P. Your Dwarf Fortress folder should now contain several new files including a text file with phrase "world_gen_param" in its name. That's the one people want. Copy/Paste the text inside it into your forum post (use spoiler tags so people don't have to scroll as much).
 
(You can delete the extra files too if you want)
 
  
==Export the seed if you've already embarked:==
+
During adventure play, the "export local image" function is not available. If this is the case, it is necessary to make a copy of the save. From the Dwarf Fortress root directory, navigate to "data/save". From there, locate the folder with the region name to export parameters of, and copy the entire folder. Then, paste the folder into the same "data/save" directory. Now, navigate to dwarf fortress and load the region with the name "Copy of ..." or "... copy" or the like, and retire or starve the adventurer. Then, load the same copy in Legends mode and press {{k|P}} to export the same "world_gen_param" file.
Load up your fortress and press escape repeatedly until you reach the "Return, Save, key bindings, abandon fort, blah blah blah" options menu. Go to "export local image". Export local images of however much of you fortress you want (select only one level of it to save time exporting). Your Dwarf Fortress folder should now contain several new files including a text file with phrase "world_gen_param" in its name. Thats the one people want. Copy/Paste the text inside it into your forum post (use spoiler tags so people don't have to scroll as much).
 
(You can delete the extra files too if you want)
 
  
==Using a seed someone else posted==
+
After these processes, the extra files in the Dwarf Fortress root directory can be safely deleted. Addtionally, after the adventure strategy, the copy of the region can also be deleted.
Open your Dwarf Fortress folder, go to Data, then Init. Open the text file called "world_gen.txt". Copy/Paste your parameters at the bottom of that file. Save and close it.
 
Open Dwarf Fortress. Go to "Design new world with parameters". Worlds that you have parameters for are listed by title on the right. Choose your newly acquired world from the list and hit enter.
 
  
=Save=
+
===Import===
The save folder contains all the information on your world, and all the things you have done to it since you started playing. Use this if you want to share your actual *fortress* rather than just the pristine un-played world.
+
Open your Dwarf Fortress root directory, go to Data, then Init. Open the text file called "world_gen.txt". Copy/Paste the parameters given to the bottom of that file. Make sure to save and close the file.
Moving save folders around is also a useful way to back up your games while keeping clutter to a minimum in the Continue Game menu.
 
  
==Finding the save==
+
Next, open Dwarf Fortress. Go to "Design new world with parameters". Worlds that you have parameters for are listed by the title on the right. Choose your newly acquired world from the list and hit enter. Note that this process may take a while.
Your saved game is located in your Dwarf Fortress folder inside the "Data" folder. The save folder will contain one or more sub-folders, each one holding one of your worlds, and a "current" folder whose workings I do not currently understand. Until someone more knowledgeable updates this entry, I suggest only having one world per save folder at a time if you plan on moving them around a lot.
 
  
==Giving the save to someone==
+
==Save==
Upload the save folder (preferably zipped) to your favorite file host, or better yet to the [http://dffd.wimbli.com Dwarf Fortress File Deopt] (in the community saves section maybe? I honestly don't know, I've never done it before).
+
The [[Saved game folder|save folder]] contains all the information on your world, and all the things you have done to it since you started playing. Use this if you want to share your actual fortress or adventure rather than just the pristine unplayed world, or if the world has already been played in and the previous fortresses or adventures are important for the purpose. Moving save folders around is also a useful way to back up your games while keeping clutter to a minimum in the Continue Game menu.
  
==Getting the save from someone==
+
Additionally, moving the world by save preserves all mods and graphics. Therefore, this may be the preferred method when the world is based on a modded game. Moving the world in this way is also significantly easier than by seed, but it may take up more disk space and will be harder to transfer.
Move your own save folder somewhere safe, then drop the other person's save folder in it's place. Now proceed to pray that the other person hasn't modified their raw files, because if they have then you are in for a considerable inconvenience that is beyond the scope of this tutorial. People using heavily modified games will usually opt to just upload their entire game folder.
+
 
 +
===Location===
 +
Your saved game is located in your Dwarf Fortress folder inside the "data/save" folder. The save folder will contain one or more sub-folders, each one holding one of your worlds, and a "current" folder. The "current" folder is used to track the changes to the active world while Dwarf Fortress is running; it is not important unless Dwarf Fortress is open, and can safely be deleted otherwise.
 +
 
 +
===Export===
 +
Upload the entire save folder (preferably compressed) to your favorite file host, or better yet to the [http://dffd.wimbli.com Dwarf Fortress File Deopt].
 +
 
 +
===Import===
 +
Simply drop the other person's save folder in the "data/save", and the game can be played.

Revision as of 00:36, 29 April 2012

This article is about an older version of DF.

Although Dwarf Fortress is a single-player game, it is still common to incorporate a social aspect into the game. For example, you may have found a great site that you want to share with others, want to play a save or embark someone else posted, or maybe simply want to back up your world or game. There are two primary methods for importing and exporting worlds in Dwarf Fortress: exchanging the seed and exchanging the save.

Seed

When people say "the seed", they usually mean "the world gen parameters", but seed is shorter to say. Provided the versions of Dwarf Fortress are similar enough and no modding has taken place on either end, using a person's world gen parameters suffices to generate the same worlds as they did. Unfortunately, this method is incapable of also moving around any events that happened after world generation ended, including the fortresses or adventurers that may have taken place.

If modding has taken place, the world (but still not any events past worldgen) can still be exchanged if both receiver and transmitter have the exact same modification. Moving the world through this method may be slow for the receiver, especially for worlds with a long history.

Export

Start the game in Legends mode, and press P. Your Dwarf Fortress root folder should now contain several new files including a text file with phrase "world_gen_param" in its name. That's the one people want. Copy or email the file or the text inside it to the receiver, or simply store the file in a safe place to be able to regenerate the world later.

This process is more difficult during fortress or adventure play, because the world cannot be loaded in Legends mode. During fortress mode, load up your fortress and press Esc. Go to "export local image". Export local images of however much of you fortress you want (select only one level of it to save time exporting); the exported image is not important. Your Dwarf Fortress root folder should now contain several new files including a text file with phrase "world_gen_param" in its name. That is the one people want. As before, copy or email the file or its contents to whatever purpose was intended.

During adventure play, the "export local image" function is not available. If this is the case, it is necessary to make a copy of the save. From the Dwarf Fortress root directory, navigate to "data/save". From there, locate the folder with the region name to export parameters of, and copy the entire folder. Then, paste the folder into the same "data/save" directory. Now, navigate to dwarf fortress and load the region with the name "Copy of ..." or "... copy" or the like, and retire or starve the adventurer. Then, load the same copy in Legends mode and press P to export the same "world_gen_param" file.

After these processes, the extra files in the Dwarf Fortress root directory can be safely deleted. Addtionally, after the adventure strategy, the copy of the region can also be deleted.

Import

Open your Dwarf Fortress root directory, go to Data, then Init. Open the text file called "world_gen.txt". Copy/Paste the parameters given to the bottom of that file. Make sure to save and close the file.

Next, open Dwarf Fortress. Go to "Design new world with parameters". Worlds that you have parameters for are listed by the title on the right. Choose your newly acquired world from the list and hit enter. Note that this process may take a while.

Save

The save folder contains all the information on your world, and all the things you have done to it since you started playing. Use this if you want to share your actual fortress or adventure rather than just the pristine unplayed world, or if the world has already been played in and the previous fortresses or adventures are important for the purpose. Moving save folders around is also a useful way to back up your games while keeping clutter to a minimum in the Continue Game menu.

Additionally, moving the world by save preserves all mods and graphics. Therefore, this may be the preferred method when the world is based on a modded game. Moving the world in this way is also significantly easier than by seed, but it may take up more disk space and will be harder to transfer.

Location

Your saved game is located in your Dwarf Fortress folder inside the "data/save" folder. The save folder will contain one or more sub-folders, each one holding one of your worlds, and a "current" folder. The "current" folder is used to track the changes to the active world while Dwarf Fortress is running; it is not important unless Dwarf Fortress is open, and can safely be deleted otherwise.

Export

Upload the entire save folder (preferably compressed) to your favorite file host, or better yet to the Dwarf Fortress File Deopt.

Import

Simply drop the other person's save folder in the "data/save", and the game can be played.