Application directory/Changing the save directory: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Cleanup to prep for page move)
Line 1: Line 1:
{{merge|Application Directory|Related subject}}
== How to set up a different save directory ==
http://www.factorioforums.com/forum/viewtopic.php?f=6&t=2078&p=15323#p15323
There is a file config-paths.cfg, two directories up from the binary, which points to the config directory with file config.ini inside. In this file, there is a section "paths" and inside it variable "write-data", which you can change to point anywhere you like.
This directory contains four subdirs: saves, mods, scenarios and temp, so you would probably have to share these as well (unless you want to do some symlink trickery, but then you wouldn't need moving the directory in the first place).
=== Relocating only the save directory ===
By default the save location is at this path:
By default the save location is at this path:


* Windows (Zip file): <code>{installdirectory}\saves</code>
* Windows (Zip file): <code><install directory>\saves</code>
* Windows (Installer): <code>C:\Users\{username}\AppData\factorio\saves</code>
* Windows (Installer): <code>C:\Users\<username>\AppData\factorio\saves</code>
* OSX: <code>~/Library/"Application Support"/factorio/saves</code>
* OSX: <code>~/Library/"Application Support"/factorio/saves</code>
* Linux: ???
* Linux: ~/.factorio/saves
 


To store just your saves in something like Dropbox, do the following while the game isn't running:
To store just your saves in something like Dropbox, do the following while the game isn't running:


* Move your saves to the new location
# Move your saves to the new location
* Remove the existing saves directory
# Remove the existing saves directory
* Make a symlink to the new saves directory
# Make a symlink to the new saves directory
 


For our examples I'll assume I've created a directory in my Dropbox named factorio and created another directory inside that called saves:
For our examples I'll assume I've created a directory in my Dropbox named factorio and created another directory inside that called saves:
Line 27: Line 19:
* OSX: <code>~/Dropbox/factorio/saves</code>
* OSX: <code>~/Dropbox/factorio/saves</code>


* Windows:
===Windows:===
** Open a command prompt as administrator: <code>Start Menu->All Programs->Accessories->Right-click on Command Prompt and select Run as Administrator</code>
# Open a command prompt as administrator: <code>Start Menu->All Programs->Accessories->Right-click on Command Prompt and select Run as Administrator</code>
** Change to the factorio directory: <code>cd \{installdirectory}</code> or <code>cd \Users\{username}\AppData\factorio</code>
# Change to the factorio directory: <code>cd \<install directory></code> or <code>cd \Users\<username>\AppData\factorio</code>
** Make the link: <code>mklink /D saves D:\Dropbox\factorio\saves</code>
# Make the link: <code>mklink /D saves D:\Dropbox\factorio\saves</code>
** If done correctly, should look like this: <code>05/06/2014  07:57 PM    <SYMLINKD>    saves [d:\Dropbox\factorio\saves]</code>
# If done correctly, should look like this: <code>05/06/2014  07:57 PM    <SYMLINKD>    saves [d:\Dropbox\factorio\saves]</code>
* OSX:
 
** Open Terminal
===OSX:===
** Change to the directory: <code>cd ~/Library/"Application Support"/factorio/"</code>
# Open Terminal
** Create the symlink: <code>ln -s ~/Dropbox/factorio/saves</code>
# Change to the directory: <code>cd ~/Library/"Application Support"/factorio/"</code>
** If done correctly, <code>ls -alF</code> should show something like: <code>lrwxr-xr-x  1 username  staff      37 May  6 17:40 saves -> /Users/username/Dropbox/factorio/saves</code>
# Create the symlink: <code>ln -s ~/Dropbox/factorio/saves</code>
# If done correctly, <code>ls -alF</code> should show something like: <code>lrwxr-xr-x  1 username  staff      37 May  6 17:40 saves -> /Users/username/Dropbox/factorio/saves</code>





Revision as of 05:46, 15 May 2014

By default the save location is at this path:

  • Windows (Zip file): <install directory>\saves
  • Windows (Installer): C:\Users\<username>\AppData\factorio\saves
  • OSX: ~/Library/"Application Support"/factorio/saves
  • Linux: ~/.factorio/saves


To store just your saves in something like Dropbox, do the following while the game isn't running:

  1. Move your saves to the new location
  2. Remove the existing saves directory
  3. Make a symlink to the new saves directory


For our examples I'll assume I've created a directory in my Dropbox named factorio and created another directory inside that called saves:

  • Windows: D:\Dropbox\factorio\saves
  • OSX: ~/Dropbox/factorio/saves

Windows:

  1. Open a command prompt as administrator: Start Menu->All Programs->Accessories->Right-click on Command Prompt and select Run as Administrator
  2. Change to the factorio directory: cd \<install directory> or cd \Users\<username>\AppData\factorio
  3. Make the link: mklink /D saves D:\Dropbox\factorio\saves
  4. If done correctly, should look like this: 05/06/2014 07:57 PM <SYMLINKD> saves [d:\Dropbox\factorio\saves]

OSX:

  1. Open Terminal
  2. Change to the directory: cd ~/Library/"Application Support"/factorio/"
  3. Create the symlink: ln -s ~/Dropbox/factorio/saves
  4. If done correctly, ls -alF should show something like: lrwxr-xr-x 1 username staff 37 May 6 17:40 saves -> /Users/username/Dropbox/factorio/saves


Don't load the same save on two different computers at the same time

Dropbox will generate a sync error and create alternate files, other sync programs may have different behaviors.