Space Engineers

Space Engineers

Ikke nok vurderinger
Easy Action Sequencer
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
3.930 KB
14. juli 2015 kl. 4:36
28. sep. 2016 kl. 9:35
6 ændringsbemærkninger ( vis )

Abonner for at downloade
Easy Action Sequencer

Beskrivelse
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: http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=481343273
Check out also my Jump Distance Dialer script: http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=484233284

THIS SCRIPT HAS BEEN IMPROVED TO SUPPORT MILLISECONDS, CHECK THIS OUT: http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=505625799
22 kommentarer
Maniac 17. feb. 2016 kl. 15:17 
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  [ophavsmand] 17. feb. 2016 kl. 5:02 
@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 kl. 15:01 
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 kl. 20:38 
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 kl. 18:46 
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 kl. 10:46 
Descripton looks promising. Thank you!
TheWarMaster97  [ophavsmand] 4. dec. 2015 kl. 9:47 
@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
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=566270789&searchtext=
I.C.E. 30. nov. 2015 kl. 11:37 
Seems as a great solution
TheWarMaster97  [ophavsmand] 30. nov. 2015 kl. 11:18 
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 kl. 10:42 
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.