j9murphy Posted April 6, 2020 Posted April 6, 2020 I'm trying to do file output for logging in the export environment and cant seem to get any log output. The io library seems to not work (yes I commented the sanitize line), i cant seem to use env.info(), I also tried this which creates the file, but it never gets any out put. file = io.open("Export.log", "w") if file then file.write("---Log: Start-----", "\n") file.flush() file:close() end any ideas to get this to work or get env.info to work in an export?
PravusJSB Posted April 7, 2020 Posted April 7, 2020 I have limited experience in the export stuff, but seems you might not have called in those modules, try to all; ``` local base = _G local io = base.io local lfs = base.lfs ``` not sure you can use env.info here? so maybe also add; local log = base.log and use; log.write("string", log.INFO, "string message") Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans. Discord: PravusJSB#9484 twitch.tv/pravusjsb https://www.patreon.com/XSAF https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu Work with me on Fiverr: https://www.fiverr.com/pravusjsb
Recommended Posts