Avoid transferring certain Pokemons
[x] Transferring Aerodactyl with CP 405 [x] Transferring Aerodactyl with CP 355 [x] Transferring Aerodactyl with CP 219 [x] Transferring Aerodactyl with CP 218 [x] Transferring Snorlax with CP 398 [x] Transferring Snorlax with CP 316 [x] Transferring Snorlax with CP 315
I set the initial transfer to 500.
But as you can see my lovely Snorlaxes are getting transferred =[
What can I do to add snorlax to a list of "don't transfer me"
Are you on the dev branch? If so, that is in the config, under "release", just set the release_below_cp to 0, and the log to and
In release_config, set relase_below_cp : 0
Thank you guys. I was wondering what release meant. I thought it was for capturing pokemons. To run away if the pokemon cp is low.
@VietAnhh @xc-mezcal , you need to also set the logic to and
@CadeBrown unless you set release_under_iv to 0 then 'or' is fine but otherwise and with the given context you're right.
@CadeBrown @RiberoD07 I was curious what is the logic or means there.
I have set "Golbat": { "release_below_cp": 800, "release_below_iv": 0.75, "logic": "or" },
and 2 Golbat remains.
1:CP 913 with IV 0.46 2:CP 844 with IV 0.76
Why?
@CadeBrown @RiberoD07
"Snorlax": { "release_under_cp": 0, "release_under_iv": 0, "cp_iv_logic": "and" ,"logic": "and"},
my snorlax is still getting transferred. Is there anything I'm missing?
@xc-mezcal The "logic" parameter has two values; or - and.
If you set the parameter to or value, then the bot will check if the pokemon is below "release_below_cp": 800 OR "release_below_iv": 0.75.
However, if parameter is set to and value, it means that the bot will check if the pokemon is below "release_below_cp": 800 AND "release_below_iv": 0.75.
If the pokemon is below any of those values, release the pokemon.
@TheGoldenXY I think that's what I believed. :D But, why the first Golbat remains un-transfered? It satisfies release_below_iv0.75 and it's an "or" logic.
weird
@xc-mezcal Because both of your golbats have CP over 800.
If IV is below 0.75, then check if CP is below 800 as well.
@TheGoldenXY Wait, Is it Transfer( CP<800 or IV<0.75) ? If so, first golbat should be exchanged for candy.
Cause I have a feel for "and" logic --> Transfer(CP<800 and IV<0.75) --> only transfer the real "trash", keep anything even it's only has one good side.
Am I right?
BTW, where can I find such a function(s) in dev project?
Many thanks!
@xc-mezcal Right, let me explain this for you.
You have two golbats. Your "logic" parameter is set to or, your "release_below_cp" parameter is set to 800 and your "release_below_iv" parameter is set to 0.75.
Golbat 1: CP: 913, IV: 0.46
Golbat 2: CP: 844, IV: 0.76
The reason why 2 golbats are remaining and not transfered, is mainly because both of the golbats has 800+ CP. For instance, if Golbat 1 had CP below 800, then that one would be transfered.
Instead of setting your "logic" parameter to or, you could instead set it to and. That means the bot won't transfer ANY of your golbats, unless CP is above 800 AND IV is above 0.75.
I hope you understood :)
@TheGoldenXY
I have tested by using
"release_below_cp": 800 AND "release_below_iv": 0.75. initial_transfer : true
run the script for two times.
But Golbat 1 are still there. Sad :(
_first try_** It only cleaned a pidgey lol
[22:36:33] Cleaning up Pokemon Bag using the release config [22:36:34] Exchanging Pidgey [CP 213] [Potential 0.53] [22:36:37] Pokemon Bag has been cleaned up! [22:36:37] [22:36:38] Starting PokemonGo Bot.... [22:36:38] Scanning area for objects....
_second try_*****
[22:37:35] Cleaning up Pokemon Bag using the release config [22:37:35] Pokemon Bag has been cleaned up! [22:37:35] [22:37:37] Starting PokemonGo Bot.... [22:37:37] Scanning area for objects....
*******IM trying hard to find where is the release module, but never have a hint. Do you know this function's location?
I have the same issue, I think this might be related some hardcoded logic of keeping at least 1 type of each Pokemon in your inventory. For example, if Zubat meets the transfer requirement, but you only have 1 Zubat in your inventory, it will NOT be transferred.
In my opinion, I don't think this should be hardcoded or even necessary. Release configs are there for a reason. Either take the hardcode out or put it as config option.
@johnw424 Thanks man! But as i stated, I have 2 Golbats.
The first one should be transferred, even with 1 type of each mechanism.
@TheGoldenXY
I have confirmed that logic "or" "and" works in the way I described.
Transfer(cp<800 or iv<0.75) Transfer(cp<800 and iv<0.75)
There must be something else that made the problem happens
It makes no sense that the OR logic should work like that.
If have a filter to discard any pokemon which has a CP below 800, OR an IV of below 0.8, then regardless if a Pokemon with 0.6 IV is 2000CP or 100cp, it fulfils the OR of below 0.8 IV and should be discarded.
Please upgrade to the latest dev branch by running this command:
git reset --hard
git pull -f
Then run this command:
pip install --upgrade -r requirements.txt
If issue persists, open a new issue.
/closed