209 posts
Location
In your fridge.
Posted 18 October 2012 - 02:17 AM
Surprisingly, a quick search here on the forums tells me no one has posted this before, so here's my request: Programs should keep running even after leaving Minecraft. Not while Minecraft is not being played, I know that's impossible, just after returning, like if you "X" out the game, or "red" out if you are on a Mac, and log back in.
Possibly include an option like "hardcore mode" for turtles, in case people want to go back to the previous versions' method of quitting.
Alternative ways of getting around this, or support for this suggestion are very welcome.
Thank you.
–Lettuce
2005 posts
Posted 18 October 2012 - 05:27 AM
Um…you know that you can just let minecraft run in the background and accomplish this already, right? People don't generally do this because they want to be there, playing the game and able to respond to any situations that arise.
If you want to stop playing and do something else, just access a computer or turtle console. "Restore" the window size (unmaximize), and then use the mouse to click on another program window. The minecraft game continues to run, day turns to night, your turtles execute their programs, mobs spawn and move about, all while you do something else.
222 posts
Posted 18 October 2012 - 05:38 AM
Not everypony wants to run their computers 24/7, so I second this. But I think there are some technical difficulties in it, since ComputerCraft's computers are not full-emulated computers like RP2 ones, so you can't save all the register states and so on… Maybe there are any possibility to "freeze" the Lua VM state, but I don't know. I'm just a simple pony, not a programmer or software developer…
2005 posts
Posted 18 October 2012 - 07:04 AM
Um…you know that you can just let minecraft run in the background and accomplish this already, right? People don't generally do this because they want to be there, playing the game and able to respond to any situations that arise.
If you want to stop playing and do something else, just access a computer or turtle console. "Restore" the window size (unmaximize), and then use the mouse to click on another program window. The minecraft game continues to run, day turns to night, your turtles execute their programs, mobs spawn and move about, all while you do something else.
222 posts
Posted 18 October 2012 - 07:54 AM
As I said, not everypony wants to run their computer 24/7. And not everypony has 16 gigs of memory to allow Minecraft been loaded all the time. It's just stupid to suggest "Don't turn off your computer and don't close the Minecraft". For now you can't close Minecraft while your turtle is quarrying since if you do that, you would have to go down to the quarry hole, grab your turtle, and start a new quarry, because program would be aborted and all the internal variables values would be lost.
1243 posts
Location
Indiana, United States
Posted 18 October 2012 - 09:28 AM
There are a few persistent variable APIs you can use to save a program's state. Barring that, I believe dan200 and Cloudy are changing the Lua engine to allow this.
2447 posts
Posted 18 October 2012 - 09:35 AM
This has been suggested before and is being worked on.
And stop with the everypony crap. The word is everybody. Seriously I don't care if you're a brony or whatever, but people saying everypony just annoy me.
222 posts
Posted 18 October 2012 - 09:40 AM
I'm sorry. I didn't want to annoy you… Please forgive me for that… :P/>/>
2005 posts
Posted 18 October 2012 - 05:46 PM
I'm glad to hear that CC is going to add program state save support. It is not strictly necessary, but it would be nice (sometimes) to have the option of having your programs still be running after a reboot rather than having to always be writing to files for everything.
But the question wasn't strictly about state saving (though I suppose it would necessitate it). The question was about making it so that the world would reflect the state it would have been in if it had been running the entire time since the last save. I'm just pointing out that if you want to let your world run for a few hours while you do something else, you can already do this.
It's just that most people (including me) almost never want to.
Now, what I would like is if there were a way to speed up the rate at which the world is simulated. That I might actually use. But the reason I don't leave my worlds running while I surf or whatever is because I'd rather have the opportunity to intervene in events as they develop, not because there isn't any easy way to let things happen without my input.
209 posts
Location
In your fridge.
Posted 19 October 2012 - 12:35 AM
No ChunLing, actually I meant to request that ComputerCraft "save its state." I didn't know what to call it. I actually said I know emulating what Minecraft would look like after running for a few hours would be unnecessary, and even impossible, I would think. I didn't want Minecraft running in the background just so my turtle can finish its program. I should have been more clear.
Cloudy, my apologies. I could not find the topic, so I assumed it didn't exist. Is there anywhere I can look to find "planned features?"
2005 posts
Posted 19 October 2012 - 02:39 AM
Okay, sorry for misinterpreting your request. Saving the state of running programs isn't at all impossible, it just isn't supported yet.