This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
St0neSoul's profile picture

Big Reactor Control

Started by St0neSoul, 29 December 2015 - 10:59 PM
St0neSoul #1
Posted 29 December 2015 - 11:59 PM
Hi everyone, my English is not very good but anyway, I have a little problem with a control program for a reactor , corrected most errors , but I'm stuck now with "reactor:94: attempt to index ? (a nil value)", as you can see i´m not good at this, im copy anothers scripts, for then, now i cant find what is the problem.
There the pastebin: http://pastebin.com/3WfqN1j1

Thanks and regards xD
Edited on 30 December 2015 - 01:04 AM
Lupus590 #2
Posted 30 December 2015 - 01:24 AM
math.floor not match.floor

you will have the same error again on line 96
Edited on 30 December 2015 - 12:25 AM
St0neSoul #3
Posted 30 December 2015 - 02:37 AM
thanks , already i was getting tired, for read and rear, to search the problem xD, but now, the advanced computer after i run the program, pass two seconds, and the computer shutdown, here is the pastebin http://pastebin.com/Ck2FZv05
Bomb Bloke #4
Posted 30 December 2015 - 08:02 AM
Line 35; it seems k never equals 0, so the script gets stuck in that loop there.
St0neSoul #5
Posted 30 December 2015 - 08:29 PM
The line 35 its ok, but, in the line 34 i have: "formatted, k = string.gsub(formateo, "^(%d+)(%d%d%d)", '%1,%2')". And others minimal problems, but thx, now the program its working "perfect". Thx!!
Here the pastebin of the program: http://pastebin.com/qCa78St0
Again, thx! xD