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

Bot no staying around first coordinate #3633

Closed
Brainarea opened this issue Aug 11, 2016 · 24 comments
Closed

Bot no staying around first coordinate #3633

Brainarea opened this issue Aug 11, 2016 · 24 comments

Comments

@Brainarea
Copy link

Expected Behavior

Id like my bot to stay within let's say a circle of X km.

Actual Behavior

Bot keeps roaming all over the city

Your config.json (remove your credentials and any other private info)

  {
    "type": "SpinFort"
  },
  {
    "type": "MoveToFort",
    "config": {
        "lure_attraction": true,
        "lure_max_distance": 2000
    }
  },
  {
      "type": "FollowCluster",
      "config": {
      "radius": 0.6,
      "lured": true
    }
  }
@joaodragao
Copy link
Contributor

@Orchid666 I think you the radius value is too low. Try 20 or so.

@Brainarea
Copy link
Author

I tried many radius values, including big ones and it wont change anything, I dont see why increasing the radius would make my bot stay within a certain area

@ripzery
Copy link

ripzery commented Aug 11, 2016

What is the unit of radius value? km or metre?

@joaodragao
Copy link
Contributor

Because in the code, the default value is 50. and it is checked with find_biggest_cluster function also.

@joaodragao
Copy link
Contributor

@rpzery I think it's km.

@ripzery
Copy link

ripzery commented Aug 11, 2016

Is radius 1 km work?

@Brainarea
Copy link
Author

Nope, I wonder if those values use the updated location as reference and not the very first coordinate.

@joaodragao
Copy link
Contributor

@ripzery I'll test it.

@Brainarea
Copy link
Author

@joaodragao @ripzery That was my previous value before i tried 0.6. Same outcome.

@DiegoRBaquero
Copy link

I'm just going to point out that the cluster example config does not have MoveToFort task. Maybe try removing it?

@joaodragao
Copy link
Contributor

@Orchid666 What @DiegoRBaquero said may be correct.

@DiegoRBaquero
Copy link

I tested the cluster config (no MoveToFort) and it stays in the same position. Also, it seems the radius is in meters. [13:27:46] Arrived at cluster. 1 are in a range of 500m radius. (I have the setting in 500)

@Brainarea
Copy link
Author

That is some very useful information Diego. Thanks!

@Brainarea
Copy link
Author

Well i dont think its possible to stay within the same area. Removing Movetofort logically prevent the bot to move to the next fort. Everything seems to be calculated according to current coordinates and not very first coordinates.

@DiegoRBaquero
Copy link

@Orchid666 It does move when required but it stays in the best possible cluster of lured forts. The radius is relative to current location, not initial coords.

@Brainarea
Copy link
Author

Yes, thats what i said, there is currently no way to have the bot stay within a fixed area.

@DiegoRBaquero
Copy link

You could use the path config

@Brainarea
Copy link
Author

True, but that would make my bot go from point A to point B then get point B Fort and thats it.
Basically, I just want to make my bot stay in a park and explore all the Forts there, because parks are usually very dense places. I could set a path config with every fort out there but that would take days to copy all coordinates...

@DiegoRBaquero
Copy link

You can use Google maps

On Aug 11, 2016, at 4:05 PM, orchid666 [email protected] wrote:

True, but that would make my bot go from point A to point B then get point B Fort and thats it.
Basically, I just want to make my bot stay in a park and explore all the Forts there, because parks are usually very dense places. I could set a path config with every fort out there but that would take days to copy all coordinates...


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@Brainarea
Copy link
Author

What do you mean i could use google maps? Im using google maps, im just saying that there are so many coordinates that it would take days to copy them all

@Brainarea
Copy link
Author

Maybe i should make a pull request for that feature? :)

@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 on the way, and spin forts, but will stay in the general area of your pin. Area can be manipulated using the number of steps that the map searches.

@Brainarea
Copy link
Author

@RedViper9 Thanks for the suggestion, but im kind of new, is there any doc available about that?

@k4n30
Copy link
Contributor

k4n30 commented Aug 14, 2016

Duplicate of #3580

@k4n30 k4n30 closed this as completed Aug 14, 2016
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

6 participants