Closed db-coder closed 8 years ago
I looked at the code where it checks for daily catch limit and I don't see how if you set the daily_catch_limit to something very very high that it would reached that limit.
while True:
if self.caught_last_24_hour < self.daily_catch_limit:
# catch that pokemon!
encounter_id = self.pokemon['encounter_id']
catch_rate_by_ball = [0] + response['capture_probability']['capture_probability'] # offset so item ids match indces
self._do_catch(pokemon, encounter_id, catch_rate_by_ball, is_vip=is_vip)
break
else:
self.emit_event('catch_limit', formatted='WARNING! You have reached your daily catch limit')
sys.exit(2)
break
Can you try to do this (note you might have to install sqlite, In ubuntu, it is just sudo apt-get install sqlite)?
$ sqlite3 data/<your_username>.db "select distinct count(encounter_id) from catch_log where dated >= '2016-09-23' and dated < '2016-09-24'"
Actually, everything's working fine if I just disable sniping. Any ideas why?
So, it is still happening? I don't think the two are related though.
Currently, I've disable sniping and it's working fine. But it gives the same error once I re-enable it. This started happening after the latest sniping related commit.
having sort of the same problem
I see this Catch limit even though I have no limit at all in my config
[PokemonCatchWorker] [INFO] Captured Pidgey! (CP: 142 IV: 0.82 7/15/15 NCP: 0.21) Catch Limit: (598/800) +120 exp +100 stardust
Duplicated (Issue #5684).
Expected Behavior
Bot should work correctly
Actual Behavior
gives error that daily catch limit is reached even though I've set a very high limit
Your FULL config.json (remove your username, password, gmapkey and any other private info)
Output when issue occurred
Steps to Reproduce
Run the bot in the latest config
Other Information
OS: Ubuntu 15.04 Branch: dev Git Commit: e262b95eb15f144c89c1f17ffe434cecb4b3e9e6 Python Version: Python 2.7.9