Skip to content
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

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

Closed
Dropbear67 opened this issue Aug 11, 2016 · 8 comments
Closed

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

Dropbear67 opened this issue Aug 11, 2016 · 8 comments

Comments

@Dropbear67
Copy link

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?

@ReinyDays
Copy link

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.

@fosspill
Copy link

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.

@jrjhealey
Copy link

   {
        "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.

@fosspill
Copy link

@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.

@ReinyDays
Copy link

ReinyDays commented Aug 11, 2016

@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.

@fosspill
Copy link

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!

@RedViper9
Copy link
Contributor

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.

@k4n30 k4n30 changed the title Question: Without MAX_STEPS How do we limit radius of movement? Without MAX_STEPS How do we limit radius of movement? Aug 14, 2016
@k4n30 k4n30 changed the title Without MAX_STEPS How do we limit radius of movement? Without MAX_STEPS How do we limit radius of movement? / Make bot stay in a certain area Aug 16, 2016
@k4n30 k4n30 changed the title Without MAX_STEPS How do we limit radius of movement? / Make bot stay in a certain area Limit radius of movement / Make bot stay in a certain area Aug 19, 2016
@julienlavergne
Copy link
Contributor

Can be done with CampFort. Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants