Search found 2 matches

by mpk
Thu May 03, 2018 7:18 am
Forum: Modding help
Topic: [solved] game.write_file does not work at all
Replies: 3
Views: 2477

Re: game.write_file does not work at all

darkfrei wrote:See Factorio\script-output
Yup there it is, that solves it. Factorio file writes seem to take this directory always as their root :roll:
This should be noted in the api wiki.
by mpk
Wed May 02, 2018 7:00 pm
Forum: Modding help
Topic: [solved] game.write_file does not work at all
Replies: 3
Views: 2477

[solved] game.write_file does not work at all

hey everyone,
I'm trying to write data with game.write_file(path, data) however it does not work at all, neither in a mod nor when I run it via the ingame console with /c game.write_file('/home/user/text.txt', 'hello there')

when exactly does the game flush the written data? right after the call or ...

Go to advanced search