[Suggestion] Auto Soft Ban Bypass
A soft ban can be bypassed by spinning a pokestop about 41 times. This could easily be implemented into the existing code. I'm very new to python and github, so I'm not sure where or how to suggest this. I was able to create a soft-ban bypass by modifying the "seen_fort_worker.py" file. The modification was done on line 110. The code is as follows below:
raise RuntimeError(message)
count = 0 while (count < 41): logger.log('Spinning Soft Ban.') response_dict = self.api.call() time.sleep(2) longcountvar = longcountvar + 1 return 0
Expected Behavior
Remove the soft ban using a single pokestop.
Actual Behavior
The soft ban was removed after 2 pokestops instead.
Steps to Reproduce
Modify the "seen_fort_worker.py" file as described above, but with correct formatting.
Other Information
OS: lubuntu 16.04.1 Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Already in work: #1614
The code looks like:
if not items_awarded and not experience_awarded and not pokestop_cooldown: count = 0 while (count < 41): logger.log('Spinning Soft Ban.') self.api.fort_search(fort_id=fort['id'], fort_latitude=lat, fort_longitude=lng, player_latitude=f2i(self.position[0]), player_longitude=f2i(self.position[1])) response_dict = self.api.call() time.sleep(1) count = count + 1 return 0
Thanks guys.
Unless it was a pure fluke (as I only teleported 5km for a short ban!) it seems to work with one small change (fort becomes self.fort) ...
if not items_awarded and not experience_awarded and not pokestop_cooldown:
logger.log("[!] Did not find experience, items or cooldown. You are probably softbanned.", 'red')
count = 0
while (count < 41):
logger.log('[!] Spinning soft ban...' + str(count), 'red')
self.api.fort_search(fort_id=self.fort['id'], fort_latitude=lat, fort_longitude=lng, player_latitude=f2i(self.position[0]), player_longitude=f2i(self.position[1]))
response_dict = self.api.call()
time.sleep(1)
count = count + 1
return 0
[2016-07-29 21:07:12] [x] Starting PokemonGo Bot.... [2016-07-29 21:07:12] [#] Scanning area for objects (1 / 25) [2016-07-29 21:07:12] [#] Walking from (53.166247, -0.537573) to (53.166247, -0.537573) for approx. 0.00 seconds [2016-07-29 21:07:12] [#](53.166247, -0.537573, 0) [#] Attempting to evolve all pokemons ... [2016-07-29 21:07:13] [#] Something rustles nearby! [2016-07-29 21:07:19] [#] A Wild Weedle appeared! [CP 127] [Potential 0.4] [2016-07-29 21:07:19] [#] IV [Stamina/Attack/Defense] = [4/0/14] [2016-07-29 21:07:23] [x] Using Pokeball (chance: 41.52%)... (155 left!) [2016-07-29 21:07:24] [x] Oh no! Weedle vanished! :( [2016-07-29 21:07:29] [#] A Wild Pidgey appeared! [CP 46] [Potential 0.8] [2016-07-29 21:07:29] [#] IV [Stamina/Attack/Defense] = [15/7/14] [2016-07-29 21:07:34] [x] Using Pokeball (chance: 92.71%)... (154 left!) [2016-07-29 21:07:34] [x] Oh no! Pidgey vanished! :( [2016-07-29 21:07:45] [#] Found fort f454f165e87e496abbfaa7651a1e625c.16 at distance 0.00km [2016-07-29 21:07:45] [#] Now at Pokestop: All Saints Primary School Gate - Spinning... [2016-07-29 21:07:46] [+] Loot: [2016-07-29 21:07:46] [#] Nothing found. [2016-07-29 21:07:46] [!] Did not find experience, items or cooldown. You are probably softbanned. [2016-07-29 21:07:46] [!] Spinning soft ban...0 [2016-07-29 21:07:48] [!] Spinning soft ban...1 [2016-07-29 21:07:49] [!] Spinning soft ban...2 [2016-07-29 21:07:50] [!] Spinning soft ban...3 [2016-07-29 21:07:52] [!] Spinning soft ban...4 [2016-07-29 21:07:53] [!] Spinning soft ban...5 [2016-07-29 21:07:54] [!] Spinning soft ban...6 [2016-07-29 21:07:56] [!] Spinning soft ban...7 [2016-07-29 21:07:57] [!] Spinning soft ban...8 [2016-07-29 21:07:58] [!] Spinning soft ban...9 [2016-07-29 21:08:00] [!] Spinning soft ban...10 [2016-07-29 21:08:01] [!] Spinning soft ban...11 [2016-07-29 21:08:02] [!] Spinning soft ban...12 [2016-07-29 21:08:04] [!] Spinning soft ban...13 [2016-07-29 21:08:05] [!] Spinning soft ban...14 [2016-07-29 21:08:06] [!] Spinning soft ban...15 [2016-07-29 21:08:08] [!] Spinning soft ban...16 [2016-07-29 21:08:09] [!] Spinning soft ban...17 [2016-07-29 21:08:10] [!] Spinning soft ban...18 [2016-07-29 21:08:12] [!] Spinning soft ban...19 [2016-07-29 21:08:13] [!] Spinning soft ban...20 [2016-07-29 21:08:14] [!] Spinning soft ban...21 [2016-07-29 21:08:16] [!] Spinning soft ban...22 [2016-07-29 21:08:17] [!] Spinning soft ban...23 [2016-07-29 21:08:19] [!] Spinning soft ban...24 [2016-07-29 21:08:20] [!] Spinning soft ban...25 [2016-07-29 21:08:21] [!] Spinning soft ban...26 [2016-07-29 21:08:23] [!] Spinning soft ban...27 [2016-07-29 21:08:24] [!] Spinning soft ban...28 [2016-07-29 21:08:25] [!] Spinning soft ban...29 [2016-07-29 21:08:27] [!] Spinning soft ban...30 [2016-07-29 21:08:28] [!] Spinning soft ban...31 [2016-07-29 21:08:29] [!] Spinning soft ban...32 [2016-07-29 21:08:31] [!] Spinning soft ban...33 [2016-07-29 21:08:32] [!] Spinning soft ban...34 [2016-07-29 21:08:33] [!] Spinning soft ban...35 [2016-07-29 21:08:35] [!] Spinning soft ban...36 [2016-07-29 21:08:36] [!] Spinning soft ban...37 [2016-07-29 21:08:37] [!] Spinning soft ban...38 [2016-07-29 21:08:39] [!] Spinning soft ban...39 [2016-07-29 21:08:40] [!] Spinning soft ban...40 [2016-07-29 21:08:42] [#] Found fort 22e8e2f1b00f47aea26bfe430b0ae46d.16 at distance 0.39km [2016-07-29 21:08:42] [#] Need to move closer to Pokestop [2016-07-29 21:08:42] [#] Walking from (53.166247, -0.537573) to (53.168723, -0.541776) for approx. 20.00 seconds [2016-07-29 21:08:48] [#] Something rustles nearby! [2016-07-29 21:08:48] [#] A Wild Zubat appeared! [CP 213] [Potential 0.67] [2016-07-29 21:08:48] [#] IV [Stamina/Attack/Defense] = [9/8/13] [2016-07-29 21:08:51] [x] Using Pokeball (chance: 41.52%)... (153 left!) [2016-07-29 21:08:52] [x] Captured Zubat! [CP 213] [IV 0.67] [2016-07-29 21:08:53] [x] Failed to evolve Zubat! [2016-07-29 21:08:53] [x] Captured Zubat! [CP 213]
Thanks g0wfv! Your modification to the code worked perfectly. I teleported from ohio to california, and after the first pokestop I could catch pokemon again. I hope more people test this so it can be implemented into the project.