PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

[SUGGESTION] Setting a route to follow

Open marcx093 opened this issue 10 years ago • 15 comments

I'm having problems with the bot running to pokestop and being inefficent in its route, like ignoring a group of pokemons to go to a pokestop even when i'm full... I think it would be good to set a route, for example if you want to catch pokemons following the river you would be able to direct the bot, maybe you could set a start location and multiple end locations and the bot will keep going beetween locations.

marcx093 avatar Jul 23 '16 23:07 marcx093

We should route paths by pokemon and pokestops, Pokemon being weighted by whether or not you are going to keep it, then whether or not the pokemon needs evolutions, and pokestops only if nothing else is in range?

Google has an excellent TSP implementations for finding the shortest path to all nodes btw.

https://github.com/google/or-tools/blob/master/examples/com/google/ortools/samples/Tsp.java

I may look into implementing weighted node/path system.

GenuineSounds avatar Jul 24 '16 00:07 GenuineSounds

Good idea. I had polygon runs plotted through GPS spoofing that worked great, running a circuit of pokestops is what most humans do! Right now this bot is so fast that even on high-density areas like SM pier, it catches some of the pokemon but loots all the pokestops and moves on into the city before they can restock driven by open pokestops. (changing speed, even to 0, doesn't seem to help)

one of the gps hackers wrote a great program to take a Google Map route and generate GPS coordinates from it with time stamps that xcode can use - maybe a file could be linked to in the config file here? https://mapstogpx.com/pokemon.php

this could be used for following streets #157

cleftfairy avatar Jul 24 '16 00:07 cleftfairy

+1 for this, and I think a quick an easy implementation for those that want to set manual coords is to add an array of coordinates in the config that you can set. The bot would follow those coords in order, and fall back to its more random behavior after exhausting them (or I guess it could repeat them)

ivanmayes avatar Jul 24 '16 03:07 ivanmayes

Have a look here: I created a Web-GUI (still WIP) which shows the path the player went. I could add a feature that you can click on the map to go there. This would be simpler than a configuration file #197

shilch avatar Jul 24 '16 14:07 shilch

That would be awesome :+1:

marcx093 avatar Jul 24 '16 16:07 marcx093

+1

LordJavi avatar Jul 24 '16 18:07 LordJavi

Are you going to implement this code soon? Would be great!

woutermb avatar Jul 26 '16 11:07 woutermb

I think it is the next thing I will do

shilch avatar Jul 26 '16 13:07 shilch

Amazing, can't wait :+1:

marcx093 avatar Jul 26 '16 13:07 marcx093

Ok, feature is implemented now. I will fix some bugs before commiting

shilch avatar Jul 26 '16 14:07 shilch

Great! Really looking forward to it, this is the final missing piece in my eyes. Could you add the option to expose the server to other than local? I have it running on a digitalocean server and wouldn't be able to access it from my own pc without a bindable hostname :+1:

woutermb avatar Jul 26 '16 14:07 woutermb

Pushed to my repository. You have to right click on the map, then a finger down appears. The player will follow the route you define. screen

shilch avatar Jul 26 '16 14:07 shilch

Nice work @shilch

jabbink avatar Jul 26 '16 15:07 jabbink

Thank you! I want to display the eggs in one window but I do not find a method to get the distance the player walked? @jabbink (I know it is not related to this issue but ...)

shilch avatar Jul 26 '16 15:07 shilch

The list of incubators has a kmTarget

the playerProfile.stats.kmWalked has the km walked. Subtract those numbers. get the start/end difference for the incubator -> get percentage

jabbink avatar Jul 26 '16 19:07 jabbink