Posted 11 March 2015 - 01:24 PM
Hi I downloaded dire's code to control reactors and turbines, the problem is i got 6 turbines and 2 reactors whereas he has 1 of each. I have to adapt the code so.
Codes are here : Button : http://pastebin.com/zDB8PmEJ
and reactor : http://pastebin.com/A7v2sKyW
I have my 2 reactors (BigReactors-Reactor_4, BigReactors-Reactor_6) and my 6 turbines (BigReactors-Turbine_1, BigReactors-Turbine_2, …, BigReactors-Turbine_6)
But when i replace the original code:
By :
I have the error : "reactor:8:attempt to index ? ( a nil value)"
So it was not too easy, can someone help me please ? :)/>
Codes are here : Button : http://pastebin.com/zDB8PmEJ
and reactor : http://pastebin.com/A7v2sKyW
I have my 2 reactors (BigReactors-Reactor_4, BigReactors-Reactor_6) and my 6 turbines (BigReactors-Turbine_1, BigReactors-Turbine_2, …, BigReactors-Turbine_6)
But when i replace the original code:
- p = peripheral.find("tile_blockcapacitorbank_name")
- m = peripheral.find("monitor")
- r = peripheral.find("BigReactors-Reactor")
- t = peripheral.find("BigReactors-Turbine")
By :
- p = peripheral.find("tile_blockcapacitorbank_name")
- m = peripheral.find("monitor")
- r = peripheral.find("BigReactors-Reactor_4, BigReactors-Reactor_6")
- t = peripheral.find("BigReactors-Turbine_1, BigReactors-Turbine_2, BigReactors-Turbine_3, BigReactors-Turbine_4, BigReactors-Turbine_5, BigReactors-Turbine_6")
I have the error : "reactor:8:attempt to index ? ( a nil value)"
So it was not too easy, can someone help me please ? :)/>