DIrewolf's 20 Button API Problem

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here

Oskar9955

New Member
Jul 29, 2019
7
0
0
Hello, I am trying to use direwolfs code to control my turbine, WHen ever I start the program I get this error "button:2: attempt to index ? (a nil value)" As I am quite new to CC i don't know what this means, and any help would be great.

Thankyou
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
"button:2: attempt to index ? (a nil value)"
Bit groggy atm from a migraine so not in a state to debug your code. But will give you a quick rundown of what this means:
What it tells you is that there is a problem in script "button", it is located in line "2" and that it is trying to write a non-existent value(? or nil) to a variable(which it obviously cannot do).

Took a quick look, and are you sure that there is a Monitor on top of the computer for it to wrap?