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

Transfer Pokemon only work with default name - Conflict with Nickname Pokemon

Open berong91 opened this issue 10 years ago • 5 comments

Expected Behavior

TransferPokemon should transfer any Pokemon despite its' name

Actual Behavior

TransferPokemon will only check Pokemon with a default name and ignore any custom name.

Steps to Reproduce

Setting NicknamePokemon with "nickname_template": "{cp}" TrasnferPokemon stops working Setting NicknamePokemon back "nickname_template": "{name}" It works.

This is a long time issue that recently raises with the new feature NicknamePokemon. Before, any Pokemon with a custom name in my inventory is always ignored by the bot - which is fine until this point.

Other Information

OS: Ubuntu 14.04 Git Commit: a90a77abe0f6a59f1adc330ea7db40eb24470a7d Python Version: 2.7.6

berong91 avatar Aug 01 '16 14:08 berong91

its working don't know what your problem is proof:

16:37:55] [x] Coordinates found in passed in location, not geocoding.
[16:37:56]  Starting PokemonGo Bot.... 
[16:37:57]  [x] Next egg incubates in 7.50 km 
[16:38:01]  [x] Next egg incubates in 7.30 km 
[16:42:02]  [x] Next egg incubates in 7.22 km 
[16:46:03]  [x] Next egg incubates in 7.17 km 
[16:50:03]  [x] Next egg incubates in 6.92 km 
[16:53:49] Something rustles nearby!
[16:53:50]  A Wild Voltorb appeared! [CP 236] [Potential 0.93] 
[16:53:50] IV [Attack/Defense/Stamina] = [14/13/15]
[16:53:53] Using Pokeball (chance: 47.34%)... (124 left!)
[16:53:54]  Captured Voltorb! [CP 236] [Potential 0.93] [14/13/15] [+210 exp] 
[16:54:00]  Now at Pokestop: Joan Miro - Moonbird 
[16:54:00]  Spinning ... 
[16:54:00]  Loot:  
[16:54:00]  50 xp 
[16:54:01]  - 2x Pokeball (Total: 126) 
[16:54:01]  - 1x Greatball (Total: 26) 
[16:54:01] PokeStop on cooldown. Time left: 4 minutes, 59 seconds
[16:54:04]  -- Discarded 1x Pokeball (keeps only 125 maximum)  
[16:54:04]  Keep 2 best Voltorb, based on iv 
[16:54:04]  Voltorb [CP 236] [Potential 0.93] 
[16:54:04]  Voltorb [CP 562] [Potential 0.91] 
[16:54:04]  Transferring 1 pokemon 
[16:54:04]  Exchanging Voltorb [CP 11] [Potential 0.89] for candy! 
[16:54:08]  Nickname set successfully! Voltorb is now 93_14/13/15 
[16:54:08]  Now at Pokestop: Memory of Jinny and Bob's View  
[16:54:08]  Spinning ...

voltorbs were renamed before release

Philipp59 avatar Aug 01 '16 16:08 Philipp59

What I actually mean is Transfer does not apply for those Pokemon with a custom name. So later if you change the Transfer criteria, that Voltorb (93_14/13/15) will not be touch no matter what.

Are you sure that your Voltorb [CP 11] were renamed before release?

berong91 avatar Aug 01 '16 16:08 berong91

Transfer code works on the id of the pokemon instance. No other code in our bot except for the nickname code even checks the nickname key of a pokemon object. I've had hundreds of pokemon nicknamed and transferred successfully.

reddivision avatar Aug 01 '16 18:08 reddivision

[11:11:38]  A Wild Pidgey appeared! [CP 24] [Potential 0.38]
[11:11:38] IV [Attack/Defense/Stamina] = [5/10/2]
[11:11:40] Using Pokeball (chance: 100.00%)... (48 left!)
[11:11:41]  Captured Pidgey! [CP 24] [Potential 0.38] [5/10/2] [+210 exp]
[11:11:46]  Now at Pokestop: Het Zuiderbad, the South Pool.
[11:11:46]  Spinning ...
[11:11:46]  Loot:
[11:11:46]  50 xp
[11:11:47]  - 1x Revive (Total: 31)
[11:11:47]  - 1x Pokeball (Total: 49)
[11:11:47]  - 1x Potion (Total: 1)
[11:11:47]  - 1x Hyper Potion (Total: 51)
[11:11:47] PokeStop on cooldown. Time left: 5 minutes, 0 seconds
[11:11:49] Moving towards fort Veiligheids Institute 1912, 0.07km left
[11:11:55]  Nickname set successfully! Pidgey is now 38_5/10/2
[11:11:55]  Keep 8 best Pidgey, based on cp and iv
[11:11:55]  Pidgey [CP 395] [Potential 0.47]
[11:11:55]  Pidgey [CP 119] [Potential 0.73]
[11:11:55]  Pidgey [CP 399] [Potential 0.47]
[11:11:55]  Pidgey [CP 375] [Potential 0.64]
[11:11:55]  Pidgey [CP 63] [Potential 0.67]
[11:11:55]  Pidgey [CP 10] [Potential 0.73]
[11:11:55]  Pidgey [CP 395] [Potential 0.67]
[11:11:55]  Pidgey [CP 404] [Potential 0.56]
[11:11:55]  Transferring 1 pokemon
[11:11:55]  Exchanging Pidgey [CP 24] [Potential 0.38] for candy!

reddivision avatar Aug 01 '16 18:08 reddivision

Yep with a fresh install it seems to be cleared, though I have no idea why does the bot stop transfer named Pokemon back then. I close it for now.

berong91 avatar Aug 01 '16 18:08 berong91