Posted 02 August 2015 - 10:33 PM
Hello, I am working in this Artificial Intelligence for about three months, and today I managed to finish the last bits of it. The main purpose of it is to be a mining turtle that instead of just mining in a straight line or in a pattern, checks for ores around it and if so use that information to mine the entire vein.
The programs works just fine, but after it has run for a while the turtle just suddenly restarts. At first I thought the problem was related to the common "Too long without yielding" problem, but when I checked the turtle Interface there were no errors. After that I checked if I used os.shutdown() or os.restart() at any point of the code, and I didn't.
Finally after searching for similar problems in the internet I found that that might happens due to memory overflow, so I thought it might be a problem with the computercraft mod itself.
The code is a little bit too big, so I uploaded it to pastebin here: http://pastebin.com/tbhJUD0c
I'm currently using ComputerCraft 1.73 in the direwolf20 1.7.10 pack, and I also would like to know if I can change something in the config files to fix it.
The programs works just fine, but after it has run for a while the turtle just suddenly restarts. At first I thought the problem was related to the common "Too long without yielding" problem, but when I checked the turtle Interface there were no errors. After that I checked if I used os.shutdown() or os.restart() at any point of the code, and I didn't.
Finally after searching for similar problems in the internet I found that that might happens due to memory overflow, so I thought it might be a problem with the computercraft mod itself.
The code is a little bit too big, so I uploaded it to pastebin here: http://pastebin.com/tbhJUD0c
I'm currently using ComputerCraft 1.73 in the direwolf20 1.7.10 pack, and I also would like to know if I can change something in the config files to fix it.