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

parallel:22 Attempt to index ? (a nil value)

Started by ShadowGar, 08 December 2013 - 04:14 AM
ShadowGar #1
Posted 08 December 2013 - 05:14 AM
I seriously hate asking questions because I never seem to ask them right so let me try to explain what I'm doing.

For some time I have been looking for a good reactor program and I found a couple of programs on a youtube channel that was for IC2 reactors back in 1.4.7

Our server uses the same mods but we are on 1.5.2 I attempted to use the one program here http://pastebin.com/4WrsTJ8V but it bugged out line after line. I started at the top and changed some of the lines to where I have it now erroring out and I cant figure out what needs done. Looking back on other topic I see its possibly a parallel waitforany issue on line 219 but the full error is parallel:22: mon:176: attempt to index ? (a nil value)

my edit to this program is http://pastebin.com/XzhnYxd4

This will be ran on a sensor turtle underneath a reactor. Any help would be greatful. Also if you have suggestions on the code please let me know, I have 4 more programs to edit before I can get a full reactor up and running.

I wish I knew the owner of the code so I could contact him.
apemanzilla #2
Posted 08 December 2013 - 11:19 AM
Make sure you have OCS and all the necessary APIs
ShadowGar #3
Posted 09 December 2013 - 10:46 PM
Thank you. I figured it out for the most part. The turtle is reading the reactor well. Now my big problem is that while it is running and I activate my monitor and ask for a status it errors with this code…. parallel:22: rednet:53:Expected number.

This is the new paste of the working turtle - http://pastebin.com/vhJTmvfz
This is the computer that grabs the information from the turtle over the network and displays the output - http://pastebin.com/QyB2DuuW

Since I'm a noob at this, figuring out what is broken is getting harder but there is still progress.