TBTerra / spawnScan

scanner specialized for finding spawn points in pokemon go
116 stars 36 forks source link

Never works due to map errors #27

Open SeeingBlue opened 8 years ago

SeeingBlue commented 8 years ago

I can run 37 accounts on my computer for maps for hours with no problems. Try 28 accounts on this scanner and I get this: http://pastebin.com/gV6HGHe2

Wouter93 commented 8 years ago

Make sure all those accounts have accepted the TOS

SeeingBlue commented 8 years ago

I knew one of the accounts had an issue, but I couldn't tell which one. I was hoping it would just compensate.

SeeingBlue commented 8 years ago

Corrected the issue, still errored out in the middle of the night. http://pastebin.com/YK0cpXj8

xordinx commented 8 years ago

your ip might be banned

SeeingBlue commented 8 years ago

If they banned my IP then they will ban anyone else IP who uses this. My IP was not banned before starting the scan and I had nothing else running except this scan.

ninthwalker commented 8 years ago

I get these same errors as well,. All accounts used work in other maps, all TOS accepted. =(

ServePeak commented 8 years ago

Same issue here.

Calajren commented 8 years ago

I haven't noticed much change to this thread but I think I found something useful. When running the scanner I can get about 30 minutes in (about to start fourth pass), and my tokens expire for the game resulting in the errors previously posted. Using the same IP and accounts I can close out and immediately restart and start receiving good data again. I was looking over the code and see that the exception handling basically just throws the flag that we're no longer connected to the server but does not attempt to try and relog the account that was disconnect. Sadly I am not knowledgeable enough to change this myself but I think if after each pass you were to log out and log back in the issue would diminish significantly. Obviously this may result in a few spawn points being missed but it would allow the code to complete and create the json files. The other option would be to output the json files after each iteration and just increment the outputs by 1 (spawns.json, spawns2.json...ect) and code a merger at the end. edit: Typos

Calajren commented 8 years ago

is anyone still wanting a fix for this?

SeeingBlue commented 8 years ago

I've moved on and gave up on this. Go maps have already implemented it.

Calajren commented 8 years ago

I added the same login request to line 142 and 151 in spawn.py with an if statement so it only starts doing it after the second pass, but this seems to be fixing the problem for me on any scan that is 1hr. Haven't done much testing beyond that since I had been getting errors before I just started to break it down into smaller components.

if j > 1: print 'Attempt token update for worker {}'.format(wid) api = pgoapi.PGoApi(provider=config['auth_service'], username=config['users'][wid]['username'], password=config['users'][wid]['password'], position_lat=0, position_lng=0, position_alt=0) api.activate_signature(utils.get_encryption_lib_path()) time.sleep(2) api.get_player()

NHGRisk commented 8 years ago

I got the same issue and don't have any idea on how to fix it @Calajren can you maybe upload your working spawn.py? or just copy the code into pastebin? I could try that one then

Calajren commented 8 years ago

Sorry I haven't been on this since I was able to get the areas I wanted. All I managed to do was re-request the token before it expired during each sleep iteration. That seemed to keep the program running. I would say that with the new ban waves that have been coming though all of the accounts that were used to build my database were banned within a week. Here is a picture of the code I added to get mine up and running. tokenrequest