Jump to content




Another BigReactors Program. Reactor and Turbine Control V2



10 replies to this topic

#1 jaranvil

  • Members
  • 10 posts

Posted 21 April 2015 - 05:04 PM

This is the current version of my control program that I wrote a couple months ago. Now that classes are over, I'm starting an upgrade for it and would love suggestions!

Screenshot gallery: http://imgur.com/a/v6tez

Installer: http://pastebin.com/p4zeq7Ma

Posted ImagePosted ImagePosted Image

#2 Will11690

  • Members
  • 7 posts

Posted 25 April 2015 - 11:19 PM

Here is a suggestion, how about a pocket computer remote that can enable and disable the reactor.

#3 Irongron

  • Members
  • 4 posts

Posted 02 July 2015 - 07:31 PM

Is there any way to get the two programs to interact with one another? The reactor monitor does not seem to recognize turbines at all, or are they designed to be ran with two separate computers currently with no interaction?

#4 absorr

  • Members
  • 41 posts
  • LocationUnited States

Posted 10 September 2015 - 04:35 PM

Perhaps you could make it responsive to the screen size, allowing screens to be 3x3 or larger.

#5 Caleb Ragnarok

  • Members
  • 35 posts

Posted 01 October 2015 - 12:40 AM

I have a reactor and turbine control program, but I have no displays for it yet. I'd like to use your displays, just the main page. Is there a way you can simplify the code? I tried porting it over, but its too complicated for me. I'm just learning LUA.

#6 de4ek

  • New Members
  • 1 posts

Posted 26 October 2015 - 09:21 PM

Hello!
I am playing the Resonant Rise 3 mod pack, v3.2.7.2, and am having a little trouble with your awesome program. It worked perfectly on my servers previous iteration, however now, its graphics are not showing. it seems to be functioning, just no menus or anything show... any ideas?

#7 aadje93

  • Members
  • 9 posts

Posted 28 October 2015 - 05:59 PM

Realy enjoying your script in my big power station (20 turbines) but i'm wondering how to connect it to the power storage, it looks like a awsome future (now using redstone signalling setup)

I'm using enderio Capacitor banks which makes a nice big storage block for all my power needs :), its nice to be able to just "shutdown" the reactor when the storage is ~99% (so the turbines will spin down to fill it up) and start the party again at 10-15% so they start filling up again.

I'm looking forward to your respone.


On a side node, with 3x3 (advanced) monitor it glitches alot, but with 4x4 it works fine on 3x3 size o.o, so i just dug in a little of de monitor into my wall/floor to fix it, may be a CC glitch instead of your script ;)

*edit, with auto power you mean the internal buffer?, could you make it able to connect to enderio capacitorbanks or the monitor?) would love it! Passive reactors are so fuel wasting

my "just over 40k" reactor for the 20 turbines (10% rod insertion) is giving me 20x ~27k on max size ludicrium tubines, whereas it will only produce 37k on its own in passive mode, thats a hefty difference!

Edited by aadje93, 28 October 2015 - 06:02 PM.


#8 Caleb Ragnarok

  • Members
  • 35 posts

Posted 02 November 2015 - 06:24 PM

Aadje,
I have an automated program that can do that. It's not quite done yet, but it's well on its way. I have tested it with 12 turbines and both passive and active reactors. It checks ender caps and keeps them filled. I'll post the paste bin when I get home. It's a command program, so it does more then just power. Use what you want from it. I also have the turbine display from this program running with it. It's just the main page display with no touchscreen or other pages. Working on the reactor one right now.

#9 Caleb Ragnarok

  • Members
  • 35 posts

Posted 03 November 2015 - 01:27 AM

Here ya go.
http://pastebin.com/S8uCL8Gb

Turbine dumb display. Its just Jaranvil's main turbine display page
http://pastebin.com/fLwFtYU1

Passive Reactor
http://pastebin.com/hhBYN3Ub

Active Reactor
http://pastebin.com/SEbKHjZZ

#10 Sancho

  • Members
  • 4 posts

Posted 15 April 2016 - 01:31 AM

View Postaadje93, on 28 October 2015 - 05:59 PM, said:

On a side node, with 3x3 (advanced) monitor it glitches alot, but with 4x4 it works fine on 3x3 size o.o, so i just dug in a little of de monitor into my wall/floor to fix it, may be a CC glitch instead of your script ;)

Having the same problem, except I need a 3x4 screen to get it to work. Even then, I cannot interact with the screen, only observe it. I'm using ComputerCraft 1.74.

EDIT: Fixed not being able to interact with the screen. It was because I had a modem attached to the monitor.

EDIT2: I managed to fix the bug but I don't quite understand what is going on. I noticed that setTextScale was never called, so I added mon.setTextScale(1.0) after line 42 and that seemed to fix the problem. But then I moved the monitor and the problem started happening again. It seems that in addition to this, I needed to run this simple test script before running reactor_control:

  mon = peripheral.wrap("monitor_139")
 
--display text text on monitor, "mon" peripheral
function draw_text(x, y, text, text_color, bg_color)
  mon.setBackgroundColor(bg_color)
  mon.clear()
  mon.setTextScale(0.5)
  mon.setTextColor(text_color)
  mon.setCursorPos(x,y)
  mon.write(text)
end
draw_text(2, 3, "Test", colors.yellow, colors.black)

Maybe setting the text scale to 0.5 is what fixed it? I'm not sure, but now I can use a 3x3 display without issue.

EDIT3: One more minor fix: change line 862 (old line 861) to "if x < 11 then", otherwise the tools bar doesn't work.

Edited by Sancho, 15 April 2016 - 03:00 AM.


#11 nidico100

  • Members
  • 8 posts

Posted 31 August 2017 - 08:48 PM

Don't know if jaranvil is still active or anyone else, but after some time i always get the
"Java Exception Thrown: java.lang.NullPointerException" Error, any solution?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users