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

Debugging this Program Pls

Started by superpowers414, 30 September 2012 - 12:44 AM
superpowers414 #1
Posted 30 September 2012 - 02:44 AM
Can someone help debug this program for me?
www.pastebin.com/6K4H1BD9
Kingdaro #2
Posted 30 September 2012 - 02:55 AM
It's more helpful to say what and where the error is more than saying "fix it for me please".
Grim Reaper #3
Posted 30 September 2012 - 03:00 AM
You had quite a bit of 'end' statements that were out of place; your program thought some functions, conditionals, and loops ran further or shorter than they were meant to.

Here is the revised code: http://pastebin.com/5ZugF8gd

Hope I helped! :)/>/>

It's more helpful to say what and where the error is more than saying "fix it for me please".

It's also quite easy, when a script such as this is written so neatly and modular, to just run the file on a test world to generate the errors and debug them one by one.
Pharap #4
Posted 30 September 2012 - 04:00 AM
I'm guessing you aren't the one who wrote the program?
Lyqyd #5
Posted 30 September 2012 - 04:03 AM
It's more helpful to say what and where the error is more than saying "fix it for me please".

It's also quite easy, when a script such as this is written so neatly and modular, to just run the file on a test world to generate the errors and debug them one by one.

That's really effort that the OP should have put in. At least telling us what the first error was would have been good.