PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Limit radius of movement / Make bot stay in a certain area

Open Dropbear67 opened this issue 10 years ago • 8 comments

I want to stick to a certain radius of my location start point, but don't to have to create a map of waypoints..

Is there a way of getting the bot to wander around within an area of pokestops within a certain distance of the starting point?

Dropbear67 avatar Aug 11 '16 08:08 Dropbear67

I found making a map of waypoints to be pretty simple and effective, actually... All you need to do is plan a 5 min tour past as many (frequently lured) pokestops as possible. This method is usually more efficient than the walking algorithms.

ReinyDays avatar Aug 11 '16 08:08 ReinyDays

I'm wondering about this too:

max_steps was removed from the configuration options.

You can now change the behavior of the bot by modifying the "tasks" key.

Sadly it doesn't give much more info as the config doc also shows max_steps.

@ReinyDays do you have any proper examples of a config file + waypoint file that works? I've had issues getting it to actually follow the points myself.

lillelilje avatar Aug 11 '16 09:08 lillelilje

   {
        "type": "FollowSpiral",
        "config": {
          "diameter": 4,
          "step_size": 70
        }
      }

If my understanding is correct, this task in the config.json controls how your avatar moves within a defined area.

jrjhealey avatar Aug 11 '16 09:08 jrjhealey

@jrjhealey I believe you are correct but I cannot find any documentation regarding diameter and step_size, so modifying that to something more usable would be rough without knowing what they amount to in terms of meters, for instance.

lillelilje avatar Aug 11 '16 09:08 lillelilje

@oleerik you have to make changes in the config, similar to config.json.path.example. you have to replace the normal walking algorithm { "type": "MoveToFort", "config": { "lure_attraction": true, "lure_max_distance": 2000 } }, { "type": "FollowSpiral", "config": { "diameter": 4, "step_size": 70 } } with the pathing: { "type": "FollowPath", "config": { "path_mode": "loop", "path_start_mode": "first", "path_file": "configs/path.example.json" } } and you need to make a file 'path.example.json' (or something else, but it should be the same as mentioned in code above) with coordinates (you can get em easily in google maps), like so:

[ {"location": "51.304910, 4.290544"}, {"location": "51.304258, 4.289299"}, {"location": "51.303594, 4.288720"}, {"location": "51.304084, 4.288409"}, {"location": "51.304440, 4.287787"}

]

^ this is a short path near Antwerp Belgium. only 3 pokestops, but perma lured and only (mostly) rare pokemon spawn there.

ReinyDays avatar Aug 11 '16 10:08 ReinyDays

Ah, thank you very much @ReinyDays. My problem was that I kept MoveToFort as a task :)

This still doesn't properly resolve the original question but it helps me personally greatly!

lillelilje avatar Aug 11 '16 22:08 lillelilje

You can do this to some extent if you use the MoveToMapPokemon option with "update_map": false,. Your bot's location won't get pushed to the map and you can drop the pin wherever you want the bot to go. It will still nab any pokemon in the search radius, but won't leave that area.

RedViper9 avatar Aug 11 '16 22:08 RedViper9

Can be done with CampFort. Closed.

julienlavergne avatar Sep 08 '16 16:09 julienlavergne