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)
[0.13.13] game.take_screenshot fails in non-ascii paths.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
[0.13.13] game.take_screenshot fails in non-ascii paths.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [0.13.13] game.take_screenshot fails in non-ascii paths.
Thanks for the report,
I can confirm the issue
I can confirm the issue
Re: [0.13.13] game.take_screenshot fails in non-ascii paths.
Thanks for the report,
fixed for 0.13.14
fixed for 0.13.14