Hi,
there is in the LuaGameScript class an access to the write_file function of the os lua lib. Working on a mod that display timers I'm asked to add a current local time visualisation on the GUI. To answer this, after some lua digging, I found the os.clock() function (https://www.lua.org/pil/22.1.html) I can work with in lua, but here is no access to this function through the Factorio API.
Is it possible to make this function accessible through the Factorio API.
Thanks.
Access to current real time
Re: Access to current real time
Nope, sorry, it isn't deterministic, so would cause desyncs if usedTarrke wrote: Fri Nov 09, 2018 12:14 pm Is it possible to make this function accessible through the Factorio API.
Re: Access to current real time
Thanks for the quick answer.Klonan wrote: Fri Nov 09, 2018 12:15 pm Nope, sorry, it isn't deterministic, so would cause desyncs if used
Do you know any workaround for this maybe?