Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"catch_randomize_reticle_factor" seems not working #1843

Closed
vicch opened this issue Jul 30, 2016 · 9 comments
Closed

"catch_randomize_reticle_factor" seems not working #1843

vicch opened this issue Jul 30, 2016 · 9 comments

Comments

@vicch
Copy link

vicch commented Jul 30, 2016

Expected Behavior

Do "nice" and "great" throws occasionally.

Actual Behavior

Barely do "nice" throws, never do "great" throws.

Steps to Reproduce

"catch_randomize_reticle_factor" : 1,
"catch_randomize_spin_factor"    : 0.3,

Other Information

OS: Windows 7
Git Commit: 2f277fd

@vicch
Copy link
Author

vicch commented Jul 30, 2016

Or maybe the "+110 exp" was from curve balls, the nice/great/excellent throws were not working at all.

@chauhan-rahul
Copy link

any sort of documentation on "catch_randomize_reticle_factor" and "catch_randomize_spin_factor", would be really welcome.. and i have the same issue!!

@vicch
Copy link
Author

vicch commented Jul 30, 2016

Some explaination in the code:

long_flag="--catch_randomize_reticle_factor",
help="Randomize factor for pokeball throwing accuracy (DEFAULT 1.0 means no randomize: always 'Excellent' throw. 0.0 randomizes between normal and 'Excellent' throw)",
...
long_flag="--catch_randomize_spin_factor",
help="Randomize factor for pokeball curve throwing (DEFAULT 1.0 means no randomize: always perfect 'Super Spin' curve ball. 0.0 randomizes between normal and 'Super Spin' curve ball)",

However I doubt it really does what it says.

@chauhan-rahul
Copy link

chauhan-rahul commented Jul 30, 2016

I found this in code... currently testing it..

API:

# Humanized `normalized_reticle_size` parameter for `catch_pokemon` API.
# 1.0 => normal, 1.950 => excellent
def normalized_reticle_size(factor):
    minimum = 1.0
    maximum = 1.950
    return uniform( minimum + (maximum - minimum) * factor, maximum)

Our code:
if config.catch_randomize_reticle_factor < 0 or 1 < config.catch_randomize_reticle_factor: parser.error("--catch_randomize_reticle_factor is out of range! (should be 0 <= catch_randomize_reticle_factor <= 1)") return None

No sure what to make of it... currently testing withe max api values, but 1.950 doesnt seem to catch anything.. whereas 1 just does a normal throw!

Spin Modifier is working perfectly though:

# Humanized `spin_modifier` parameter for `catch_pokemon` API.
# 0.0 => normal ball, 1.0 => super spin curve ball
def spin_modifier(factor):
    minimum = 0.0
    maximum = 1.0
    return uniform(
        minimum + (maximum - minimum) * factor,
        maximum)

@antoineneff
Copy link

antoineneff commented Jul 30, 2016

I looked into the code but it seems 1.0 should make excellent throws only ... I don't know why it does not.
Maybe pokemongo recent update changed it ?

@xc-mezcal
Copy link
Contributor

@vicch @antoineneff @douglascamata It only do curve ball, no nice/great/excellent throw

This behaviour hugely affects the capture rates :(

@douglascamata
Copy link
Member

#2095 states this is problem in pgoapi.

@GepLik
Copy link
Contributor

GepLik commented Jul 31, 2016

Actually, the (too simple) problem was in our code. Fixed with #2130.

@vicch
Copy link
Author

vicch commented Jul 31, 2016

Happy to see it fixed in latest dev, closed.

@vicch vicch closed this as completed Jul 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants