[0.13.13] game.take_screenshot fails in non-ascii paths.
Posted: Wed Aug 03, 2016 8:19 pm
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)
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)