Posted 09 June 2016 - 07:41 PM
Hey, im having a problem and i have no idea why, From looking at the reference http://ftbwiki.org/Turbine_Computer_Port along with some examples i found online i wanted to make a really simple and automated script.
I ran into a problem with getRotorSpeed
Current Code
I keep getting an error with print(tRPM) not printing anything and with any of the below trials being a nil value
I have tried t.getRotorSpeed, t.getRotorSpeed, t.getRotorSpeed() and getRotorSpeed()
Additionally, using "getActive" works fine, using getActive() or t.getActive errors.
I ran into a problem with getRotorSpeed
Current Code
t= peripheral.find("BigReactors-Turbine")
active = getActive
if active == True then
print("is active")
else
print("not active)
end
tRPM = getRotorSpeed
print(tRPM)
I keep getting an error with print(tRPM) not printing anything and with any of the below trials being a nil value
I have tried t.getRotorSpeed, t.getRotorSpeed, t.getRotorSpeed() and getRotorSpeed()
Additionally, using "getActive" works fine, using getActive() or t.getActive errors.