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

Can someone please help with my problem. Cant fix it

Started by jamesscape2, 13 October 2012 - 10:59 AM
jamesscape2 #1
Posted 13 October 2012 - 12:59 PM
Hi everyone,

i have been at this problem for the last few days can cant figure our what my problem is.

Its hard to explain so i made a 2 mins video about the problem.

If ur willing to watch it and then look at my code which is in pastebin in the description

http://www.youtube.com/watch?v=_YejjNxr5YU – video here


this is a quick summary of what it is doing:

You enter the length and width of the building that u want to build (height set to 5), these 2 var at saved to a file which is then accessed but another program that will take the var and use them to create the length and width of the building.

but instead it does this

the program save the var correctly as above, but when it come to the creating the var the length of the building is usually correct, but when it comes to the width it usually goes a set 11 blocks instead, i have also at the moment set it to only turn once but ti turn twice for some reason


Please i need some help

Thanks
Anonomit #2
Posted 13 October 2012 - 03:28 PM
You're turtle is running the build() function twice. Up where you have keys.enter is the first time it's run, then again at the bottom