This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Niseg's profile picture

Session persistant multi-facet computer pulser (yet another?!)

Started by Niseg, 08 May 2013 - 01:51 AM
Niseg #1
Posted 08 May 2013 - 03:51 AM
The timer recipe kind of annoyed me and I kept writing simple computer program to do it online . At one point I decided to make a more general program that supports this and can be reconfigured on the fly. What motivated me to write it was a server crash that wiped all of my hand written programs. Recovering from such a crush with my pulser script is much easier

description code and uses
This is a pulser. will pulse any side the user specify at the rate of about 1 pulse every 0.5 seconds with a 20% duty cycle This allows you to make a very compact redstone controlled system

http://pastebin.com/Tje9gPhB

pastebin get Tje9gPhB startup


initialization

startup <side1> <side2> <side3> …

the <sides> can be replaced with : front , back, left , right, top, bottom

the program then would start, save the settings and start pulsing. if the program is ever stoped by a chunk unload or server reset it will reload the settings from file and start up.

starting the program without parameters or having a setting file will make it halt and display a usage massage .

changing the pulser setup
hold Ctrl-T and then do regular initialization.

I'm not sure if a program like this already exists but mine is pretty simple to setup and it will continue forever.

future plans

might consider duty cycle definition through command line but there are no real plan to change this
Zudo #2
Posted 23 May 2013 - 03:12 AM
There are many programs that do this… but it looks ok!