In other languages: Deutsch Polska Русский Turkish 中文

Application directory: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Cleanup)
Line 2: Line 2:


== Overview ==  
== Overview ==  
Depending on your installation method and OS, you will have one or two directories that contain Factorio assets.
Depending on your installation method and OS, you will have one or two directories that contain Factorio assets, and one that contains user data, such as saves and mods.


== User Data directory ==
== User Data directory ==
The user data directory is where personal files are stored, such as world saves. Search your computer for this directory, or type it into your file manager address bar.
The user data directory is where personal files are stored, such as world saves. Search your computer for this directory, or type it into your file manager address bar.


==== Windows ====
=== Locations ===  
%appdata%\Factorio


==== Mac OSX ====
Windows:
~/Library/Application Support/factorio


==== Linux ====
  %appdata%\Factorio
  ~/.factorio


==== Zip File ====
MacOSX:
The unzipped Factorio directory


A list of all things found here:
~/Library/Application Support/factorio


* Save games (as zip files)
Linux distributions:
* User-installed/created [[Mods]].
* User-installed/created scenarios.
* User configuration and settings storage
* [[Log File]] (factorio-*.log)
* Player data (player-data.json)


Note: Deleting the configuration file will result in a default replacement being generated upon the next Factorio launch.
~/.factorio
 
It is recommended to create backups from this directory (of saves, config, etc) before installing a new version, or installing mods.  


== Application directory ==
== Application directory ==
Line 38: Line 27:
* API documentation
* API documentation


==== Windows ====
Locations:
 
Windows:
 
  C:\Program Files (x86)\Steam\steamapps\common\Factorio
  C:\Program Files (x86)\Steam\steamapps\common\Factorio
  C:\Program Files\Factorio
  C:\Program Files\Factorio


==== Mac OSX ====
MacOSX:
 
  ~/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
  ~/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
  /Applications/factorio.app/Contents
  /Applications/factorio.app/Contents


==== Linux ====
Linux:
 
  ~/.factorio
  ~/.factorio
==== Zip File ====
The unzipped Factorio directory


== Changing the user data directory ==
== Changing the user data directory ==
Line 58: Line 49:
'''[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).
'''[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).


In order to change the user data directory, user must edit 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.
In order to change the user data directory, user must edit 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. 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.
 
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.


====Linux====
====Linux====
Line 78: Line 67:


Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.
Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.
== Installation from Zip File ==
The unzipped Factorio directory.
A list of all things found here:
* Save games (as zip files)
* User-installed/created [[Mods]].
* User-installed/created scenarios.
* User configuration and settings storage
* [[Log File]] (factorio-*.log)
* Player data (player-data.json)
Note: Deleting the configuration file will result in a default replacement being generated upon the next Factorio launch.
It is recommended to create backups from this directory (of saves, config, etc) before installing a new version, or installing mods.


== See also ==
== See also ==

Revision as of 21:00, 7 January 2017


Overview

Depending on your installation method and OS, you will have one or two directories that contain Factorio assets, and one that contains user data, such as saves and mods.

User Data directory

The user data directory is where personal files are stored, such as world saves. Search your computer for this directory, or type it into your file manager address bar.

Locations

Windows:

%appdata%\Factorio

MacOSX:

~/Library/Application Support/factorio

Linux distributions:

~/.factorio

Application directory

The application directory stores three things:

  • Factorio executables (./bin)
  • Data for vanilla Factorio (./data)
  • API documentation

Locations:

Windows:

C:\Program Files (x86)\Steam\steamapps\common\Factorio
C:\Program Files\Factorio

MacOSX:

~/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
/Applications/factorio.app/Contents

Linux:

~/.factorio

Changing the user data directory

You can create a file config-path.config to configure Factorio to any directory.

Please see this discussion (for MacOS, but should work on any other OS).

In order to change the user data directory, user must edit the location of the "write-data" entry in the file (Game install directory)/config/config.ini. This affects the location of mods, scenario and temp. If you want to move only the location of your save files you can change the the save directory using symlinks but this still means that all users of the computer will share the same data, including settings.

Linux

Update __Game_Install_directory/config-path.cfg

use-system-read-write-data-directories=true

Update __Game_Install_directory/config/config.ini

[path]
read-data=__PATH__executable__/../../data
write-data=.local/share/factorio

You could set the write-data value to .factorio if you prefer.

Once you have done this, you can remove write permissions to the entire game installation directory except for config/config.ini, which must be writable by all people who wish to play the game.

Note that if someone changes any options, in-game, those option changes will apply to everyone who plays on the same computer.

Installation from Zip File

The unzipped Factorio directory.

A list of all things found here:

  • Save games (as zip files)
  • User-installed/created Mods.
  • User-installed/created scenarios.
  • User configuration and settings storage
  • Log File (factorio-*.log)
  • Player data (player-data.json)

Note: Deleting the configuration file will result in a default replacement being generated upon the next Factorio launch.

It is recommended to create backups from this directory (of saves, config, etc) before installing a new version, or installing mods.


See also