In other languages:

Log file: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Update info, explain the factorio init process in a bit more depth)
Line 1: Line 1:
{{Languages}}
{{Languages}}
Log files store details about the run of Factorio and contain information that help when solving bugs.
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 files exist from version 0.10.0.


== 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 [[Application 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.
== 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:
<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 it's 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 <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.
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. On this author's computer, Factorio with no mods takes about 1 min to load.


== Bug Reporting ==
== Bug Reporting ==
Line 14: Line 32:


=== How to post bug report on the forum ===
=== How to post bug report on the forum ===
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]


Log files are usually extremely helpful in bug reports, as it gives the devs some insight to any errors or notices the game produces as it fails. Including the whole log file is important, as it can be difficult to judge what parts of the log file are useful to Wube. Since the log file can be extremely large, posting the log to an external service like [https://pastebin.com pastebin] is a good idea. Simply link it when you make the bug report. You may also be asked to provide your world save.


== 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 (in 0.10.5 and later) 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. Before 0.10.5 the log also could contain your updater token (not a password) as a part of update request URLs. This has since been removed. 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.

Revision as of 01:23, 29 April 2017

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 Application 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 it's 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. On this author's computer, Factorio with no mods takes about 1 min to load.


Bug Reporting

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.

How to post bug report on the forum

Log files are usually extremely helpful in bug reports, as it gives the devs some insight to any errors or notices the game produces as it fails. Including the whole log file is important, as it can be difficult to judge what parts of the log file are useful to Wube. Since the log file can be extremely large, posting the log to an external service like pastebin is a good idea. Simply link it when you make the bug report. You may also be asked to provide your world save.

Privacy

Log files (in 0.10.5 and later) 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. Before 0.10.5 the log also could contain your updater token (not a password) as a part of update request URLs. This has since been removed. Typically all of the information in a log file is not sensitive.