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

Path of bots is very strange #2031

Closed
jmcorpdev opened this issue Jul 31, 2016 · 21 comments
Closed

Path of bots is very strange #2031

jmcorpdev opened this issue Jul 31, 2016 · 21 comments

Comments

@jmcorpdev
Copy link

jmcorpdev commented Jul 31, 2016

Expected Behavior

Bot walk at ramdom

Actual Behavior

The path of bot is very very strange :
bot one
bot 1 path
bot two
bot 2 path

My configuration file :

{
    "auth_service": "XXX",
    "username": "XXX",
    "password": "XXX",
    "location": "49.050657,2.096715",
    "gmapkey": "XXX",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolveAll",
        "config": {
          "evolve_speed": 20,
          "use_lucky_egg": false
        }
      },
      {
        "type": "RecycleItems"
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort"
      },
      {
        "type": "FollowSpiral"
      }
    ],
    "max_steps": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50
    },
    "walk": 12,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "item_filter": {
        "1": { "keep" : 30 },
        "2": { "keep" : 30 },
        "3": { "keep" : 100 },
        "4": { "keep" : 40 },
        "101": { "keep" : 0 },
        "102": { "keep" : 30 },
        "103": { "keep" : 120 },
        "201": { "keep" : 80 },
        "202": { "keep" : 70 },
        "701": { "keep" : 40 }
    },
    "//initial_transfer":700,
    "//evolve_all": "none",
    "evolve_all": "Pidgey,Rattata,Spearow,Zubat,Drowzee",
    "//evolve_speed": 20,
    "//evolve_captured": "none",
    "cp_min": 600,
    "//use_lucky_egg": false,
    "catch": {
        "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or",  "keep_best_cp": 1, "keep_best_iv": 1},
        "// Example of always catching Rattata:": {},
        "// Rattata": { "always_catch" : true }
    },
    "release": {
        "any": {"release_below_cp": 900, "release_below_iv": 0.90, "logic": "and"},
        "// Example of always releasing Rattata:": {},
        "// Rattata": { "always_release" : true }
    }
}

Steps to Reproducedo the same tricks

Other Information

OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

@Altaflux
Copy link

Mine too, just downloaded latest commit and bot just seems to zigzag a lot without really trying to get close to the forts.

@juanriaza
Copy link

Dupe #2008

Current solution until it gets fixed is to remove evolve task

@johannlejeune
Copy link
Contributor

@juanriaza The evolve task has nothing to do with that.
Current solution is removing the FollowSpiral task.

@Pimentoso
Copy link

+1, today I wanted to only spin pokestops but bot doesn't seem to locate any of them.
Already removed the Evolve task and set evolve_all to NONE.
My tasks

"tasks": [
      {
        "type": "RecycleItems"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort"
      },
      {
        "type": "FollowSpiral"
      }
    ],

log

[11:03:59] Walking from (45.472794351781026, 9.179340343664318) to [45.472794351781026, 9.179340343664318] 0.00m
[11:04:00] Walking from (45.472794351781026, 9.179340343664318) to [45.47459435178103, 9.179340343664318] 200.15m
[11:04:53] Walking from (45.47459435178103, 9.179340343664318) to [45.47459435178103, 9.181140343664318] 140.35m
[11:05:31] Walking from (45.47459435178103, 9.181140343664318) to [45.472794351781026, 9.181140343664318] 200.15m
[11:06:22] Walking from (45.472794351781026, 9.181140343664318) to [45.47099435178102, 9.181140343664318] 200.15m
[11:07:11] Walking from (45.47099435178102, 9.181140343664318) to [45.472794351781026, 9.181140343664318] 200.15m
[11:07:56] Walking from (45.472794351781026, 9.181140343664318) to [45.47459435178103, 9.181140343664318] 200.15m```

@Altaflux
Copy link

yes, removing FollowSpiral did the trick,
Removing the Evolve Task did not help

@raxxon
Copy link

raxxon commented Jul 31, 2016

If you're following a path, shouldn't FollowSpiral be changed to FollowPath?

@xorinzor
Copy link

xorinzor commented Jul 31, 2016

I'm agree with the strange path, in fact, my bot is walking away from the fort it's supposed to walk towards to..

untitled

EDIT: Removing the FollowSpiral task fixed it for me too

@klingan
Copy link
Contributor

klingan commented Jul 31, 2016

Mine is stuck at

[12:14:57] Starting PokemonGo Bot....
[12:14:57] [x] Next egg incubates in 3.34 km
[12:14:58] No lucky eggs... skipping evolve!

@xorinzor
Copy link

@klingan please create your own issue, that has nothing to do with this issue

@klingan
Copy link
Contributor

klingan commented Jul 31, 2016

@xorinzor Just realized it was still the issue with evolve, however it was just walking when Spiral was active... so its not completely unrelated.

@Drambuie
Copy link

as soon as I remove FollowSpiral task my bot just stands still

Have disabled all the evolve config and the path is still weird

@xorinzor
Copy link

@Drambuie the FollowSpiral task will make sure the bot keeps moving when there are no forts nearby to walk towards to (because they are on timeout or because they're simply just not around).

So removing that, would make your bot stand still if there are no things to walk towards to, yes.

@Drambuie
Copy link

Ok thanks for the explanation, i guess i will just wait for a dev fix as mine does not seem to be moving towards any forts

@ksawerykarwacki
Copy link

Something is definitely wrong with last dev

capture

@Pimentoso
Copy link

Any workarounds for this yet?

@klingan
Copy link
Contributor

klingan commented Jul 31, 2016

[13:57:33] Moving towards fort Groene Stierenkop, 55.98m left
[13:57:39] Moving towards fort Groene Stierenkop, 50.45m left
[13:57:42] Moving towards fort Groene Stierenkop, 45.11m left
[13:57:50] Moving towards fort Groene Stierenkop, 45.37m left
[13:57:59] Moving towards fort Groene Stierenkop, 48.74m left
[13:58:07] Moving towards fort Groene Stierenkop, 49.87m left
[13:58:20] Moving towards fort Groene Stierenkop, 55.55m left
[13:58:29] Moving towards fort Groene Stierenkop, 57.39m left
[13:58:38] Moving towards fort Groene Stierenkop, 56.44m left
[13:58:42] Moving towards fort Groene Stierenkop, 50.96m left
[13:58:51] Moving towards fort Groene Stierenkop, 53.53m left
[13:58:55] Moving towards fort Groene Stierenkop, 48.47m left
[13:59:03] Moving towards fort Groene Stierenkop, 47.49m left
[13:59:06] [x] Next egg incubates in 0.84 km
[13:59:12] Moving towards fort Groene Stierenkop, 46.10m left
[13:59:20] Moving towards fort Groene Stierenkop, 48.30m left
[13:59:29] Moving towards fort Groene Stierenkop, 46.50m left
[13:59:47] Moving towards fort Groene Stierenkop, 58.76m left
[13:59:56] Moving towards fort Groene Stierenkop, 60.81m left
[13:59:59] Moving towards fort Groene Stierenkop, 56.48m left
[14:00:22] Moving towards fort Groene Stierenkop, 73.08m left
[14:00:31] Moving towards fort Art House, 73.43m left
[14:00:58] Moving towards fort Art House, 89.63m left
[14:01:06] Moving towards fort Art House, 90.19m left
[14:01:31] Moving towards fort Art House, 102.76m left
[14:01:34] Moving towards fort Art House, 96.75m left
[14:01:42] Moving towards fort Art House, 95.46m left
[14:01:55] Moving towards fort Art House, 103.10m left

This is not going anywhere...

@beranPro
Copy link

Same Problem as @arnogues here

@Pimentoso
Copy link

Installing the bot again in a new folder seems to have fixed the issue. Are there some cache files to try to delete in cases like this?

@beranPro
Copy link

Didn't fixed the issue. Used example configs.

@iruy
Copy link

iruy commented Aug 3, 2016

Is there any fix for avoid removing FollowSpiral?

@iruy
Copy link

iruy commented Aug 3, 2016

I tried to dig a bit into FollowSpiral code, and here is the result with few Spiral POI calculated: LINK
So, considering that when the last POI is reached the path is followed in reverse order, max_step should never be less than 9, if you want a spiral path.

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