[solved] game.write_file does not work at all
Posted: Wed May 02, 2018 7:00 pm
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 does it cache all calls to write_data and waits for the game to close?
I'm on ubuntu, is there anything special I need to be aware of other than sufficient permissions?
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 does it cache all calls to write_data and waits for the game to close?
I'm on ubuntu, is there anything special I need to be aware of other than sufficient permissions?