-
Notifications
You must be signed in to change notification settings - Fork 119
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
[Help Required] How to get Move Names? #39
Comments
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. |
This API library does have the ability to convert the numbers to names, though. If you just run `id: xxxxxxxxxxxxxxx
So it seems there is a way to do it. I just can't find how they are doing it. |
Eh terribly sorry. Lemme check Nice Magikarp btw, pretty good stats. |
Haha thanks. There is actually a better one that is 15/14/14! My bot / test account is infinitely better than my real one :( |
You can get the names directly from protobufs: >>> import POGOProtos.Enums.PokemonMove_pb2 as PokemonMove_pb2
>>> PokemonMove_pb2.PokemonMove.Name(231)
'SPLASH_FAST' |
Thank you! Works perfectly :D |
Hi, firstly thanks for the API, it's really useful.
I'm having some problems referencing the Move Names, though. I am using:
`party = session.checkInventory().party
myParty = []
Everything works okay, except for the
move_1
andmove_2
. These show up as numbers instead of the names of the moves. I've tried digging through the code, but I cannot figure out how thesession.checkInventory().party
gets the Move names.Any help would be very much appreciated.
The text was updated successfully, but these errors were encountered: