In other languages: Deutsch Polski Русский Türkçe 简体中文

Application directory: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(→‎User Data directory: - added player data, reworded config file deletion statement)
(%appdata% already points to roaming by default)
(15 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Languages}}
{{Languages}}
= Overview =
Depending on your installation method and OS, you will have one or two directories that contain Factorio assets.
== Application directory ==
The application directory stores
* Factorio executables (./bin)
* Data for vanilla Factorio (./data)
* API documentation


== User Data directory ==
== Overview ==  
* Save games (as zip files within ./saves)
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-installed/created [[Mods]] (./mods)
* User-installed/created [[scenarios]] (./scenarios)
* User configuration (./config)
* [[Log File]] (factorio-*.log)
* Player data (player-data.json)


Note: Deleting the configuration file will result in a replacement being generated upon the next Factorio launch.
== User data directory ==
The user data directory is where personal files are stored, such as world saves, mods, logs, or crash dump files. Search your computer for this directory, or type it into your file manager address bar.


It is recommended to create backups from this directory before installing a new version.
=== Locations ===


= Directory locations by OS and installation method =
Windows:
== Windows ==
=== Installation via Steam ===
Application directory:
C:\Program Files (x86)\Steam\steamapps\common\Factorio
User data directory:
%appdata%\factorio


=== Installation by Zip-package ===
%appdata%\Factorio
Application directory and User data directory will be the location to which Factorio was unpacked.


:For example, if you unpacked the zip to:
MacOSX:
C:\Factorio
:Then your saves can be found in:
C:\Factorio\saves
:and mods in:
C:\Factorio\mods


=== Installation via Installer ===
~/Library/Application Support/factorio
Application directory:
C:\Users\<username>\AppData\Roaming\Factorio
User data directory:
%appdata%\factorio


== MacOSx ==
Linux distributions:
The application should be by default installed in the Apps-folder.


Whereas the data is stored under
  ~/.factorio
  /users/<replace with your username>/Library/Application Support/factorio


Which is equivalent to
When using Steam on Windows, the config.ini, achievements.dat, modded-achievements.dat and player-data.json can be found in  
~/Library/Application Support/factorio
You can type in this into the Finder (press SHIFT-COMMAND-G for goto folder) and put in exactly this line.'
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]).


The factorio internal application-data can be found (when you have installed it) in
C:\Program Files (x86)\Steam\userdata\[user number]\427520\remote


/Applications/factorio.app/Contents/data
== Application directory ==
The application directory stores three things:
* Factorio executables (./bin)
* Data for vanilla Factorio (./data)
* API documentation (./doc-html)


Same directory structure as in Application support.
Locations:


== Linux ==
Windows:
Data is stored under
__Game_Install_Directory__


=== Installation via Steam ===
C:\Program Files (x86)\Steam\steamapps\common\Factorio
Data is stored under
  C:\Program Files\Factorio
  ~/.factorio


=Changing the application directory=
MacOSX:


You can create a file <code>config-path.config</code> to configure Factorio to any directory.
~/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents
/Applications/factorio.app/Contents


'''[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).
Linux:


'''Windows''': there is also the [[Install_guide#Installer_or_Zip-Package|ZIP-Package]], that can be installed in any directory.
~/.factorio


== Changing the user data directory ==


=== The following discussion applies to version 0.11.13. ===
You can create a file <code>config-path.config</code> to configure Factorio to any directory.


In order to change the application 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.
'''[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).


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.
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.


===Linux===
====Linux====
Update <code>__Game_Install_directory/config-path.cfg</code>  
Update <code>__Game_Install_directory/config-path.cfg</code>  


Line 101: Line 72:
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.


= See also =
== 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.
 
== See also ==
* [[Download and Installation]]
* [[Download and Installation]]
* [[Install Guide]]
* [[Install guide]]
* [[Mods]]
* [[Mods]]
* [[Installing Mods]]
* [[Installing Mods]]
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&t=3389 Forum discussion]
* [http://www.factorioforums.com/forum/viewtopic.php?f=34&t=3389 Forum discussion]
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&t=8294 Linux Version - Save games in $HOME somewhere]
* [http://www.factorioforums.com/forum/viewtopic.php?f=5&t=8294 Linux Version - Save games in $HOME somewhere]

Revision as of 11:33, 13 September 2018


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, mods, logs, or crash dump files. 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

When using Steam on Windows, the config.ini, achievements.dat, modded-achievements.dat and player-data.json can be found in

C:\Program Files (x86)\Steam\userdata\[user number]\427520\remote

Application directory

The application directory stores three things:

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

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.

See also