Posted 19 January 2016 - 11:41 PM
I'm writing a program for big reactors. I have just started off, and when attempting to get the RF/t produced from the reactor, I am getting an attempt to call nil error.
Error: reactor:21: attempt to call nil
I have defined the variable as:
energyProduction = r.getEnergyProducedLastTick()
The wiki says it returns a float, though as I have read, this should not be an error in lua.
I have tried formatting the code in every way that I sought possible, and still no dice.
Big Reactors API: http://big-reactors.com/#/api.computer
http://pastebin.com/T5NMEtcs
Any help is appreciated.
Error: reactor:21: attempt to call nil
I have defined the variable as:
energyProduction = r.getEnergyProducedLastTick()
The wiki says it returns a float, though as I have read, this should not be an error in lua.
I have tried formatting the code in every way that I sought possible, and still no dice.
Big Reactors API: http://big-reactors.com/#/api.computer
http://pastebin.com/T5NMEtcs
Any help is appreciated.
Edited on 20 January 2016 - 02:42 AM