In other languages: 日本語

Log file: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(added example for posting log files on the forum.)
(→‎File layout: punctuation/spelling)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Log files store details about the run of Factorio and contain information that help when solving bugs.
{{Languages}}
Log files exist from version 0.10.0.
Log files store details about the run of Factorio and contain information that help when solving bugs. Log files are created from version 0.10.0 onwards.


== Log File Location ==
== Log file location ==
Factorio keeps log files in the [[Application Directory]], that is next to the saves and mods directories.
Factorio keeps log files in the [[user data directory]], next to the saves and mods directories. It is a .log file that can be opened with any text editor.


The file you need most of the time is '''factorio-current.log'''.
The file you need most of the time is '''factorio-current.log'''.
Backup copy of the log file from previous run is in factorio-previous.log.
Backup copy of the log file from previous run is in factorio-previous.log.


== Bug Reporting ==
== File layout ==
Log files are important for finding crashes, especially ones related to automatic updates and graphic settings.
 
Please attach the current log file to all crash reports.
The file is a long list of lines. The first column is the amount of seconds the game has been running. Typically, game starting will take anywhere from 10-60 secs.
 
The first line is a print about your build of the game. For the Steam version for Linux, this will be:
 
<code>0.000 2017-04-24 21:39:48; Factorio 0.15.1 (build 29050, linux64, steam)</code>
 
It will vary by version, OS, and origin of the game.
 
Next follows information about the install of the game itself, like the specific version of the OS, and arguments provided to the game launch. It will also print read/write data paths, which can give clues about where the game stores the files it creates, and its install location.
 
It then prints off a bunch of information about graphics, hardware, and starts loading mods. The base game is loaded first, then all the mods the user has installed. It will print the order it loads mods in, this can be useful for debugging when a mod causes the game to fail to init. The log file also gives some insight to the interior code of Factorio, right after checking checksums it will load the PlayerData.cpp file, which compares the player-data.json to the cloud version (if running on steam) and checks for changes.


=== How to post bug report on the forum ===
After initializing mods, it will checksum them (used for the mod portal, to detect new versions) and start loading sprites, creating atlas bitmaps. At some point, it will print <code>Sprites loaded</code> and start compressing the atlas depending on graphics settings. It will then load the sound engine, check custom inputs, and then finish.
use the [code] bbcode tag, or if it is long then use also [spoiler] tag.
Example bbcode:
[spoiler=log file][code]
353957.462433  Info Logger.cpp:148: 2015:01:14 10:44:20; Factorio 0.11.12 (Build 13084, linux64)
353957.642242  Info ModManager.cpp:204: Loading mod core 0.0.0 (data.lua)
353957.688258  Info ModManager.cpp:204: Loading mod base 0.11.12 (data.lua)
353958.522936  Info ModManager.cpp:204: Loading mod Belts+ 0.1.0 (data.lua)
353959.314368  Info ModManager.cpp:204: Loading mod Force Fields 1.0.0 (data.lua)
353960.008032  Info ModManager.cpp:204: Loading mod Robo-Charge 0.3.2 (data.lua)
353960.844953  Info ModManager.cpp:204: Loading mod Treefarm-Mod 1.2.4 (data.lua)
353961.587995  Info ModManager.cpp:204: Loading mod UraniumPower 0.3.0 (data.lua)
353962.365319  Info ModManager.cpp:204: Loading mod Yuoki 0.2.20 (data.lua)
353963.513723  Info ModManager.cpp:204: Loading mod base 0.11.12 (data-updates.lua)
353974.654409  Info AtlasSystem.cpp:152: Initial atlas bitmap size is 8192
353974.718934  Info AtlasSystem.cpp:91: Created atlas bitmap 8192x8182
353974.722727  Info AtlasSystem.cpp:91: Created atlas bitmap 8192x6347
354011.404610  Notice Scenario.cpp:126: Loading map /home/cube/development/factorio/Factorio/saves/x1.zip
354011.443453  Info Scenario.cpp:160: Map version 0.11.10-0
354011.457256  Info PrototypeMigrationList.cpp:82: Activating migration Treefarm-Mod/100.json
354011.457406  Info PrototypeMigrationList.cpp:82: Activating migration Treefarm-Mod/110.json
354011.596778  Notice MigrationList.cpp:65: Applying migration: Robot Charging Station: RoboCharge.lua
354011.610766  Notice MigrationList.cpp:65: Applying migration: Yuoki Industries: Yuoki_0.2.6.lua
354015.703084  Info LocaleProvider.cpp:114: Using locale files from the pre 0.11.0 structure (__Treefarm-Mod__/script-locale/en.cfg)
354019.170917  Info GlobalContext.cpp:470: Goodbye
[/code][/spoiler]


As soon as the user loads a map, it will state so, and specify the process of loading the map, loading from a few .dat files. The user is now free to play.


== Bug Reporting ==
Log files contain information helpful to diagnose any type of bug, accordingly they are required in any official bug report to be made in the factorio forums. Please follow the [https://forums.factorio.com/viewtopic.php?f=7&t=3638 bug report instructions] closely when making a report.


== Privacy ==
== Privacy ==
Log files (in 0.10.5 and later) contain date and time of your Factorio session, your updater login name and full paths for some files belonging to Factorio or mods.
Log files contain the system date and time of your Factorio session, your updater login name and full paths for some files belonging to Factorio or mods. Typically all of the information in a log file is not sensitive.
Before 0.10.5 the log also could contain your updater token (not a password :-) ) as a part of update request URLs.
 
{{C|Main}}

Latest revision as of 22:56, 21 November 2024

Log files store details about the run of Factorio and contain information that help when solving bugs. Log files are created from version 0.10.0 onwards.

Log file location

Factorio keeps log files in the user data directory, next to the saves and mods directories. It is a .log file that can be opened with any text editor.

The file you need most of the time is factorio-current.log. Backup copy of the log file from previous run is in factorio-previous.log.

File layout

The file is a long list of lines. The first column is the amount of seconds the game has been running. Typically, game starting will take anywhere from 10-60 secs.

The first line is a print about your build of the game. For the Steam version for Linux, this will be:

0.000 2017-04-24 21:39:48; Factorio 0.15.1 (build 29050, linux64, steam)

It will vary by version, OS, and origin of the game.

Next follows information about the install of the game itself, like the specific version of the OS, and arguments provided to the game launch. It will also print read/write data paths, which can give clues about where the game stores the files it creates, and its install location.

It then prints off a bunch of information about graphics, hardware, and starts loading mods. The base game is loaded first, then all the mods the user has installed. It will print the order it loads mods in, this can be useful for debugging when a mod causes the game to fail to init. The log file also gives some insight to the interior code of Factorio, right after checking checksums it will load the PlayerData.cpp file, which compares the player-data.json to the cloud version (if running on steam) and checks for changes.

After initializing mods, it will checksum them (used for the mod portal, to detect new versions) and start loading sprites, creating atlas bitmaps. At some point, it will print Sprites loaded and start compressing the atlas depending on graphics settings. It will then load the sound engine, check custom inputs, and then finish.

As soon as the user loads a map, it will state so, and specify the process of loading the map, loading from a few .dat files. The user is now free to play.

Bug Reporting

Log files contain information helpful to diagnose any type of bug, accordingly they are required in any official bug report to be made in the factorio forums. Please follow the bug report instructions closely when making a report.

Privacy

Log files contain the system date and time of your Factorio session, your updater login name and full paths for some files belonging to Factorio or mods. Typically all of the information in a log file is not sensitive.