Comments (5)
Also, the official app also fails to properly calculate percentages (should render a circle of > 180 degrees) 😂
from pokemongobot.
Yeah, I think it's an error in either the protobufs or the Java API as player.stats.prevLevelXp literally contains the XP needed for the previous level, not the current one (and can't quickly find one that contains the starting XP for the current level).
Dirty fix would be to do something like
val nextXP = player.stats.nextLevelXp / 2
val curLevelXP = player.stats.experience - player.stats.prevLevelXp - player.stats.nextLevelXp / 2
from pokemongobot.
Oh, yep makes sense
On Thu, 21 Jul 2016 at 16:29 Jasper Abbink [email protected] wrote:
Yeah, I think it's an error in either the protobufs or the Java API as
player.stats.prevLevelXp literally contains the XP needed for the previous
level, not the current one (and can't quickly find one that contains the
starting XP for the current level).Dirty fix would be to do something like
val nextXP = player.stats.nextLevelXp / 2 val curLevelXP = player.stats.experience - player.stats.prevLevelXp - player.stats.nextLevelXp / 2
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_VY4efeQllwBInfXQShbIgS0Oou9rFks5qX4IwgaJpZM4JR2US
.
Quentin Dommerc
Android software craftsman
kentin.me
from pokemongobot.
lol, ^this
from pokemongobot.
Also, the official app also fails to properly calculate percentages (should render a circle of > 180 degrees) 😂
This seems like a good enough reason to make you bot miscalculate too!
from pokemongobot.
Related Issues (20)
- Encounter failed with result HOT 3
- run a few hours then get this error message then after that not catch any pokemon HOT 1
- System hangs up HOT 4
- error message popup then the whole night hang there HOT 1
- bot not starting "Exception in Thread default" HOT 1
- [Question] Is it safe to open the bot after the latest update? HOT 9
- Im guessing this bot is dead HOT 2
- [Question] Pokefarmer Hash Service HOT 1
- Bot doing fine, getting this error everytime HOT 4
- Exception in thread "default" HOT 3
- Getting profile data from pogo server..Unexpected response envelope status received: SESSION_INVALIDATED HOT 1
- I cannot find the solution anywhere. Please help HOT 1
- Bot gets stuck in a loop of DOWNLOAD_SETTINGS & GET_INVENTORY HOT 1
- [BUG?] Bot can't get player HOT 1
- ..
- Can't start bot, I think it's a language problem
- Can't start the bot, I think it's a language problem HOT 1
- Can't start the bot
- when getting profile data from pogo server HOT 4
- Stuck on getting profile data
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 pokemongobot.