[solved] data.write_file() - serpent to disk within data.lua
Posted: Sat Sep 10, 2016 10:10 pm
Is it possible to get a .write_file() that's accessible from data.lua and data-final-fixes.lua?
Sometimes I make stupid mistake in my prototypes and it takes ages to try and work out where I've gone wrong because I can't serpent objects to file.
The only write_file() I'm aware of is part of the _G.game object, which isn't available from data.lua or data-final-fixes.lua scope.
If not available, serpent would also be a useful addition to the _G that's present during data.lua and data-final-fixes.lua.
Sometimes I make stupid mistake in my prototypes and it takes ages to try and work out where I've gone wrong because I can't serpent objects to file.
The only write_file() I'm aware of is part of the _G.game object, which isn't available from data.lua or data-final-fixes.lua scope.
If not available, serpent would also be a useful addition to the _G that's present during data.lua and data-final-fixes.lua.