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

[FEATURE REQUEST] "FollowPath" with the function of "PolylineWalker" #4629

Closed
maxprzemo opened this issue Aug 23, 2016 · 2 comments
Closed

Comments

@maxprzemo
Copy link

maxprzemo commented Aug 23, 2016

Short Description

I apologize in advance for my English
"FollowPath" with the function of "PolylineWalker"

Possible solution

In the file
/PokemonGo-Bot/pokemongo_bot/cell_workers/follow_path.py

add import:
from pokemongo_bot.walkers.walker_factory import walker_factory

add in _process_config
'self.walker = self.config.get('walker', 'PolylineWalker')'

replace in def work(self):
step_walker = StepWalker(
to
step_walker = walker_factory(self.walker,

In the file
PokemonGo-Bot/configs/config.json.path.example
add
"walker": "PolylineWalker"
in
"FollowPath"
for example
{
"type": "FollowPath",
"config": {
"path_mode": "loop",
"path_start_mode": "first",
"path_file": "configs/path.example.json",
"number_lap": 10,
"timer_restart_min": "00:10:00",
"timer_restart_max": "00:20:00",
"walker": "PolylineWalker"
}
}

is all you need to do :)
Tests and it works

How it would help others

Very nice effect. We choose the points on the map and the bot itself sets them route.We walk along the street. Like a real human.

@Vvkmnn
Copy link

Vvkmnn commented Aug 23, 2016

Love the idea. My current implementation walks right by pokestops, so I run out of items way too fast.

Implementing this on b5a8e1b. I'll post results.

@mjmadsen
Copy link
Contributor

Merged #4644

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

No branches or pull requests

3 participants