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

won't get stuck in a loop

Started by warfar, 04 May 2013 - 09:15 PM
warfar #1
Posted 04 May 2013 - 11:15 PM
http://pastebin.com/vbrf727m
line 69
turtle doesn't suck anything up
off topic:
heueueuhueueue 69
heuhueuheuheuueue suck
The_Awe35 #2
Posted 04 May 2013 - 11:36 PM
I would say this is a fine example of a question format not to use. Please ask questions a little more politely, and with more explaining what your problem is.
Your code is very messy. You should define all your variables in one place, and call all your functions with the rest of your code, not in between functions.
However, I don't see anything wrong with it. Are you sure that the slot is empty when it tries to refuel?
warfar #3
Posted 04 May 2013 - 11:38 PM
I would say this is a fine example of a question format not to use. Please ask questions a little more politely, and with more explaining what your problem is.
Your code is very messy. You should define all your variables in one place, and call all your functions with the rest of your code, not in between functions.
However, I don't see anything wrong with it. Are you sure that the slot is empty when it tries to refuel?
yes
Zoinky #4
Posted 04 May 2013 - 11:55 PM
Make it print something after turtle.suckUp(). So you know it's actually running.
warfar #5
Posted 04 May 2013 - 11:56 PM
Make it print something after turtle.suckUp(). So you know it's actually running.
alright
so it runs the function
it doesn't get to suck
the next time it runs it does
Zoinky #6
Posted 05 May 2013 - 12:00 AM
it is
i did test it

Well, that's weird. Try change it to turtle.suck() and see what happens. Otherwise, I have no clue.
Zoinky #7
Posted 05 May 2013 - 12:02 AM
it is
i did test it

Well, that's weird. Try change it to turtle.suck() and see what happens. Otherwise, I have no clue.


EDIT: Oh, so it's working now?
EDIT #2: Woops, sorry about the repost. Accident :3
warfar #8
Posted 05 May 2013 - 12:08 AM
it is
i did test it

Well, that's weird. Try change it to turtle.suck() and see what happens. Otherwise, I have no clue.


EDIT: Oh, so it's working now?
read edit
warfar #9
Posted 05 May 2013 - 12:31 AM
nvm fixed it
Zoinky #10
Posted 05 May 2013 - 12:48 AM
nvm fixed it
What was wrong? Lol
warfar #11
Posted 05 May 2013 - 01:01 AM
nvm fixed it
What was wrong? Lol
i made a function findEmptySlots
wahok #12
Posted 05 May 2013 - 12:31 PM
I had the same Problem thx