Posted 13 June 2015 - 02:24 PM
Hey guys, so this is the first time I have messed with computercraft and I wanted to share my program with you guys! I wanted a script to precisely control each rod in my big reactor, but I couldn't find one online, except for scripts that just use the setAllControlRods() function.. So here is what I have come up with.
Version: 1.0 2015-06-13 (initial release)
Pastebin script: http://pastebin.com/3QKRZ6FV
Screenshot:
Installation:
to install my program you can do:
pastebin get 3QKRZ6FV startup
I actually save the script as power… but it doesn't really matter.
setup:
You will need a big reactor with any number of control rods.
1 adv computer
6 adv monitors
If you set the reactor behind the adv computer and the monitors stacked in a 2x3 on top of the computer, then you should be able to run the script just fine, otherwise you'll have to modify the first two lines:
I have not had any issues with my script yet, so if you guys find any please let me know :)/> I am still trying to improve on it. If any of you require a marked up copy of the script to see what all it actually does and why, then let me know and I'll post one on pastebin. My reactor utilizes 13 rods, the script will be able to handle any number of rods. I have not been able to max out my power output yet, so I have not seen what happens when there is more power usage than what the reactor can handle, but I can hope the script will keep running just fine. Also of note, I do not display the heating of the reactor… I know I fail.
Thanks for reading!
Version: 1.0 2015-06-13 (initial release)
Pastebin script: http://pastebin.com/3QKRZ6FV
Screenshot:
Spoiler
Installation:
to install my program you can do:
pastebin get 3QKRZ6FV startup
I actually save the script as power… but it doesn't really matter.
setup:
You will need a big reactor with any number of control rods.
1 adv computer
6 adv monitors
If you set the reactor behind the adv computer and the monitors stacked in a 2x3 on top of the computer, then you should be able to run the script just fine, otherwise you'll have to modify the first two lines:
local r1 = peripheral.wrap("back") --Big Reactor
local mon = peripheral.wrap("top") --Monitors
I have not had any issues with my script yet, so if you guys find any please let me know :)/> I am still trying to improve on it. If any of you require a marked up copy of the script to see what all it actually does and why, then let me know and I'll post one on pastebin. My reactor utilizes 13 rods, the script will be able to handle any number of rods. I have not been able to max out my power output yet, so I have not seen what happens when there is more power usage than what the reactor can handle, but I can hope the script will keep running just fine. Also of note, I do not display the heating of the reactor… I know I fail.
Thanks for reading!