PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Reuse last location option

Open bertbijnens opened this issue 10 years ago • 15 comments

After 20-30 minutes, I need to restart this bot, and change the lat&long manually. It would be great if there was an option to automatically use the latest location

EDIT by @jabbink: add as config flag with default true, please.

bertbijnens avatar Jul 23 '16 16:07 bertbijnens

While I do agree that it would be neat, why not just wait 1 or 2 minutes and restart the bot from the original location?

Ixath avatar Jul 23 '16 16:07 Ixath

If you login via PTC instead of Google, you should not need to restart the bot. It's a problem with the current API release

cglatot avatar Jul 23 '16 17:07 cglatot

@lxath in order to have good farm you need to walk and find pokemon. Spawns take approx 7-8 minute to refresh. Also 5 minutes is the time for pokestop refresh. 1-2 mins would be short, but i'm restarting bot every 8 minutes. Never got softbanned.

CptJackieSparrow avatar Jul 23 '16 22:07 CptJackieSparrow

The problem of the token expiration is goong to be fixed in https://github.com/Grover-c13/PokeGOAPI-Java/pull/165. We'll still going to add a way to save last coordinates.

mluigi avatar Jul 23 '16 23:07 mluigi

If we get Sqlite integration this is trivial.

wartickler avatar Jul 24 '16 03:07 wartickler

I think this might not be as necessary as you think - when I use the bot in the middle of my town, it finds 218 pokestops. Assuming it takes 15 seconds to walk from one to the other, it will never run out of pokestops in the area.

apottere avatar Jul 24 '16 05:07 apottere

@apottere it would not run out of poke stops, but let's say it walks a few miles/km further, and you restart it immediately, and it jumps back those few miles/km because the coordinates are still the same as last time you ran it. At this point it wouldn't be a big problem, but if they would improve their gps spoof security there could be a lot of soft bans

bertbijnens avatar Jul 24 '16 06:07 bertbijnens

I've already been soft banned for jumping too far with this.

wartickler avatar Jul 24 '16 12:07 wartickler

I agree with this enhancement. Perhaps the bot could just write to the properties-file, the same way it writes the token. Just have it update the location settings in the properties-file if some setting has been enabled. This would allow more automation in running/restarting the bot as service, etc.

viktor89 avatar Jul 25 '16 10:07 viktor89

+1 It would be great to save the latest position of the bot! (Or add an extra option :) )

gabrielklein avatar Aug 03 '16 12:08 gabrielklein

anyone know the status on this?

vamirineni87 avatar Aug 09 '16 10:08 vamirineni87

Taking ownership

ghost avatar Aug 16 '16 22:08 ghost

Taking ownership

I already have most of this done, but my InteliJ merging screwed stuff up

KyleBoyer avatar Aug 16 '16 22:08 KyleBoyer

I'll leave it to you then ^^

ghost avatar Aug 16 '16 22:08 ghost

Implemented in #1129

Sieberkev avatar Aug 19 '16 15:08 Sieberkev