PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

bug. Admin, please fix.

Open li24yang75 opened this issue 10 years ago • 8 comments

Description: [Short description of the issue observed. If this ia feature request you can modify the template as required.]

The bot keeps going to the same stop all the time. Please see the logs.

Steps to reproduce:

  1. [Step 1]
  2. [Step 2]

Expected behavior: [What should happen?]

Actual behavior:

24 七月 18:03:42: Getting map of (37.7862291499803, -122.40933165894252) 24 七月 18:03:42: Walking to pokestop "Angry Bird" (37.786366, -122.409425000000

  1. in 0.7048297930742078 steps. 24 七月 18:03:42: Destination reached. 24 七月 18:03:47: Getting map of (37.78638870620531, -122.40942181776012) 24 七月 18:03:48: Walking to pokestop "Angry Bird" (37.786366, -122.409425000000
  2. in 0.2951701227458084 steps. 24 七月 18:03:48: Destination reached. 24 七月 18:03:52: Getting map of (37.7862100740094, -122.40930924995435) 24 七月 18:03:53: Walking to pokestop "Angry Bird" (37.786366, -122.409425000000
  3. in 0.7048300781588052 steps. 24 七月 18:03:53: Destination reached. 24 七月 18:03:57: Getting map of (37.78636868078777, -122.40948807087747) 24 七月 18:03:57: Walking to pokestop "Angry Bird" (37.786366, -122.409425000000
  4. in 0.2951698377516647 steps. 24 七月 18:03:57: Destination reached. 24 七月 18:04:02: Getting map of (37.786304958656736, -122.40937247568182) 24 七月 18:04:02: Walking to pokestop "Angry Bird" (37.786366, -122.409425000000
  5. in 0.7048303631514938 steps. 24 七月 18:04:02: Destination reached. Stacktrace (If it's a crash): [Please use pastebin if it's too long]

Version: 0.4.1

li24yang75 avatar Jul 25 '16 01:07 li24yang75

Mine started doing that after "Pokestop still in cooldown mode; blacklisting for 5 minutes" I wonder if that is the cause.

Forty-Tw0 avatar Jul 25 '16 01:07 Forty-Tw0

make sure in your task manager there are no copies of java.exe running or consolehost.exe Even if the console is not displayed but you have java.exe running then the program is still running and will cause this.

iamthasasquatch avatar Jul 25 '16 01:07 iamthasasquatch

I've seen it happen in the latest build, the bot tries to go back to the pokestop in cooldown, circles around and goes back in again until it gets a loot. The behaviour is new to this build, since i've run debugging from source and from the jar. The copies of running java.exe in windows are planned redundancies, in case the the application is started again the entries are directly available in the memory. Older versions didn't suffer from this issue, even with the java.exe copies left running after starting new terminals.

Dragunovam avatar Jul 25 '16 01:07 Dragunovam

I think I found the problem. This was changed to check timeouts: https://github.com/jabbink/PokemonGoBot/blob/develop/src/main/kotlin/ink/abb/pogo/scraper/tasks/LootOneNearbyPokestop.kt#L29 But this one was not: https://github.com/jabbink/PokemonGoBot/blob/develop/src/main/kotlin/ink/abb/pogo/scraper/tasks/WalkToUnusedPokestop.kt#L33

Forty-Tw0 avatar Jul 25 '16 01:07 Forty-Tw0

If you wait 5ish minutes it actually continues lol. It just keeps circling the stop till the blacklist is done.

Offline-R503B avatar Jul 25 '16 01:07 Offline-R503B

I fixed the bug, #259 waiting for merge. It now checks the blacklist timeout as well as the canLoot status.

Forty-Tw0 avatar Jul 25 '16 02:07 Forty-Tw0

cool, thanks for this quick fix. you are the best. Admin.

li24yang75 avatar Jul 25 '16 05:07 li24yang75

Is fixed

jabbink avatar Jul 25 '16 09:07 jabbink