Page 1 of 1

[0.13.13] game.take_screenshot fails in non-ascii paths.

Posted: Wed Aug 03, 2016 8:19 pm
by eradicator
If the .zip version (installer version untested) of the game is unpacked and launched from a directory which's full-path contains unicode characters then the ingame function game.take_screenshot{} does not produce an output file. It does not matter if the function is run directly from the game (i.e. "/c game.take_screenshot{by_player=game.player}) or if a mod invokes the function (i.e. https://mods.factorio.com/mods/eradicat ... shotHotkey ). game.write_file still works. Renaming the path to not contain non-ascii characters anymore also works.

Example paths:
"D:\GAME/W7F+I\factorio\bin\x64\factorio.exe" (Japanese)
"D:\わっしょい漢字\factorio\bin\x64\factorio.exe" (Japanese)
"D:\äöüß\factorio\bin\x64\factorio.exe" (German)

Re: [0.13.13] game.take_screenshot fails in non-ascii paths.

Posted: Thu Aug 04, 2016 1:04 pm
by Klonan
Thanks for the report,

I can confirm the issue

Re: [0.13.13] game.take_screenshot fails in non-ascii paths.

Posted: Thu Aug 04, 2016 3:15 pm
by posila
Thanks for the report,
fixed for 0.13.14