https://wiki.factorio.com/api.php?action=feedcontributions&user=WPettersson&feedformat=atomOfficial Factorio Wiki - User contributions [en]2024-03-28T20:02:34ZUser contributionsMediaWiki 1.38.2https://wiki.factorio.com/index.php?title=Application_directory&diff=124672Application directory2016-04-19T12:32:41Z<p>WPettersson: Add Steam under Linux details</p>
<hr />
<div>{{Languages}}<br />
The application directory stores<br />
* the saves (every save is a zip-file)<br />
* the [[Mods]]<br />
* scenarios<br />
* configuration<br />
* [[Log File]] (since v0.10.0).<br />
<br />
The directory structure is self-explaining.<br />
<br />
You can delete for example the configuration-file; it will be generated new with the defaults.<br />
<br />
It is recommended to create backups from this directory, before you install a new version.<br />
<br />
== Windows ==<br />
=== Installation by Zip-package ===<br />
Application directory is the same as the unpacked factorio directory.<br />
<br />
For example, if you unpacked the zip to<br />
C:\Factorio<br />
Then your saves can be found in <br />
C:\Factorio\saves<br />
and mods in <br />
C:\Factorio\mods<br />
<br />
=== Installation via Installer ===<br />
The installation package will extract based on UAC (User Access Control) standards. In other words, the factorio directory will be wherever you installed it (Program files by default) and the user data folders (saves, player data etc) can be found in<br />
C:\Users\<username>\AppData\Roaming\Factorio<br />
For computers running Windows Vista or newer (with UAC active):<br />
%appdata%\factorio<br />
<br />
== MacOSx ==<br />
The application should be by default installed in the Apps-folder.<br />
<br />
Whereas the data is stored under<br />
/users/<replace with your username>/Library/Application Support/factorio<br />
<br />
Which is equivalent to<br />
~/Library/Application Support/factorio<br />
You can type in this into the Finder (press SHIFT-COMMAND-G for goto folder) and put in exactly this line.'<br />
Or you can use in Finder the 'Find a folder' and write '~/Library/Application Support' (See [http://www.factorioforums.com/forum/viewtopic.php?f=49&t=9345 Can't find Mods folder]).<br />
<br />
The factorio internal application-data can be found (when you have installed it) in<br />
<br />
/Applications/factorio.app/Contents/data<br />
<br />
Same directory structure as in Application support.<br />
<br />
== Linux ==<br />
Data is stored under<br />
__Game_Install_Directory__<br />
<br />
=== Installation via Steam ===<br />
Data is stored under <br />
~/.factorio<br />
<br />
==Changing the application directory==<br />
<br />
You can create a file <code>config-path.config</code> to configure Factorio to any directory.<br />
<br />
'''[http://www.factorioforums.com/forum/viewtopic.php?f=49&t=12819&p=87281#p87281 Please see this discussion]''' (for MacOS, but should work on any other OS).<br />
<br />
'''Windows''': there is also the [[Install_guide#Installer_or_Zip-Package|ZIP-Package]], that can be installed in any directory.<br />
<br />
<br />
=== The following discussion applies to version 0.11.13. ===<br />
<br />
It is possible to change the application directory location for Factorio.<br />
<br />
This can be done by editing the location of the "write-data" entry in the file <code>__Game_Install_directory/config/config.ini</code>. This affects the location of mods, scenario and temp.<br />
<br />
If you want to move only the location of your save files you can '''[[Application_Directory/Changing_the_save_directory|change the the save directory using symlinks]]''' but this still means that all users of the computer will share the same data, including settings.<br />
<br />
===Linux===<br />
Update <code>__Game_Install_directory/config-path.cfg</code> <br />
<br />
use-system-read-write-data-directories=true<br />
<br />
Update <code>__Game_Install_directory/config/config.ini</code><br />
<br />
[path]<br />
read-data=__PATH__executable__/../../data<br />
write-data=.local/share/factorio<br />
<br />
You could set the <code>write-data</code> value to '''<code>.factorio</code>''' if you prefer.<br />
<br />
Once you have done this, you can remove write permissions to the entire game installation directory '''except''' for <code>config/config.ini</code>, which '''must''' be writable by all people who wish to play the game.<br />
<br />
Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.<br />
<br />
== See also ==<br />
<br />
* [[Download and Installation]]<br />
* [[Install Guide]]<br />
* [[Mods]]<br />
* [[Installing Mods]]<br />
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&t=3389 Forum discussion]<br />
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&t=8294 Linux Version - Save games in $HOME somewhere]</div>WPettersson