spinter Posted June 30, 2013 Share Posted June 30, 2013 and can create a log file? and io.open can use to write a script with file.log ====VIAF==== Spinter 155° "Pantere Nere" TsSimComms My Site aiupgrade.net Link to comment Share on other sites More sharing options...
spinter Posted July 1, 2013 Author Share Posted July 1, 2013 none? ====VIAF==== Spinter 155° "Pantere Nere" TsSimComms My Site aiupgrade.net Link to comment Share on other sites More sharing options...
ajax Posted July 2, 2013 Share Posted July 2, 2013 Could you post a little more information about what you want to do? Your original post is a bit cryptic. Link to comment Share on other sites More sharing options...
Grimes Posted July 2, 2013 Share Posted July 2, 2013 io and lfs are sanitized within the simulator. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum Link to comment Share on other sites More sharing options...
spinter Posted July 2, 2013 Author Share Posted July 2, 2013 thanks Grimes! mist.debug.writeData(mist.utils.serialize,{'test ', 'Ok '}, 'mission_log.txt') I tried to use this and it works! But if you do not want to use Mist1.1 how can I do can help me with a sample example? ====VIAF==== Spinter 155° "Pantere Nere" TsSimComms My Site aiupgrade.net Link to comment Share on other sites More sharing options...
Grimes Posted July 2, 2013 Share Posted July 2, 2013 Speed wrote that code, but some of it is based on publicly available lua functions for table serialization and file writing. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum Link to comment Share on other sites More sharing options...
Midnight Posted July 6, 2013 Share Posted July 6, 2013 Hi, I think I'm on subject here. Is it possible for lua to write a log file and then be exported to a website for instance? I believe it is mentioned in the SLMOD7 manual that export is possible. Also wondered what format would be best if it could be done. Might be handy if an update of a member's flying hours and some other stats could be logged directly to web. I hope I am planting a seed here:music_whistling: Link to comment Share on other sites More sharing options...
Recommended Posts