1029 posts
Location
Missouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension
Posted 14 March 2015 - 03:57 PM
This is another simple script I've made. I was frustrated that the "falling" game wasn't pausable, which made it rather useless. This short script will pause whatever you tell it to run with F1, and resume with any key.
For example, "pause falling" will allow you to hit F1 to pause the falling game.
To get:
pastebin get
SNSmv4W6 pause
Edited on 14 March 2015 - 07:34 PM
355 posts
Location
Germany
Posted 14 March 2015 - 04:09 PM
+1 for being neat :)/>
797 posts
Posted 14 March 2015 - 04:16 PM
Nice idea, and from looking at the code I don't think it will kill off timers. Good job.
1029 posts
Location
Missouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension
Posted 14 March 2015 - 08:31 PM
It saves 1 timer. It's not perfect, it could definitely be better.
7083 posts
Location
Tasmania (AU)
Posted 14 March 2015 - 09:19 PM
Erm, you seem to be resuming on any event that isn't a keypress? … like rednet messages, etc?
Edited on 14 March 2015 - 08:20 PM
673 posts
Posted 15 March 2015 - 05:35 PM
You can pause falling with the space key I thought?
Still a very neat program
Edited on 15 March 2015 - 04:35 PM
1029 posts
Location
Missouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension
Posted 15 March 2015 - 05:38 PM
You can pause falling with the space key I thought?
Still a very neat program
You can't pause worm with space.
673 posts
Posted 15 March 2015 - 06:50 PM
You can pause falling with the space key I thought?
Still a very neat program
You can't pause worm with space.
Very true :P/>
1610 posts
Posted 16 March 2015 - 04:14 AM
You can pause falling with the space key I thought?
Still a very neat program
You can't pause worm with space.
Very true :P/>
And what if I want to pause shell? You can't pause shell with space.
673 posts
Posted 16 March 2015 - 08:20 PM
You can pause falling with the space key I thought?
Still a very neat program
You can't pause worm with space.
Very true :P/>
And what if I want to pause shell? You can't pause shell with space.
I was simply pointing that out, since the OP said that it was originally to be for falling. I'm aware it still has uses.
287 posts
Location
Somewhere in the middle of nowhere.
Posted 17 March 2015 - 11:48 PM
Wow. You released this near the same time I was working on something similar. Mine does support multiple event saving when the program is paused, but it's not mainly for pausing the program.
My program is supposed to allow for program persistence when shutting down a computer and turning it back on. It's also supposed to be able to allow you to go back to any point in time when a program was used.
For example, you could go back to when you had a program open in edit if you accidentally exited without saving. Naming it the "Time Machine" :P/>
Overall, this program seems to work fine though. No problems so far. Good job. +1
Edited on 17 March 2015 - 10:49 PM
1029 posts
Location
Missouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension
Posted 18 March 2015 - 02:42 AM
How are you resuming after a reboot???
You can't just save a coroutine or something! WHAT KIND OF SORCERY SCIENCE IS THIS???
Edited on 18 March 2015 - 01:42 AM
1610 posts
Posted 18 March 2015 - 03:24 AM
How are you resuming after a reboot???
You can't just save a coroutine or something! WHAT KIND OF SORCERY SCIENCE IS THIS???
You pass the code as a string, functions to save state and variables and stuff are injected after every instruction? IDK…
7083 posts
Location
Tasmania (AU)
Posted 18 March 2015 - 05:54 AM
I quite liked the technique used
here. Flogged the HDD, of course, and it was never quite finished; but I still thought it to be rather clever.
1610 posts
Posted 18 March 2015 - 12:49 PM
I quite liked the technique used
here. Flogged the HDD, of course, and it was never quite finished; but I still thought it to be rather clever.
That is pretty neat. It wouldn't work so well with programs that take a while to process and/or use random numbers or the HTTP API, but otherwise it's a pretty neat solution.
287 posts
Location
Somewhere in the middle of nowhere.
Posted 18 March 2015 - 08:42 PM
I quite liked the technique used
here. Flogged the HDD, of course, and it was never quite finished; but I still thought it to be rather clever.
I did do something similar to that. I wish coroutines could be saved to files, though.
541 posts
Location
Melbourne, Australia
Posted 26 March 2015 - 11:44 AM
This is really neat, seems like an awesome concept.