Giter VIP home page Giter VIP logo

Comments (13)

nickblt avatar nickblt commented on August 15, 2024

I'm getting some wild pokemon in the response but fewer than the game or the AHAAAAAAA map sees

from pgoapi.

Zeromark30 avatar Zeromark30 commented on August 15, 2024

okay im comparing to a modified AHAAAAAAA as well.

from pgoapi.

Nostrademous avatar Nostrademous commented on August 15, 2024

I thought I noticed something similar with the protobuf-to-dict usage. Once I switched back to using protobufs directly I have no issues seeing everything. It's possible that module might be encountering something it thinks is end of string.

On the positive side I got catching finally working...

Catch Response: 
status: CATCH_SUCCESS
scores {
  activity_type: ACTIVITY_CATCH_POKEMON
  activity_type: ACTIVITY_POKEDEX_ENTRY_NEW
  xp: 100
  xp: 500
  candy: 3
  candy: 0
  stardust: 100
  stardust: 0
}

from pgoapi.

Zeromark30 avatar Zeromark30 commented on August 15, 2024

Any chance you would commit #42 (comment) this changes and ill fork from you?

from pgoapi.

tejado avatar tejado commented on August 15, 2024

Thanks a lot! I checked that and the parsing seems to work well.

You can also check that by installing protoc and put the directory path in the environment (Linux: %PATH, Windows: %PATH%). Now execute the pokecli.py as usual plus the --debug argument. Then you can compare the dict with the raw protobuf response (decoded over protoc --decode_raw).
If there is something strange (e.g. it doesnt compare well) then please provide me the output (please remove your authentication/ticket infos first).

Maybe it is an issue with the s2 cell stuff but I will check it.

In regard to #42 I will think how to handle this.

@Nostrademous do you will provide a PR for this? :)

from pgoapi.

tejado avatar tejado commented on August 15, 2024

So I looked at the PokemonGo-Map code from AHAAAAAAA and saw that they are requesting not only one get_map_objects like my code but several. Feel free to extend my code to fit your purposes, e.g. calling as many Cells as you like.

Btw: It seems that PokemonGo-Map wants to refactor the code with my lib. Maybe if there is really some issue/bug with my code I guess the guys will see it.

from pgoapi.

Zeromark30 avatar Zeromark30 commented on August 15, 2024

Probably my fault then. I thought I was looping through multiple get map object requests.maybe I missed something to update which cell I'm grabbing. Sorry for the extra work.

from pgoapi.

tejado avatar tejado commented on August 15, 2024

Hmm okay. If you dont find the issue on your side you can send me the code (public or private) and I will check if it is due to pgoapi.

from pgoapi.

nickblt avatar nickblt commented on August 15, 2024

I did some extra digging, it looks like most of the problem was on my side. Chaining api.set_position with api.get_map_objects made everything work.

from pgoapi.

Zeromark30 avatar Zeromark30 commented on August 15, 2024

I assume mine will be too. I'm at work but thinking about what I was doing last night I think I was updating position but not cellid

from pgoapi.

nickblt avatar nickblt commented on August 15, 2024

@Zeromark30 I have an example in #52 which just got merged (thanks @tejado ) you can use that as a reference

from pgoapi.

Zeromark30 avatar Zeromark30 commented on August 15, 2024

thank you for the example. Looking through my code i was not using the updated positions in the cellid var. sorry for the wasted time @tejado

from pgoapi.

tejado avatar tejado commented on August 15, 2024

:D no problem!

from pgoapi.

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.