Ah thank you, it works perfect now! Curious what everyone's delay settings are. Seems 1.2 and 1.3 still crash at 43 games. Just going to keep increasing it by .1 till it doesn't
That's weird, do you get an error or what happens? You could try to uninstall and reinstall the unity web player and see if that helps.
Would it be possible to unsync the Facebook account from the Neopets?
It's not exactly my main, but I'm considering to make it my main if i don't get freeze within 1month of autobuying and stuff. (Will start legit as my main when it gets to 5mill neopoints)
I haven't tried, sorry, because I just have my main connected to my phone. Unfortunately I don't think they'd let you, but I could be wrong. If you try, be sure to let us know though.
@(you need an account to see links) Sorry, I'm sort of on Neopets leave, but the only thing I can think of is the move function couldn't find a swap (not sure why).. Or does it always stop after game 6 for you?
I'll try to find a solution to this btw
Ok, so I won't be able to test this to make sure, but my prediction is that the program ends somewhere here:
Code:
def move():
gb=color()
if gb[35]==['over']:
replay()
return
elif gb[0]==gb[1]==gb[23]==['escape'] or gb[12]==gb[22]==['escape']:
print("Game paused...")
raw_input('To resume, press Enter:')
print("Resuming game...")
click(resumebutton)
time.sleep(.2)
move()
return
else:
for i in range(len(p)):
c=int(p[i][0])
a=int(p[i][1])
b=int(p[i][2])
d=int(p[i][3])
if gb[a]==gb[b]==gb[c]:
swap(c,d)
return
What I would suggest is finding lines 81-102 (the whole move function)
and make a new line 103 on the same indent level as the for i in range(len( p)): and type move()
So in short, just replace lines 81-102 with this:
Code:
def move():
gb=color()
if gb[35]==['over']:
replay()
return
elif gb[0]==gb[1]==gb[23]==['escape'] or gb[12]==gb[22]==['escape']:
print("Game paused...")
raw_input('To resume, press Enter:')
print("Resuming game...")
click(resumebutton)
time.sleep(.2)
move()
return
else:
for i in range(len(p)):
c=int(p[i][0])
a=int(p[i][1])
b=int(p[i][2])
d=int(p[i][3])
if gb[a]==gb[b]==gb[c]:
swap(c,d)
return
move()
^the only thing I changed was adding the move() call at the end.
@(you need an account to see links) Sorry, I'm sort of on Neopets leave, but the only thing I can think of is the move function couldn't find a swap (not sure why).. Or does it always stop after game 6 for you?
I'll try to find a solution to this btw
Ok, so I won't be able to test this to make sure, but my prediction is that the program ends somewhere here:
Code:
def move():
gb=color()
if gb[35]==['over']:
replay()
return
elif gb[0]==gb[1]==gb[23]==['escape'] or gb[12]==gb[22]==['escape']:
print("Game paused...")
raw_input('To resume, press Enter:')
print("Resuming game...")
click(resumebutton)
time.sleep(.2)
move()
return
else:
for i in range(len(p)):
c=int(p[i][0])
a=int(p[i][1])
b=int(p[i][2])
d=int(p[i][3])
if gb[a]==gb[b]==gb[c]:
swap(c,d)
return
What I would suggest is finding lines 81-102 (the whole move function)
and make a new line 103 on the same indent level as the for i in range(len( p)): and type move()
So in short, just replace lines 81-102 with this:
Code:
def move():
gb=color()
if gb[35]==['over']:
replay()
return
elif gb[0]==gb[1]==gb[23]==['escape'] or gb[12]==gb[22]==['escape']:
print("Game paused...")
raw_input('To resume, press Enter:')
print("Resuming game...")
click(resumebutton)
time.sleep(.2)
move()
return
else:
for i in range(len(p)):
c=int(p[i][0])
a=int(p[i][1])
b=int(p[i][2])
d=int(p[i][3])
if gb[a]==gb[b]==gb[c]:
swap(c,d)
return
move()
^the only thing I changed was adding the move() call at the end.
thanks atlas, the same error didnt pop up after a few days of testing. however, there's this new one...
(File "C:\Users\j8s9h2E\Desktop\neopets\New GC\Atlas Ghoul Catcher Bot.py", line 95, in move
swap(c,d)
File "C:\Users\j8s9h2E\Desktop\neopets\New GC\Atlas Ghoul Catcher Bot.py", line 52, in swap) << repeats 2000 times
RuntimeError: maximum recursion depth exceeded while calling a Python object
thanks atlas, the same error didnt pop up after a few days of testing. however, there's this new one...
(File "C:\Users\j8s9h2E\Desktop\neopets\New GC\Atlas Ghoul Catcher Bot.py", line 95, in move
swap(c,d)
File "C:\Users\j8s9h2E\Desktop\neopets\New GC\Atlas Ghoul Catcher Bot.py", line 52, in swap) << repeats 2000 times
RuntimeError: maximum recursion depth exceeded while calling a Python object
Yeah, this was the error I would get if the delay time was too short. I ended up making the delay time longer and that error went away, but that meant the program was slower.
I'll try looking at the code again and see if I can make it more efficient, but I don't know.. I'm sorry about that
You could try the original code since the error you had before seems more rare I guess?
Yeah, this was the error I would get if the delay time was too short. I ended up making the delay time longer and that error went away, but that meant the program was slower.
I'll try looking at the code again and see if I can make it more efficient, but I don't know.. I'm sorry about that
You could try the original code since the error you had before seems more rare I guess?
i dont mind having the program run slightly slower, where do i change the delay time?
i dont mind having the program run slightly slower, where do i change the delay time?
I want to say.. line 50? It should have the " # delay time" on that line,
maybe it says time.sleep(1.2) I think?
I would change it so it says time.sleep(2.2)
If you don't know what I mean, could you send me the code so I could look at it?