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

This subforum contains all the issues which we already resolved.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

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

Post 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)
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.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5341
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post by Klonan »

Thanks for the report,

I can confirm the issue
posila
Factorio Staff
Factorio Staff
Posts: 5440
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post by posila »

Thanks for the report,
fixed for 0.13.14
Post Reply

Return to “Resolved Problems and Bugs”