Space Engineers

Space Engineers

Not enough ratings
Easy Action Sequencer
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.930 KB
14 Jul, 2015 @ 4:36am
28 Sep, 2016 @ 9:35am
6 Change Notes ( view )

Subscribe to download
Easy Action Sequencer

Description
This script executes a list of actions with delays between them. it can be used to create for example an automated factory using only 1 timer block.
all you need to know is written in the comments inside the script.

UPDATE 1: with the new version 1.091 this (and MANY others) script was screwed up, but now it works again.

HOT FIX 28/09/2016: Fixed compilation error. (when checking code)

SLIDER UPDATE: now you can set slider values

I also made an example world: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=481343273
Check out also my Jump Distance Dialer script: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=484233284

THIS SCRIPT HAS BEEN IMPROVED TO SUPPORT MILLISECONDS, CHECK THIS OUT: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=505625799
22 Comments
Maniac 17 Feb, 2016 @ 3:17pm 
Oh god... I went back to the text panel after reading your reply, confident I would find all in order, but not wanting to just assume, and there were 4 empty lines past the last command. I swear, I double, triple, even quadruple checked for why it wouldn't work.
Eventually, I just assumed that there was a problem with delays, or long command sequences, because the first thing I used this for, was to change the radius of 2 lights during an alarm, worked fine. Welp, at least I learned how to rename blocks with scripts. That gives me lots of ideas. >:D
TheWarMaster97  [author] 17 Feb, 2016 @ 5:02am 
@Maniac Last time i used this script (months ago) it was working, maybe you wrote a blank new line at the end of the list of instructions. regarding the sliders, as long as you know their name, you can use them.
Maniac 16 Feb, 2016 @ 3:01pm 
Well, I wrote my first real script. When it runs, it renames the timer block to _____-0. I set it to run at the end of the action sequence, so I don't have to reset it manually, and my automatic reloader is ready to go again.
Maniac 15 Feb, 2016 @ 8:38pm 
When either this script, or the advanced version, gets to the end of the list of instructions, the programmable block puts out an error:

"Caught exception during execution of script: index was outside the bounds of the array"

I then have to manually change the name of the timer block back to -0, and recompile the script
Maniac 14 Feb, 2016 @ 6:46pm 
I was able to use the "radius" slider for lights with this script, even though it's not listed in the available sliders list. Would it be possible to modify the color sliders as well? I would rather only have to use one script.
I.C.E. 4 Dec, 2015 @ 10:46am 
Descripton looks promising. Thank you!
TheWarMaster97  [author] 4 Dec, 2015 @ 9:47am 
@I.C.E. i'm busy for the next 2-3 weeks, but in the mean time you can try this new script by Coren, i think it does what you wanted
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=566270789&searchtext=
I.C.E. 30 Nov, 2015 @ 11:37am 
Seems as a great solution
TheWarMaster97  [author] 30 Nov, 2015 @ 11:18am 
Maybe i can define multiple sequences in the same text panel, give them a name in the first line of each sequence and choose which one to run with the script arguments, and the script will stop executing the sequence when it finds another sequence name.
I.C.E. 30 Nov, 2015 @ 10:42am 
1000 symbols for one comment :(

Same example with different solution:
One text panel, one program block, and one timer, just one more text command for the script 'pause'. Script will go throught the sequence, and when it comes to the 'pause' line it only changes TB name to the right iteration number, but doesn't trigger it. Script is on hold until you manually ran it by yourself. Once you do it will continue from the point it stopped first time.
This solution is way more simple.