-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Altitude still hardcoded to 8.0 #4466
Comments
I've been a bit curious if changes dealing with altitude were being applied to API requests. From conversations with the pgoapi folks, it accepts and sends altitude, rather than using a static value. It is quite likely we have output errors. I'll stick this as a bug and hopefully we can find something. |
@NatNew0 I think this is the only 8 we have (in PokemonGo-Bot source code) |
@kanemasa1987 We have to have some value in there as a default. It's only used to initialize our self.alt, which is later generated at random or pulled from somewhere (geocoder, etc). |
I was wondering if the value we set in the config.json is really used. in the config.json there's a value of 180.3 set. 2016-08-21 13:33:00,458 [pgoapi.pgoapi] [DEBUG] Set Position - Lat: xx1.xxxxxxxxxx Long: yy1.yyyyyyyyy Alt: 152.151282236 After this the requests look like: IMHO, it's not the point here if the value is used in the game. We are sending these POST-Requests to the servers and they can read in the logs and separate bot behaviour. |
This is because ofpgoapi we are using uses hardcoded altitude of 8. The file isn't in this repo, but in pgoapi repo, which we use extensively. https://github.com/joelgreen/pgoapi/blob/master/pgoapi/rpc_api.py#L180. I will submit a PR for it. |
Thx to @alexyaoyang! Bug1 remains though 😵 |
No problem, try the altitude in a bit. This repo still needs to use the latest pgoapi. |
i've noticed since this was pushed to master that the gps alt range changes too quickly between calls. with the default example config of 500 to 1000. and starting alt of 500 it will start at a 500 and then 3 calls later be at 957. Most phone will narrow the range down to 40-100 meters and may drift but not at that rate in less than 3 seconds. For now i've tuned my alt to be only between 45 and 200 with default of 45. btw does the alt work in meters. so 45 is 45m. |
Hi,
I noticed that the altitude parameter is still hardcoded to 8.0.
I've set "gps_default_altitude": 209.3,
and turned on Debug mode and look for
latitude: xx.xxxxxx
longitude: yy.yyyyyy
altitude: 8
--> It's always using 8 (or is the debug output wrong ?)
The settings seems to be hardcoded from the api here: "./pgoapi/pgoapi/rpc_api.py: request.altitude = 8 # not as suspicious as 0"
The text was updated successfully, but these errors were encountered: