Posted 14 August 2015 - 08:05 PM
Aim of the program:
I am attempting to monitor a capacitor bank and based on it's energy levels activate or deactivate multible turbines/reactors.
First I check the state of the capacitor bank (posting basic info to the terminal) next I pull the turbines, check their speed and based on that turn on the turbines, then based on the state passed from the capacitors it either activates or deactivates the inductor coils. after this step i check the reactors and if the turbine is active or the inductors are on the reactor gets turned on.
Problem:
first time through the program does EXACTLY what i want. on the second loop it errors out with the error
turbine:106: attempt to call table
code:
http://pastebin.com/sPgFqDT5
Ive reset the terminal with ctrl-r and changed variable and function names as the 2 possible problems i saw were overwritten variable and possible variable corruption in the vm.
what i don't understand is why it works once but then errors out.
i'm using the FTB Infinity 1.10.1 pack which include computercraft 1.74 and BigReactors 0.4.3A
and yes i know my code is ugly
I am attempting to monitor a capacitor bank and based on it's energy levels activate or deactivate multible turbines/reactors.
First I check the state of the capacitor bank (posting basic info to the terminal) next I pull the turbines, check their speed and based on that turn on the turbines, then based on the state passed from the capacitors it either activates or deactivates the inductor coils. after this step i check the reactors and if the turbine is active or the inductors are on the reactor gets turned on.
Problem:
first time through the program does EXACTLY what i want. on the second loop it errors out with the error
turbine:106: attempt to call table
code:
http://pastebin.com/sPgFqDT5
Ive reset the terminal with ctrl-r and changed variable and function names as the 2 possible problems i saw were overwritten variable and possible variable corruption in the vm.
what i don't understand is why it works once but then errors out.
i'm using the FTB Infinity 1.10.1 pack which include computercraft 1.74 and BigReactors 0.4.3A
and yes i know my code is ugly