Jump to content




Big Reactor Control


  • You cannot reply to this topic
4 replies to this topic

#1 St0neSoul

  • Members
  • 3 posts

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 by St0neSoul, 30 December 2015 - 02:04 AM.


#2 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 30 December 2015 - 01:24 AM

math.floor not match.floor

you will have the same error again on line 96

Edited by Lupus590, 30 December 2015 - 01:25 AM.


#3 St0neSoul

  • Members
  • 3 posts

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

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 30 December 2015 - 08:02 AM

Line 35; it seems k never equals 0, so the script gets stuck in that loop there.

#5 St0neSoul

  • Members
  • 3 posts

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





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users