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

Big Reactors

Started by CaptainComeT, 17 March 2015 - 08:04 PM
CaptainComeT #1
Posted 17 March 2015 - 09:04 PM
Hi guys i' am new to forums soo sorry if i placed this to wrong place.

This is what is happening i'm playing dw20 modpack.
I copyed big reactors program for turbine and reactor from dw20's video
I placed to i have 9 Capacitor Banks.
This are programs (i placed in pastebin) :

XBbMUYNn = name that program button
4qNyaPav = name that program reactor

Now make a startup program with this in it :
shell.run("reactor")

But when i start program it says :

button:2: attempt to index ? (a nil value)
It starts normal but it says that error.
After it does everything like get down temperature and get 2000MB/t of steam program just stops and says this :

reactor:39: attempt to index ? (a nil value)
Lyqyd #2
Posted 17 March 2015 - 09:39 PM
Moved to Ask a Pro.
Lupus590 #3
Posted 17 March 2015 - 10:28 PM
button: if your monitor is not on top of your computer, change the first line

reactor: no idea without testing, try the button fix and see if this goes too

there is another line you will have to change in the reactor so that it calculates the energy difference correctly: line 11
Edited on 17 March 2015 - 09:31 PM
Bomb Bloke #4
Posted 17 March 2015 - 10:34 PM
For quick reference:
button
reactor

Line 2 of button will error in the way you describe if there is no monitor placed directly above your system when you execute the script. If you change line 1 to local mon = peripheral.find("monitor") then it should become a lot more flexible as to where you can place the monitor (assuming you're on CC 1.6 or later).

The reactor script is indeed erroring at the specified line because the button API failed to load correctly.
CaptainComeT #5
Posted 18 March 2015 - 07:55 AM
button: if your monitor is not on top of your computer, change the first line

reactor: no idea without testing, try the button fix and see if this goes too

there is another line you will have to change in the reactor so that it calculates the energy difference correctly: line 11

For quick reference:
button
reactor

Line 2 of button will error in the way you describe if there is no monitor placed directly above your system when you execute the script. If you change line 1 to local mon = peripheral.find("monitor") then it should become a lot more flexible as to where you can place the monitor (assuming you're on CC 1.6 or later).

The reactor script is indeed erroring at the specified line because the button API failed to load correctly.

Thanks guys i changed to right but i will try with monitor too!