Posted 21 January 2013 - 01:50 PM
Hey all,
I work in a computing environment with volatile power stability and Minecraft closes often which makes programs such as quarries a PITA as I'm forced to manually reset them which removes the convenient nature of quarrying - I may as well do it myself if it's not automated properly.
My question is, is it possible for a program or API or whatever to be written that saves the state of a program at each step such that the program can be resumed when a computer/turtle is relaunched?
The way I see this working is perhaps by running everything through an API and running a resume program on startup that checks for a program snapshot and resumes it if possible. The API would record the current line/column that the program is at and all variables at every step and save them to file.
This sounds difficult to achieve and probably resource intensive but I lack the knowledge to decide if it is indeed possible so it has come to pass that I ask a pro.
Enlighten me?
I work in a computing environment with volatile power stability and Minecraft closes often which makes programs such as quarries a PITA as I'm forced to manually reset them which removes the convenient nature of quarrying - I may as well do it myself if it's not automated properly.
My question is, is it possible for a program or API or whatever to be written that saves the state of a program at each step such that the program can be resumed when a computer/turtle is relaunched?
The way I see this working is perhaps by running everything through an API and running a resume program on startup that checks for a program snapshot and resumes it if possible. The API would record the current line/column that the program is at and all variables at every step and save them to file.
This sounds difficult to achieve and probably resource intensive but I lack the knowledge to decide if it is indeed possible so it has come to pass that I ask a pro.
Enlighten me?