Comments (13)
I'm getting some wild pokemon in the response but fewer than the game or the AHAAAAAAA map sees
from pgoapi.
okay im comparing to a modified AHAAAAAAA as well.
from pgoapi.
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.
Any chance you would commit #42 (comment) this changes and ill fork from you?
from pgoapi.
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.
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.
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.
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.
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.
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.
@Zeromark30 I have an example in #52 which just got merged (thanks @tejado ) you can use that as a reference
from pgoapi.
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.
:D no problem!
from pgoapi.
Related Issues (20)
- Is it possible to get rid from ctypes usage?
- Google auth via token HOT 1
- [question] Team choice HOT 2
- Wrong disappear time HOT 1
- get_gym_details problem HOT 1
- failed execution/traceback after valid login.
- self.device_info in rpc_api.py
- EmptySubrequestChainException HOT 1
- ignore HOT 1
- How to determine the level of PokeGym? HOT 1
- get_map_objects do not find anything
- Gen 2 Pokemon needs to be updated
- Changed the request mode?
- Login failed
- Request throttled by server
- python
- Help on other API HOT 2
- Tejado
- Organization
- G
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgoapi.