GithubHelp home page GithubHelp logo

setFavoritePokemon proto fix about pokemongo-api HOT 7 OPEN

earshel avatar earshel commented on September 28, 2024
setFavoritePokemon proto fix

from pokemongo-api.

Comments (7)

dmadisetti avatar dmadisetti commented on September 28, 2024

https://github.com/AeonLucid/POGOProtos/blob/43deeef30b4c24fe47675ddfbf930eae16f3082b/src/POGOProtos/Networking/Requests/Messages/SetFavoritePokemonMessage.proto#L5

from pokemongo-api.

dmadisetti avatar dmadisetti commented on September 28, 2024

We're just following these guys for now.

If you are convinced this is the case, submit a pull request with them and we'll merge it

from pokemongo-api.

dmadisetti avatar dmadisetti commented on September 28, 2024

Ehh. I'll keep this open then

from pokemongo-api.

earshel avatar earshel commented on September 28, 2024

Fair enough. All I know is that using INT64, when my Pokemon ID is outside of the scope of INT64 it fails to favorite the Pokemon giving an out of range exception.

from pokemongo-api.

dmadisetti avatar dmadisetti commented on September 28, 2024

I haven't had this issue, but I haven't extensively used the call. Do you have an id as reference?

from pokemongo-api.

earshel avatar earshel commented on September 28, 2024

@dmadisetti here's an ID that raises the error if it's set to INT64 rather than UINT64:

File "C:\Python27\lib\site-packages\google\protobuf\internal\type_checkers.py", line 134, in CheckValue
    if not isinstance(proposed_value, six.integer_types):
      message = ('%.1024r has type %s, but expected one of: %s' %
                 (proposed_value, type(proposed_value), six.integer_types))
      raise TypeError(message)
    if not self._MIN <= proposed_value <= self._MAX:
      raise ValueError('Value out of range: %d' % proposed_value)
    # We force 32-bit values to int and 64-bit values to long to make
    # alternate implementations where the distinction is more significant
    # (e.g. the C++ implementation) simpler.
    proposed_value = self._TYPE(proposed_value)
    return proposed_value
ValueError: Value out of range: 9616888052755598152

 We force 32-bit values to int and 64-bit values to long to make
    # alternate implementations where the distinction is more significant
    # (e.g. the C++ implementation) simpler.
    proposed_value = self._TYPE(proposed_value)
    return proposed_value
ValueError: Value out of range: 9616888052755598152

from pokemongo-api.

earshel avatar earshel commented on September 28, 2024

After altering the Proto, it works.

Line 111,mgr.py - 2016-08-12 15:28:59,000 - CRITICAL - Found pokemon with ID 9616888052755598152. Toggling favorite.
Line 113,mgr.py - 2016-08-12 15:28:59,124 - CRITICAL - result: SUCCESS

Line 87,_internal.py - 2016-08-12 15:28:59,132 - INFO - 127.0.0.1 - - [12/Aug/2016 15:28:59] "GET /release?sortBy=cp&pokeID=9616888052755598152&action=Favorite+Selected HTTP/1.1" 200 -
Line 87,_internal.py - 2016-08-12 15:29:00,266 - INFO - 127.0.0.1 - - [12/Aug/2016 15:29:00] "GET /inventory HTTP/1.1" 200 -

from pokemongo-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.