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

Melee Turtles - Not Starting

Started by Gibbo3771, 06 April 2013 - 09:27 AM
Gibbo3771 #1
Posted 06 April 2013 - 11:27 AM
I seem to have this problem with my Turtles, for whatever reason whenever I load my game in some of my melee turtles refuse to swing, sometimes all of them, sometimes just a few of them.

They are using a very simple code:

while true do
turtle.attack()
end

I have tried adding a sleep(1) line in after the attack to stop the loop from running too fast and possibly causing the program to crash, however this does not work.

It currently does it with my Blaze, Skeleton, Wither Skeleton, Zombie, Cow, and Pig grinders, all of them are built into seperate 9x9 rooms, 7 high with 3 Turtles:





The mobs DEFO reach the Turtles, after I reboot each Turtle it works just fine until I reload my game.
slango20 #2
Posted 06 April 2013 - 12:32 PM
you may not have them as startup, if it is just a startup command, then

if ProgName = "startup" then
X == Bug
else player.Derped()
end
Gibbo3771 #3
Posted 06 April 2013 - 01:10 PM
you may not have them as startup, if it is just a startup command, then

if ProgName = "startup" then
X == Bug
else player.Derped()
end

They are currently in the "startup" program, when I go onto the Turtle it shows the program is running
Smiley43210 #4
Posted 06 April 2013 - 05:42 PM
you may not have them as startup, if it is just a startup command, then

if ProgName = "startup" then
X == Bug
else player.Derped()
end
*Ahem*

if ProgName == "startup" then
X = Bug
else player.Derped()
end
:P/>
Dlcruz129 #5
Posted 06 April 2013 - 06:14 PM
you may not have them as startup, if it is just a startup command, then

if ProgName = "startup" then
X == Bug
else player.Derped()
end

Looks like you've got your equal signs backwards there.

Edit: Meh, forgot to scroll down. You beat me spongy. :/
Smiley43210 #6
Posted 06 April 2013 - 06:27 PM
Spongy?
Yea, our avatars DO look alike.
Dlcruz129 #7
Posted 06 April 2013 - 06:32 PM
Spongy?
Yea, our avatars DO look alike.

Whoops! :P/> Sorry 'bout that…