Page 1 of 1
How to read files on the device?
Posted: Mon Aug 23, 2021 5:39 pm
by adorableparker
I'm trying to make a mod that can backup blueprints by copying the "blueprint-storage.dat" file regularly, but Factorio doesn't seem to allow "io.open()" to read the file. What should I do?
Re: How to read files on the device?
Posted: Mon Aug 23, 2021 7:27 pm
by eradicator
Factorio mods are sandboxed. Access to any kind of non-game data is not allowed, to keep determinisim across all platforms. You'll have to do it as an external script, not as a mod.