Posted 12 January 2018 - 10:37 AM
i've trying to coding advance computer to control my draconic reactor with this code
my reactor start very well and my code terminated after print("test") and under print("test") not working without error
discord : Wireless_#4024
sorry if my english is suck
local reactor
reactor = peripheral.wrap("back")
local info
info = reactor.getReactorInfo()
local fluxout
fluxout = peripheral.wrap("right")
local fluxin
fluxin = peripheral.wrap("flux_gate_0")
local fluxoutnow
fluxin.setSignalLowFlow(2147483647)
reactor.chargeReactor()
sleep(2)
fluxin.setSiglanLowFlow(130000)
reactor.activateReactor()
print("finishing start")
print("Reactor Started")
sleep(1)
print("test")
while true do
info.fuelConversion <= 9331 or ri.fuelConversion <= 9331 or info.status == online do
ri = reactor.getReactorInfo()
fluxoutnow = fluxout.getSignalLowFlow()
if info.temperator <= 7990 then
fluxout.setSignalLowFlow(fluxoutnow+1000)
end
if info.temperator >= 8100 then
fluxout.setSignalLowFlow(fluxoutnow-3000)
end
sleep(1)
end
end
end
reactor.stopReactor()
sleep(10)
my reactor start very well and my code terminated after print("test") and under print("test") not working without error
discord : Wireless_#4024
sorry if my english is suck
Edited on 17 January 2018 - 10:59 AM