PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Bot sells all duplicates when Pokemon Storage full

Open Chudopoke opened this issue 10 years ago • 18 comments

How to make the bot stop when Pokemon Storage full . Now it removes the duplicates when full .

Chudopoke avatar Jul 27 '16 18:07 Chudopoke

master or dev?

VictorChen avatar Jul 27 '16 19:07 VictorChen

I'm having this issue on dev.

KnelsenG avatar Jul 27 '16 19:07 KnelsenG

I changed this in my fork as follows, to keep the best two rather than all dupliates.

in initial_transfer_worker.py:

 if len(group_cp) > 2:
                group_cp.sort()
                group_cp.reverse()


                for x in range(2, len(group_cp)):

...

MikeDX avatar Jul 27 '16 19:07 MikeDX

@Chudopoke Remove the if condition on: https://github.com/PokemonGoF/PokemonGo-Bot/blob/6e99169d963bd8637dfb55426650f2fe15e694bd/pokemongo_bot/init.py#L192

karanjthakkar avatar Jul 27 '16 20:07 karanjthakkar

@karanjthakkar if you do that, the bag will always be full, so the bot will never catch anything else until a human intervenes. Not realy ideal

MikeDX avatar Jul 27 '16 20:07 MikeDX

@MikeDX I know that but that is exactly what the OP wants to do.

karanjthakkar avatar Jul 27 '16 20:07 karanjthakkar

@karanjthakkar That's good, but I would like to Bot stopped when Pokemon Storage full. Can you help me with this ?

Chudopoke avatar Jul 27 '16 20:07 Chudopoke

@VictorChen dev

Chudopoke avatar Jul 27 '16 20:07 Chudopoke

@Chudopoke Just replace the if condition with:

raise RuntimeError('You bag is full')

karanjthakkar avatar Jul 27 '16 20:07 karanjthakkar

@MikeDX can i do this for master? also if i change 2 for 3 would it keep best 3?

apyapy avatar Jul 27 '16 20:07 apyapy

@karanjthakkar OK. Thank you.

Chudopoke avatar Jul 27 '16 20:07 Chudopoke

Yes

On Thu, 28 Jul 2016 at 01:48, apyapy [email protected] wrote:

@MikeDX https://github.com/MikeDX can i do this for master? also if i change 2 for 3 would it keep best 3?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PokemonGoF/PokemonGo-Bot/issues/1244#issuecomment-235707524, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvWKopIJp9Kj0qbtwOcwh05XV-dQPhmks5qZ70vgaJpZM4JWgsn .

Regards, Karan Twitter/Instagram: @geekykaran

karanjthakkar avatar Jul 27 '16 20:07 karanjthakkar

@karanjthakkar

if return_value == PokemonCatchWorker.BAG_FULL: raise RuntimeError('You bag is full')

Right?

Chudopoke avatar Jul 27 '16 20:07 Chudopoke

Yes 👍🏻 On Thu, 28 Jul 2016 at 02:00, Chudopoke [email protected] wrote:

@karanjthakkar https://github.com/karanjthakkar

if return_value == PokemonCatchWorker.BAG_FULL: raise RuntimeError('You bag is full')

Right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PokemonGoF/PokemonGo-Bot/issues/1244#issuecomment-235710941, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvWKld_ogLwBgGdRqV2L0d5Z14y5H5hks5qZ7_wgaJpZM4JWgsn .

Regards, Karan Twitter/Instagram: @geekykaran

karanjthakkar avatar Jul 27 '16 20:07 karanjthakkar

@karanjthakkar Thank you so much.

Chudopoke avatar Jul 27 '16 20:07 Chudopoke

Glad to help. I just figured this out today myself :) On Thu, 28 Jul 2016 at 02:05, Chudopoke [email protected] wrote:

@karanjthakkar https://github.com/karanjthakkar Thank you so much.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PokemonGoF/PokemonGo-Bot/issues/1244#issuecomment-235712166, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvWKnGbVbUjbsypyWgyzzqMHWF5vrLuks5qZ8D_gaJpZM4JWgsn .

Regards, Karan Twitter/Instagram: @geekykaran

karanjthakkar avatar Jul 27 '16 20:07 karanjthakkar

@apyapy it should be configurable really. I'm not doing any more pull requests until the bot is stable again as its all a bit of a mess at the moment. Dev doesn't catch anything and master has bugs already fixed in dev

MikeDX avatar Jul 27 '16 20:07 MikeDX

This issue has been resolved.

/closed

AdaptCharm avatar Jul 28 '16 22:07 AdaptCharm