Can't access components
I was trying to make a computer program to control a BigReactor turbine (I'll use a microcontroller after I figure this out). I know that the computer port acts as a component, so first of all, to increase the convenience of access of the computer port, I wrote
That was the very first line of the program; 5e7 is the shortened address of the computer port. There is a bunch more code at the bottom that does the actual regulating, but when I run the program, it spits out this error message:
Greatly confused, I read the message. I interpreted it as in line one of my program, turbine_control, I am accessing the undefined variable 'component'. I don't know what this completely means, and I even checked the process.lua function and coming out with no idea what was going on. I can call the function in the interactive lua prompt with no problem, but in a program, it doesn't let me.
What's going on, and how can I fix this?
Link to post
Share on other sites