Comments (6)
That's because the moves are actually numbers. Our protobuf library doesn't map the numbers back to strings (as a comparison, I use a Node library that does). @dmadisetti do you know of any python objects we could try for string enums? They're tremendously useful.
At the Enhanced project we have a Node module that combines all kinds of Pokemon data that we can then use. It's JS, but you could maybe use the JSON files. Check out this one for example for fast moves: https://github.com/PokemonGo-Enhanced/node-pokemongo-data/blob/master/special-moves.json
Careful though, we have two separate move files.
from pokemongo-api.
This API library does have the ability to convert the numbers to names, though. If you just run session.checkInventory()
and output it you get a bunch of information. And for each Pokemon in your party you get the following:
`id: xxxxxxxxxxxxxxx
pokemon_id: MAGIKARP
cp: 145
stamina: 32
stamina_max: 32
move_1: SPLASH_FAST
move_2: STRUGGLE
height_m: 0.792643606663
weight_kg: 8.24328136444
individual_attack: 14
individual_defense: 13
individual_stamina: 15
cp_multiplier: 0.597400009632
pokeball: ITEM_POKE_BALL
captured_cell_id: xxxxxxxxxxxxx
creation_time_ms: 1469450301788
nickname: "93-14/13/15"
from_fort: 1`
So it seems there is a way to do it. I just can't find how they are doing it.
from pokemongo-api.
Eh terribly sorry. Lemme check
Nice Magikarp btw, pretty good stats.
from pokemongo-api.
Haha thanks. There is actually a better one that is 15/14/14!
My bot / test account is infinitely better than my real one :(
from pokemongo-api.
You can get the names directly from protobufs:
>>> import POGOProtos.Enums.PokemonMove_pb2 as PokemonMove_pb2
>>> PokemonMove_pb2.PokemonMove.Name(231)
'SPLASH_FAST'
from pokemongo-api.
Thank you! Works perfectly :D
from pokemongo-api.
Related Issues (20)
- How to determine the level of PokeGym? HOT 1
- Question about use HOT 3
- Error in Geo Request HOT 6
- Connection problems HOT 1
- Question about use of coordinates. HOT 2
- Clarification on `episilon` and `step` in `trainer.WalkTo` HOT 2
- AttributeError: 'str' object has no attribute 'noop' HOT 3
- TypeError: __init__() got an unexpected keyword argument 'auth'
- Error: Expected a bytes-like object, str found HOT 1
- Can't find pokestops HOT 1
- No update?
- Connection problem since 13/02/17 HOT 1
- TypeError: sequence item 0: expected a bytes-like object, str found HOT 1
- Proposing a PR to fix a few small typos
- Should this be git clone --recursive ? but protoc was not found HOT 2
- Unknown 6 error HOT 2
- findBestPokemon() function not working ? HOT 5
- setFavoritePokemon proto fix HOT 7
- Update Readme HOT 1
- Help: How to apply a lure module to a pokestop ? HOT 2
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 pokemongo-api.