Giter Club home page Giter Club logo

reactor-and-turbine-control-program's Introduction

[Discontinued] Reactor and Turbine control program

➡️ Thanks to @TheArchitectIO, a continued version can now be found on his Gitlab: gitlab.com/seekerscomputercraft/extremereactorcontrol

Unfortunately, I had to discontinue this project as well as my YouTube Channel. I don't have the time to develop this program any further. Additionally, I don't need this program myself anymore since I stopped playing Minecraft a while ago. Since I started Version 3.0 some time ago, but since have not been able to finish it, the program is in a bad state. If you enjoy programming and want to continue this project, I'd be happy to give you access to it. Just ask ;) Thor_s_Crafter

Description:

This is my Reactor- and Turbine control program for ComputerCraft and BigReactors. The following list shows the features of the program:

  • Control up to 32 Turbines (per Reactor)
  • Supports multiple languages (currently English and German)
  • Automatic and manual Control of Reactor and attached Turbines
  • Energy-based automatic Control
    • Switches Reactor and Turbines on/off if energy level is low/high
    • Supports multiple Energy Storage typesm like Capacitorbanks (EnderIO), Energy Core (Draconic Evolution), etc.
  • Large option menu
    • Change Background and Text Color
    • Set energy level for activating/deactivating the reactor
    • Set Reactor Steam Output Level

How To Install

  • Set up a Computer, connect all parts (Reactor, Energy Storage, Turbines) with Wired Modems

  • Activate all modems

  • Type in the following into the computer:

    pastebin get HMtbgkwt git
    git
    
  • Then follow the install instructions

Have a look at my Update Videos on YouTube

  • Current version (2.6):
    • (Coming soon) (English)
    • (Coming soon) (German)

Do you want to help me developing the program?

  • Use my beta versions!
  • Report bugs and send me suggestions for new features
  • Do Merge Requests

Have fun! Thanks for using my program!

reactor-and-turbine-control-program's People

Contributors

kimax89 avatar thorscrafter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reactor-and-turbine-control-program's Issues

Efficiency Measurement

Another small thing that could be useful is to show how much RF you get per mB.
The equation is really simple. It's just the RF-production divided with the Fuel Consumption.
RF/mB is the key factor when you go for maximum efficiency.

Another thing this could be used for is an automatic mode where it goes for maximum efficiency.
it would take some time before the computer finds the correct Rodlevel.

The optimal Core Temperatur for a passive cooled reactor is 900 C and it seems that the optimal Core Temperature for a active cooled reactor is 600 C.

findOptimalFuelRodLevel() allows controlRodLevel to fall below 0 and enters an infinite loop on reactors unable to reach targetSteamLevel

For a steamTargetLevel of 2000 mb/t, given a reactor unable to produce 2000 mb/t, the "Find precise level" section of findOptimalFuelRodLevel() will enter an infinite loop, continually reducing the controlRodLevel below 0 in an attempt to increase the reactor power level, until killed.

Incidentally, this is exactly what happened at Chernobyl; the operators retracted control rods to increase power, but failed due to the design of the reactor and reactor poisoning. They therefore decided to extract a few of the safety control rods, which were meant to remain in the core at all times, as well, causing the unstable configuration that allowed an accident to happen (essentially controlRodLevel < 0, or to reference the iconic scene from The Hunt for Red October: "110% on the reactor").

Curiously, the reason I found this program in the first place was the need for an automatic system to control my FTB Infinity Evolved (Minecraft 1.7.10) power plant, which is built as a replica of Chernobyl NPP (albeit with only two reactors), while I develop my own BigReactor/BigTurbine control system for ComputerCraft. The two reactors in this plant each produce a carefully-tuned 1987 mb/t of steam at controlRodLevel = 0, thus becoming victims of this bug. Somewhat spooky.

Fortunately, ErogenousBeef's BigReactors are not RBMKs (although they look similar from the top, and RBMKs are certainly big reactors). BRs also ignore instructions to decrease the control rod levels below 0, instead setting them to 0, resulting in no increase in reactor power level. However, the program will continue to decrement controlRodLevel and try again, since it still wants to increase the reactor power level.

Adjustable Control Rods

Before i begin, i would like to say thank you for taking the time to write these awesome scripts. Cant wait to see where this is going.

So. One thing i noticed right away, was the missing element of controlling the Control Rods in manual mode.

Would be a nice thing to have for us who goes after efficiency.

Optimizing Turbine Usage

Instead of disengaging the turbine coils after reaching the disired reactor-off-procentage, It should just deactivate the turbine coils and leave them ingage. Because then you can use the momentum to generate power while the reactor is off.

Language rework

  • Create a language txt file to store the language text files
  • Create a table with variables containing text phrases

Fails to reliably display rpm

image
I've been trying to get your program to work but it fails to reliably display rpm when i have it on
automatic and i start the program

Touchpoint:142: Fehler

Hey ich brauchte mal deine Hilfe wen ich alles installiere und der Computer dann Rebooten kommt dann
remoteVer: 2.6
localVer: 2.6-release
Update? -> false
touchpoint :142: attempt to index ? (a nil value)

Ich wäre dir sehr dankbar wen du eine Lösung hättest

cannot start program

When i try to start the program i get this:

touchpoint:142: attempt to index ? (a nil value)

i have tried reinstalling the program, but to no avail.
Minecraft version: 1.12.2
Program Version: 2.6-release
computercraft version: 1.80.pr1
erroring line contains this text:

self.buttonList[name].label, newName = setupLabel(self.buttonList[name].xMax self.buttonList[name].xMin + 1, self.buttonList[name].yMin, self.buttonList[name].yMax, newName)

Turbine speed reported is double actual speed

I'm not sure how to reproduce, but my setup is simple:

One reactor, one turbine, one ender IO capacitor bank, all connected along a single network cable. Network cable runs under the reactor/turbine, no extra connections. The only unusual thing is that I have extra steam going to a buildcraft tank, but it's through separate ports and unconnected to the computer.

All was well for a while (or I think it was), but I noticed after playing for a while today (could have been since startup, could have happened later on, not sure) that my turbine was slowing down and was hanging around 980 RPM. My speed in the program is set to 1820. I tried bringing the speed up manually not through the program, but as soon as I'd leave the turbine GUI, the program shut off the steam. It was then I noticed that the speed reported by the program is exactly double that reported by the turbine GUI. It's not a big deal, as my turbine makes ten times my power draw a tick, even at half speed, but it seems like a bug.

Rotor Speed not displaying in Auto mode (v2.6)

This is due to a typo on lines 903, 908 (and carried forward to 913) in turbinecontrol.lua, the cursor is set to line 15 to write rotor speed, and a second time to write the energy buffer, overwriting the Rotor Speed.

image

p.s. many thanks for this excellent project.

Add option

Adding another option for the turbines:

  • leave the reactor on at high energy level
  • disengage the coils of the turbines to let the speed go higher

nan% Bug

A Bug, where the program does not shows the percentage of the Energy Storage correctly. Leads to false calculation and control.

Mekanism Induction Matrix

Hey,

I'm unable to connect the program to an Induction Matrix.
It's giving me an error saying it can't find an energy storage.

Installer creating empty 'git' file

The installer seemed to be broken for me. The pastebin get HMtbgkwt git command should create the 'git' file with which to import the code on the pastebin. However, it created an empty 'git' file in my case.

After copying and pasting the content of the pastebin into the actual file on my actual computer (/home/lisa/ftb/SpaceAstronomy/minecraft/saves/New World/computer/1/git) I was able to execute the 'git' file and now the program is running smoothly.

Some (hopefully) helpful data:
I'm running Minecraft 1.7.10
My machine runs on Debian Linux
The version of Computercraft I'm running is 1.7

Let me know if there's any additional info that you need to help resolve the issue.

Screen not updating

I can see that alot of people have issues with the screen not updating or only updates while the energy is above threshold.

I just wanna remind that this issue is solved in build-2.6-01

Might be time to release a new beta #26

Rod depth control

Hi. Love the program.

One issue I have been having is that the program sets the control rods too low, and won't move them (if i manually do it, the program resets them). This results in too little steam, so it disengages the coils to speed up, only to have to stop them again almost as soon as they have been re-engaged.
Is this a problem I can fix in my setup?
Currently have max size turbines fed from an (excessively) big reactor.

I am not worried about the fuel consumption, but the power generation is too unreliable since it constantly switched them all on/off constantly.

Thanks!

Monitor doesn't refresh

Love the program!

Everything installs fine and the turbines run fine and producing enough power, however the monitor doesn't refresh and i have to click a button to get the screen to update with new values. Hope this could be resolved?

Thanks!

Turbine RPM going past maximum set.

I have one reactor and two turbines running off of it. And with automatic control with your program, it works well, but the turbines RPM continues to climb way past 1820 unless I stop it and slow them down. You should add a function to detect the turbines RPM and if its past 1820 it should shut down the turbines and/or reactor to slow them down and keep them around 1800 RPM

New menu structure

It might look better if we removed some of the buttons from the program itself, and keep them in the "Main menu"

So what i suggest is that we remove "Reboot", "Options" and "Mode switch". These functions are still accessable from the "Main menu" and it will give more room on the display for more visuals and informations. + i think it looks cleaner.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.