(Request dev) - transfer and recycle threshold
now release and recycle is done by the task order, which is ok. But it would be better to just modify the tasks, so that the release and recycle task are executed when the there is no space left
for e.g. recycle task is done with config setting (keep X,Keep X, etc) only when bag is full or saver when inventory count reaches 349
same with pokemon space, release after release settings but only when bag reaches full or saver 249
it might not sound necessary at all but in a long run it will save so much time. Because the bot should just farm and clear inventory only when its needed .
for e.g. one loop (pokestop->capture->loot->recycle->release)
[16:47:04] Moving towards fort 伊勢丹 Plate, 0.08km left (attraction of lure 0.16km)
[16:47:04] Arrived at pokestop.
[16:47:04] [x] Current egg hatches in 0.22 km
[16:47:05] Something rustles nearby!
[16:47:06] A Wild Spearow appeared! [CP 184] [Potential 0.78]
[16:47:06] IV [Attack/Defense/Stamina] = [13/13/9]
[16:47:09] Using Pokeball (chance: 47.34%)... (126 left!)
[16:47:10] Captured Spearow! [CP 184] [Potential 0.78] [13/13/9] [+210 exp]
[16:47:11] Failed to evolve Sparrow!
[16:47:16] Now at Pokestop: 伊勢丹 Plate
[16:47:16] Spinning ...
[16:47:17] Loot:
[16:47:17] 100 xp
[16:47:17] - 5x Pokeball (Total: 129)
[16:47:17] - 2x Potion (Total: 2)
[16:47:17] - 1x Revive (Total: 1)
[16:47:17] PokeStop on cooldown. Time left: 4 minutes, 49 seconds
[16:47:20] -- Discarded 4x Pokeball (keeps only 125 maximum)
[16:47:21] -- Discarded 1x Revive (keeps only 0 maximum)
[16:47:21] -- Discarded 2x Potion (keeps only 0 maximum)
[16:47:22] Releasing Spearow with CP 184 and IV 0.78. Matching release rule: CP < 9 OR IV < 0.97.
[16:47:22] Exchanging Spearow [CP 184] [Potential 0.78] for candy!
whole loop takes about 18sec from that 18 sec about 3sec are wasted for recycle/release which is nearly a 16% speed down. Sure you can argue that at the end he have to do a recycle when bag is full or 349items in stock but its more efficient so recycle en bloc
for e.g
Recycling 100 poke balls maybe I have to do recycle onces a stop (maximum number here to show the maximum potential) then i have to to recycle 100x 1 poke ball which will take maximum 100sec
when Iam doing the recycle en bloc and reduce the count to the threshold then this takes 1sec, so there is a time saving of 99sec (in the best case obv.)
I hope you understand what Iam trying to point out
I think that through that ordering we can gain a speedup from about 10% in total that might not sound that much but when your average xp/h is about 60k you are missing 144.000 XP in a day. Thats the same amount like evolving 144 pidgeys with lucky egg.
iam not a computer expert but for items if item_count_dict > 349: before the recycle task must solve it
with >340 it worked
[21:36:27] Items: 347/350
[21:36:27] Stardust: 1037290 | Pokecoins: 0
[21:36:27] PokeBalls: 165 | GreatBalls: 52 | UltraBalls: 53
[21:36:27] RazzBerries: 28 | BlukBerries: 0 | NanabBerries: 0
[21:36:27] LuckyEgg: 9 | Incubator: 0 | TroyDisk: 9
[21:36:27] Potion: 2 | SuperPotion: 3 | HyperPotion: 1
[21:36:27] Incense: 12 | IncenseSpicy: 0 | IncenseCool: 0
[21:36:27] Revive: 8 | MaxRevive: 1
[21:36:27]
[21:36:27]
[21:36:31] Starting PokemonGo Bot....
[21:36:31] [x] Current egg hatches in 6.88 km
[21:36:32] Lured pokemon at fort 新宿遊歩道公園四季の路
[21:36:33] A Wild Pidgey appeared! [CP 403] [Potential 0.51]
[21:36:33] IV [Attack/Defense/Stamina] = [0/13/10]
[21:36:36] Using Greatball (chance: 41.36%)... (51 left!)
[21:36:37] Captured Pidgey! [CP 403] [Potential 0.51] [0/13/10] [+210 exp]
[21:36:38] Pidgey has been evolved!
[21:36:43] Not spinning any forts as there aren't enough space. You might want to change your config to recycle more items if this message appears consistently.
[21:36:44] -- Discarded 40x Pokeball (keeps only 125 maximum)
[21:36:45] -- Discarded 1x Greatball (keeps only 50 maximum)
[21:36:45] -- Discarded 3x Ultraball (keeps only 50 maximum)
[21:36:46] -- Discarded 2x Potion (keeps only 0 maximum)
[21:36:46] -- Discarded 3x Super Potion (keeps only 0 maximum)
[21:36:47] -- Discarded 1x Hyper Potion (keeps only 0 maximum)
[21:36:47] -- Discarded 2x Max Potion (keeps only 0 maximum)
[21:36:48] -- Discarded 8x Revive (keeps only 0 maximum)
[21:36:49] -- Discarded 1x Max Revive (keeps only 0 maximum)
[21:36:49] -- Discarded 8x Razz Berry (keeps only 20 maximum)
ok iam a noob its not working
[21:46:13] 50 xp
[21:46:14] - 1x Revive (Total: 1)
[21:46:14] - 1x Razz Berry (Total: 20)
[21:46:14] - 1x Pokeball (Total: 126)
[21:46:14] PokeStop on cooldown. Time left: 4 minutes, 59 seconds
[21:46:17] -- Discarded 1x Pokeball (keeps only 125 maximum)
[21:46:18] -- Discarded 1x Revive (keeps only 0 maximum)
[21:46:19] Moving towards fort ラッパを持つ勝利の女神, 0.07km left (attraction of lure 0.17km)
[21:46:19] Arrived at pokestop.
[21:46:19] Now at Pokestop: ラッパを持つ勝利の女神
[21:46:19] Spinning ...
[21:46:20] Loot:
[21:46:20] 50 xp
[21:46:21] - 1x Revive (Total: 1)
[21:46:21] - 2x Pokeball (Total: 127)
[21:46:21] PokeStop on cooldown. Time left: 4 minutes, 59 seconds
[21:46:24] -- Discarded 2x Pokeball (keeps only 125 maximum)
[21:46:24] -- Discarded 1x Revive (keeps only 0 maximum)
and for pokemon self.count_pokemon_inventory ?
On my personal fork, I added a minimum interval time for checking transfer, to run like every 5 minutes only