You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to resume the program from a shutdown (ie: if the chunk unloaded then reloaded, or server restarted, or etc.).
I have a bit of this implemented already, but it's currently just "dead code" hanging there doing nothing.
I have an ideas for implementation, but I'm not sure how much I like it. A lot can go wrong and data can be lost.
It would first move any startup.lua, startup, and startup/ files/folders into a temporary directory. From there, it would create a new startup file that just runs dog with some specific arguments.
On program completion, it would restore the old files. Perhaps even reboot again so other startup files can run when the turtle returns.
Another idea would be to simply create (or enter) a startup folder and create something like 00_dog.lua which just runs the dog program. This can run into other issues though, if for example the user has some kind of operating system that runs from the main startup.lua, causing dog to never be rerun.
The text was updated successfully, but these errors were encountered:
I would like to be able to resume the program from a shutdown (ie: if the chunk unloaded then reloaded, or server restarted, or etc.).
I have a bit of this implemented already, but it's currently just "dead code" hanging there doing nothing.
I have an ideas for implementation, but I'm not sure how much I like it. A lot can go wrong and data can be lost.
It would first move any
startup.lua
,startup
, andstartup/
files/folders into a temporary directory. From there, it would create a new startup file that just runs dog with some specific arguments.On program completion, it would restore the old files. Perhaps even reboot again so other startup files can run when the turtle returns.
Another idea would be to simply create (or enter) a startup folder and create something like
00_dog.lua
which just runs the dog program. This can run into other issues though, if for example the user has some kind of operating system that runs from the mainstartup.lua
, causing dog to never be rerun.The text was updated successfully, but these errors were encountered: