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

IV makes no sense

Open RobbieTheWagner opened this issue 10 years ago • 33 comments

Expected Behavior

IV should be flipped from the way it works now. Setting -iv 0.5 should transfer 0.5-1, as those are the lower CP ones. Why would I want to transfer the high CP ones?

Actual Behavior

Transferring the good ones and keeping the low ones, which seems incorrect

Steps to Reproduce

Use the IV flag

Other Information

OS: Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

RobbieTheWagner avatar Jul 23 '16 11:07 RobbieTheWagner

I can't fix it for now. My 500AM..

solderzzc avatar Jul 23 '16 12:07 solderzzc

IV ratio is (pokemon IV)/15. So pokemon with ratio of 1 has 15 IV which is good, right?

Luab avatar Jul 23 '16 12:07 Luab

@Luab I'm really not sure what IV is, all I know is it was throwing away high CP Pokemon, which is not what we want.

RobbieTheWagner avatar Jul 23 '16 12:07 RobbieTheWagner

@rwwagner90 IV is a long term quality of pokemon and it determines maximum CP, so while pokemons with higher IV could have less CP their upgrade potential is higher. And visa versa. http://gaming.stackexchange.com/questions/276692/in-pokemon-go-what-are-my-pokemons-hidden-iv-stats-and-why-do-they-matter

Luab avatar Jul 23 '16 12:07 Luab

Could be to do with the "-c" option not working ?

All pokemon still being transferred regardles off -c flag settings.

YourATowel avatar Jul 23 '16 12:07 YourATowel

I think the default -iv is overriding any -cp we set

RobbieTheWagner avatar Jul 23 '16 12:07 RobbieTheWagner

@Luab so are higher values of IV here better? I assume a 1.0 would be perfect?

RobbieTheWagner avatar Jul 23 '16 12:07 RobbieTheWagner

here is the current logic based on codebase at https://github.com/PokemonGoF/PokemonGo-Bot/blob/dev/pokemongo_bot/cell_workers/pokemon_catch_worker.py#L102

if pokemon cp < config cp or pokemon potential <  config potential
    transfer it
else
    keep it

i think there is nothing wrong there 😕

sinistance avatar Jul 23 '16 12:07 sinistance

@rwwagner90 yes. But if IV is high, but CP is low it would take large amount of dust to upgrade the pokemon.

Luab avatar Jul 23 '16 12:07 Luab

i catched some pokemons with much cp, it transfered. also i removed the -iv and still removed every pokemon with high cp.

zgelici avatar Jul 23 '16 12:07 zgelici

can confirm the above issue with the latest commit

vincesmits avatar Jul 23 '16 12:07 vincesmits

I just set -iv 0 to be able to use -cp 200 correctly

RobbieTheWagner avatar Jul 23 '16 12:07 RobbieTheWagner

IV is a stat made of three values, each out of a maximum of 15. How, then, does code calculate IV as the numerator in the IV/15 formula?

J102030 avatar Jul 23 '16 13:07 J102030

@rwwagner90 @sinistance if cp < self.config.cp or pokemon_potential < self.config.pokemon_potential: transfer can be edited to if cp < self.config.cp and pokemon_potential < self.config.pokemon_potential: transfer then all high cp or high iv pokemon will be kept

this can be made more complex, e.g. cp > 1000 keep all 1000 > cp > 500 keep high iv cp < 500 release all

There also should be a vip list so that a low cp low iv mewtwo doesn't get transfered

jzju avatar Jul 23 '16 13:07 jzju

i suggest we multiply by 100 to make it more human friendly pokemon_potential = round(( (total_IV / 45.0) * 100), 2) this simply turns it into a range from 0-100%

filtering by iv now, you dont even need to worry about cp anymore as it is irrelevant since this is a bot that plays the game for you, the higher the iv the better

skydrome avatar Jul 23 '16 15:07 skydrome

Appears to completely disregard the CP value. Question is how it should it ideally be. To me it makes most sense that it be: CP OR IV lower than specified values for transfer?

Perhaps the could be more elaborate options as suggested.

ts91 avatar Jul 23 '16 15:07 ts91

@sinistance true but not the observed behavior. Dunno what is wrong...

ts91 avatar Jul 23 '16 15:07 ts91

@ts91 what is the observed behavior?

if pokemon cp < config cp or pokemon potential <  config potential
    transfer it

means that if iv is less than a limit it will be transferred regardless of cp

jzju avatar Jul 23 '16 16:07 jzju

Made a mistake previously. @JohanJu it says OR right? So if CP is higher than limit is shouldn't be tranfered? I get [#] A Wild Drowzee appeared! [CP 467] [Potential 0.36] [x] Using Greatball... [x] Captured Drowzee! [CP 467] [IV 0.36] - exchanging for candy [#] Drowzee has been exchanged for candy!

with -iv 0.8 and -c 300

ts91 avatar Jul 23 '16 16:07 ts91

@ts91 if pokemon cp < config cp or pokemon potential < config potential transfer it if pokemon false or true transfer it false or true = true which means that it will be transferred

jzju avatar Jul 23 '16 16:07 jzju