mulark / factorio_benchmark_scripts

Windows and Linux scripts to automate the Factorio inbuilt benchmark
MIT License
1 stars 1 forks source link

Windows script only logs avg_ms #1

Closed mulark closed 6 years ago

mulark commented 6 years ago

While Linux version logs a lot more.

mulark commented 6 years ago

The issue is that on Windows attempting to redirect the output of the Factorio executable is not possible. Thus, all information that is only available from the executable's output can not be logged easily.

mulark commented 6 years ago

This may be workaroundable by editing the executable to function as a console application. Reference: https://www.reddit.com/r/factorio/comments/6itmpl/headless_server_chat_log/djael2k/ and https://www.reddit.com/r/factorio/comments/6vavx6

mulark commented 6 years ago

An idea I had is to run the game with the Linux subsystem for Windows, and see if it is affected by this issue. If possible, the bash script may work with little modification.

mulark commented 6 years ago

By using Visual Studio's developer command prompt, it is possible to use the editbin /subsystem:console factorio.exe command. Performing this action will allow for output redirection of lines not otherwise logged to factorio-current.log. Thus, on Windows it is possible to achieve logging parity with the bash script.

mulark commented 6 years ago

Closed via f066c4a

At some point in the .16 release output redirection on Windows started working.