GithubHelp home page GithubHelp logo

Comments (6)

rubenvereecken avatar rubenvereecken commented on June 23, 2024

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.

cglatot avatar cglatot commented on June 23, 2024

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.

rubenvereecken avatar rubenvereecken commented on June 23, 2024

Eh terribly sorry. Lemme check

Nice Magikarp btw, pretty good stats.

from pokemongo-api.

cglatot avatar cglatot commented on June 23, 2024

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.

krzys-h avatar krzys-h commented on June 23, 2024

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.

cglatot avatar cglatot commented on June 23, 2024

Thank you! Works perfectly :D

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.