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

Line breaks being removed?

Started by diegox, 11 May 2013 - 12:09 PM
diegox #1
Posted 11 May 2013 - 02:09 PM
Hi, i Created my own program to make farming, all was working perfect, but when i saved it, and runned the program, the turtle stucked in a loop just excavating the block below, (with saving i mean to put in the Computercraft -> lua -> programs folder)
the first code (that wasn´t saved) is this:


turtle.up()
turtle.forward()
while turtle.detectDown() do
turtle.digDown()
turtle.forward()
end
while not turtle.detectDown() do
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
end
while turtle.detectDown() do
turtle.digDown()
turtle.forward()
end
while not turtle.detectDown() do
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
end
while turtle.detectDown() do
turtle.digDown()
turtle.forward()
end
turtle.turnRight()
turtle.down()
turtle.forward()
turtle.turnRight()
while not turtle.detect() do
turtle.forward()
end
turtle.drop(10)
turtle.drop(10)
but after saving the code it was looking like this:


turtle.up()
turtle.forward()while turtle.detectDown() doturtle.digDown()turtle.forward()

end
while not turtle.detectDown() do
turtle.turnRight()
turtle.forward()
turtle.turnRight()

turtle.forward()
endwhile turtle.detectDown() do
turtle.digDown()turtle.forward()
endwhile not turtle.detectDown() do
turtle.turnLeft()turtle.forward()turtle.turnLeft()
turtle.forward()endwhileturtle.detectDown() doturtle.digDown()
turtle.forward()
end

turtle.turnRight()
turtle.down()turtle.forward()turtle.turnRight()
while not turtle.detect() do
turtle.forward()
endturtle.drop(10)turtle.drop(10)

(i used the notepad aplication to see the code)
Please help me! :(/>
Edited by
Lyqyd #2
Posted 11 May 2013 - 04:37 PM
Split into new topic. A title was provided for you.
Spongy141 #3
Posted 11 May 2013 - 05:12 PM
Sublime, notepad++, try those, they work a ton better than notepad.