-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Walk from A to B, but don't teleport #3920
Comments
if you want teleport feature, use MoveToMapPokemon task with PokemonGo-Map. |
I don't want teleport. |
@yyoshii opps, sorry, i think you want teleport, my bad. so it's the logging issue then. |
Your FollowPath config seems a bit messed up
Remove these 2 and see if it fixes your problem, let us know if it does because it might be a bug that needs fixing |
If that doesn't fix it (still remove those 2 options though) - try setting path_mode to linear and see if that makes a difference. The documentation is vague so it might be logically reversed with the loop and linear config option. Either way, report back what happens as both options may require some work to be done to the docs |
Changed it to: 2016-08-14 14:44:02,096 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding. path.json |
and path_mode = loop without those other options you have already removed? Same issue? |
i tried it with loop, afterwards with linear 2016-08-14 15:02:08,378 [FollowPath] [INFO] [position_update] Teleported from (40.757518950898415, -73.98528541813252, 0) to (40.758629, -73.985053, 0) (124.974538795 m) |
Hang on, I just realised there was a recent commit that I wasn't aware of (should hit F5 more often). Your bug has been caused by #3819 |
my bad for writing the wrong log message. created a new PR #3935 |
Thx for fixing it |
You shouldn't have followspiral and followpath. remove followspiral if you want it following a path. |
Fixed in #3935 |
Expected Behavior
There are two entries in my path.json.
I expect that the bot run from A to B end then back to A and so one.
But there are all the time Teleported messages instead of walking.
How can i change it that the bot only walk?
I had a look to the config file, but doesn't found the correct setting:
Path Navigator Configuration
Setting the
navigator.type
setting topath
allows you to specify waypoints which the bot will follow. The waypoints can be loaded from a GPX or JSON file.By default the bot will walk along all specified waypoints and then move directly to the first waypoint again.
Actual Behavior
2016-08-14 12:10:43,641 [FollowPath] [INFO] [position_update] Teleported from (40.75413415061214, -73.98280514737512, 0) to (40.753451, -73.982872, 0) (76.1713177396 m)
2016-08-14 12:10:43,641 [FollowSpiral] [INFO] [position_update] Walking from (40.75411067861637, -73.9828219880316, 0) to (40.75413415061214, -73.98280514737512, 0) (2.97076386268 m)
2016-08-14 12:10:46,052 [FollowPath] [INFO] [position_update] Teleported from (40.75413415061214, -73.98280514737512, 0) to (40.753451, -73.982872, 0) (76.1713177396 m)
2016-08-14 12:10:46,052 [FollowSpiral] [INFO] [position_update] Walking from (40.754112611553595, -73.9828157626073, 0) to (40.75476411599625, -73.98280514737512, 0) (72.4495007415 m)
2016-08-14 12:10:49,391 [FollowPath] [INFO] [position_update] Teleported from (40.754170937134326, -73.98282198833653, 0) to (40.753451, -73.982872, 0) (80.1641234482 m)
2016-08-14 12:10:52,901 [FollowPath] [INFO] [position_update] Teleported from (40.754171997209646, -73.98282512200683, 0) to (40.753451, -73.982872, 0) (80.2684049293 m)
2016-08-14 12:10:55,721 [FollowPath] [INFO] [position_update] Teleported from (40.7541944229624, -73.98283852188709, 0) to (40.753451, -73.982872, 0) (82.7129777349 m)
2016-08-14 12:10:56,753 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 3.73 km
2016-08-14 12:10:58,273 [FollowPath] [INFO] [position_update] Teleported from (40.75421530757311, -73.98282121356735, 0) to (40.753451, -73.982872, 0) (85.0947204355 m)
2016-08-14 12:11:01,056 [FollowPath] [INFO] [position_update] Teleported from (40.75418235009182, -73.98279747186821, 0) to (40.753451, -73.982872, 0) (81.5643755846 m)
2016-08-14 12:11:04,357 [FollowPath] [INFO] [position_update] Teleported from (40.75414681505159, -73.98278956866623, 0) to (40.753451, -73.982872, 0) (77.6820412094 m)
Your config.json (remove your credentials and any other private info)
{
"auth_service": "ptc",
"username": "xyz",
"password": "xyz",
"location": "40.753419, -73.9827662",
"gmapkey": "xyz",
"encrypt_location": "",
"tasks": [
{
"type": "HandleSoftBan",
"config": {
"enabled": true
}
},
{
"type": "SleepSchedule",
"config": {
"enabled": true,
"time": "22:03",
"duration":"7:01",
"time_random_offset": "00:24",
"duration_random_offset": "00:43"
}
},
{
"type": "CollectLevelUpReward",
"config": {
"enabled": true
}
},
{
"type": "IncubateEggs",
"config": {
"enabled": true,
"longer_eggs_first": true
}
},
{
"type": "UpdateLiveStats",
"config": {
"enabled": true,
"min_interval": 60,
"stats": ["level_stats", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited", "pokemon_caught", "uptime"],
"terminal_log": true,
"terminal_title": true
}
},
{
"type": "TransferPokemon",
"config": {
"enabled": true
}
},
{
"type": "NicknamePokemon",
"config": {
"enabled": false,
"nickname_template": "{iv_pct}_{iv_ads}"
}
},
{
"type": "EvolvePokemon",
"config": {
"enabled": true,
"evolve_all": "none",
"first_evolve_by": "iv",
"evolve_above_cp": 850,
"evolve_above_iv": 0.90,
"logic": "or",
"evolve_speed": 20,
"use_lucky_egg": false
}
},
{
"type": "RecycleItems",
"config": {
"enabled": true,
"min_empty_space": 25,
"item_filter": {
"Pokeball": { "keep" : 20 },
"Greatball": { "keep" : 20 },
"Ultraball": { "keep" : 100 },
"Masterball": { "keep" : 75 },
"Potion": { "keep" : 0 },
"Super Potion": { "keep" : 0 },
"Hyper Potion": { "keep" : 10 },
"Max Potion": { "keep" : 0 },
"Revive": { "keep" : 10 },
"Max Revive": { "keep" : 0 },
"Lucky Egg": { "keep" : 100 },
"Incense": { "keep" : 100 },
"Spicy Incense": { "keep" : 100 },
"Cool Incense": { "keep" : 100 },
"Floral Incense": { "keep" : 100 },
"Troy Disk": { "keep" : 90 },
"X Attack": { "keep" : 90 },
"X Defense": { "keep" : 90 },
"X Miracle": { "keep" : 90 },
"Razz Berry": { "keep" : 50 },
"Bluk Berry": { "keep" : 50 },
"Nanab Berry": { "keep" : 50 },
"Wepar Berry": { "keep" : 50 },
"Pinap Berry": { "keep" : 50 },
"Special Camera": { "keep" : 100 },
"Incubator (Unlimited)": { "keep" : 100 },
"Incubator": { "keep" : 100 },
"Pokemon Storage Upgrade": { "keep" : 100 },
"Item Storage Upgrade": { "keep" : 100 }
}
}
},
{
"type": "CatchVisiblePokemon",
"config": {
"enabled": true
}
},
{
"type": "CatchLuredPokemon",
"config": {
"enabled": true
}
},
{
"type": "SpinFort",
"config": {
"enabled": true
}
},
{
"type": "FollowPath",
"config": {
"enabled": true,
"max_distance": 200,
"snipe": false,
"path_mode": "loop",
"path_start_mode": "first",
"path_file": "configs/path.json"
}
},
{
"type": "MoveToFort",
"config": {
"enabled": false,
"lure_attraction": false,
"lure_max_distance": 200,
"output_interval_by": "distance",
"output_interval": 0.05
}
},
{
"type": "FollowSpiral",
"config": {
"enabled": true,
"diameter": 4,
"step_size": 70
}
}
],
"map_object_cache_time": 5,
"forts": {
"avoid_circles": true,
"max_circle_size": 50,
"cache_recent_forts": true
},
"websocket_server": false,
"walk": 4.36,
"action_wait_min": 2,
"action_wait_max": 6,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"min_ultraball_to_keep": 20,
"logging_color": true,
"catch": {
"any": {"catch_above_cp": 650, "catch_above_iv": 80, "logic": "or" }
},
"catch_throw_parameters": {
"excellent_rate": 0.1,
"great_rate": 0.5,
"nice_rate": 0.3,
"normal_rate": 0.1,
"spin_success_rate" : 0.6
},
"release": {
"//any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
"any": {"keep_best_iv": 2, "release_below_iv": 0.8, "logic": "or"}
"// Example of always releasing Rattata:": {},
},
"vips" : {
"Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
"any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
"Lapras": {},
"Moltres": {},
"Zapdos": {},
"Articuno": {},
}
path.json
[
{"location": "40.753451, -73.982872"},
{"location": "40.753043, -73.983061"}
]
Steps to Reproduce
Other Information
OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: (run 'python -V' and paste it here)
The text was updated successfully, but these errors were encountered: