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

BigReactors Control Script - Up to 16 Turbines (extension of direwolf20's script)

Started by jlkon13, 27 August 2015 - 08:37 AM
jlkon13 #1
Posted 27 August 2015 - 10:37 AM
This is my new BigReactors control script. It is based on direwolf20's program, but it can control up to 16 Turbines and 1 single Reactor.
The first time you run it the script will calculate the rodLevels for 1 turbine, for 2 turbines, for 3 turbines, … for n turbines. To ensure a faster startup the next time you run it the program saves all rodLevels in a file called "config.txt".
Additionally you need some bundled redstone cables to get this working. The computer will output a signal for each turbine on the assigned channel, if the steam flow should be turned off, because each turbine should operate at 1800 rpm. (You can change this manually at the end of the file, if you want.)
For more information on the original script visit: https://www.youtube....h?v=l7ZwSFVYITU



Setup:
  1. Edit the button API: Change first line ("local mon = peripheral.wrap("right")") to the side where you have connected your monitor.
  2. Edit the reactor control script:
    1. Change "redstoneOutput" to the side where you have connected your bundled redstone cable (e.g. Insulated Redstone Conduit (EnderIO))
    2. Add/Remove entries to the "turbines"-list. Modify the values of the turbines depending on the names the turbines have (right-click the modems).
    3. For example: If you have only three turbines, remove the last entry. If you have 7 turbines add 3 entries. You have 4 turbines connected to the network: turbines[0] = peripheral.wrap("BigReactors-Turbine_0") turbines[1] = peripheral.wrap("BigReactors-Turbine_2") turbines[2] = peripheral.wrap("BigReactors-Turbine_5") turbines[3] = peripheral.wrap("BigReactors-Turbine_1") But don't forget to change the names "BigReactors-Turbine_1". The maximum turbines you can have: 16 (limited to the channels of the redstone cables and to the size of the monitor, but I haven't tested it)
    4. Add/Remove entries to the "turbinesColor"-list. Each entry should get it's own color. Refer to the wiki (Color API) for available colors.
    5. Adjust the value "numTurbines" depending on how many turbines you have connected.
    6. Adjust the value "numCapacitors" depending on how many Capacitor Banks (EnderIO) you have connected.
  3. Place a monitor 3x7 on the side you specified in the button API.
  4. Connect the bundled cable to the "redstoneOuput" side.
  5. Connect all turbines and the reactor to the network. Connect the computer to the network.
  6. Place a tank somewhere (e.g. Railcraft) and connect the reactor steam output to one of the valves.
  7. Spoiler
  8. Add two valves for each turbine and connect the fluid pipes. You need two Resonant Servos (Thermal Dynamics) for each turbine to get 2000mb/t.
  9. Setup the bundled cables and invert the redstone signal. Change the channel of each output to the turbines channel color.
    Spoiler
    The computer can now send a redstone signal on that channel to interrupt the steam flow. You can add Redstone Lamps to monitor the signals.
    Spoiler
  10. Connect the water output of each turbine with a reactor cooling port.
  11. Don't forget to setup your Capacitor Banks. The more you have the better it works!
If you have modified your BigReactor, delete the config.txt.
The steam buffer described above is just an idea. If you have a better idea to control the steam flow with a redstone signal, let me know!

Pastebin:
Download the button API: pastebin get XBbMUYNn button
Download the script: pastebin get AL0sK3wa control

Download DemoWorld (Feed the Beast Infinity MC Version 1.7.10): http://www.mediafire.com/download/a4bhzv5bdbww9d7/Creative.zip

If you find any grammar mistakes, let me know, because English isn't my first language.
Edited on 06 September 2015 - 04:26 PM
ohmygod #2
Posted 03 September 2015 - 04:01 PM
i have yet to test this out but i have one question after just reading the setup. i am currently running a setup with an actively cooled reactor supplying steam to 3 turbines and the connecting fluid ports are touching each other. this i cause i can eliminate the need to ensure that i am transferring 2000mb/t since they are transferring at that amount.

so, the question is that, will it work with that setup and without redstone controlling the steam flowrate?
jlkon13 #3
Posted 04 September 2015 - 05:05 PM
The problem is that every turbine receives Steam. So the rotorspeed of each turbine will increase, no matter how much steam your reactor produces. I recommend to install redstone control.
ohmygod #4
Posted 04 September 2015 - 05:45 PM
The problem is that every turbine receives Steam. So the rotorspeed of each turbine will increase, no matter how much steam your reactor produces. I recommend to install redstone control.

ok. tried out the program. works nicely. have yet to encounter any problems with it. only seen it bug out in the steam production for one turbine ie. steam dropping but not changing the control rod amount to increase the steam production, once in a while.

another thing. how do you ensure that the turbines are having a rpm of about the same value? give or take
jlkon13 #5
Posted 06 September 2015 - 06:27 PM
I have added a world-download. You can check it out to understand how it works …
ohmygod #6
Posted 13 September 2015 - 08:18 AM
tested it out. nice work with the program. did you program it to do the steam calculation in stages? cause when it was calculating the steam requirement for my 4 turbines, it did so. ie. 2000mb/t first then 4000mb/t etc

edit:

bug detected. one of the turbines are continuously fed steam even though the rotorspeed is more than the set limit.
Edited on 14 September 2015 - 11:47 AM
MAiki1970 #7
Posted 17 November 2015 - 06:08 PM
Thx for the script but can ya look into the bug that ohmygod speaks off.. mny thx..

MAiki1970
misfunia.mcserver.me
jlkon13 #8
Posted 19 November 2015 - 05:06 PM
I will look into it. Sorry for late repsonse …
jlkon13 #9
Posted 19 November 2015 - 05:17 PM
I don't think there is an issue with steam supply. Can you post a screenshot or sth. similar to show your setup? … Fluid pipes should not dock at the bottom. Steam would automatically flow out. Place pipes instead on the bottom layer on one side of your tank (see screenshot above).