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 Is Only Searching for Pokemon #252

Closed
JackPowellFBI opened this issue Jul 22, 2016 · 14 comments
Closed

Bot Is Only Searching for Pokemon #252

JackPowellFBI opened this issue Jul 22, 2016 · 14 comments

Comments

@JackPowellFBI
Copy link

Expected Behavior

Specifying the -s flag (or "spinstop": "True" in json.config) should spin PokeStops.

Actual Behavior

It either ignores the -s flag/argument or can't find it somehow, and then will only search for Pokemon.

Steps to Reproduce

Fresh clone of repo (master or dev, have tried both),
run pip install command and then try to start the bot,
it complains and error reads: "pokecli.py: error: argument -a/--auth_service is required"
even though i'm using the following command in the directory:
pokecli.py -a ptc -u USERNAME -p PASSWORD -l 41.078865,-81.5436767 -w 4.16 -t -s -c 100

username and password removed for security

As a workaround I tried to set those arguments in a json.config file but it still doesn't seem to recognize my arguments correctly.

Any help would be greatly appreciated.

Other Information

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

@glennvgastel
Copy link
Contributor

Regarding your argument issue : the location needs quotes around it.

-s has been replaced by -m a few commits ago, try that instead.

@StahlJonas
Copy link

StahlJonas commented Jul 22, 2016

"-m all" does only catch pokemons for me

@rkodali22
Copy link

rkodali22 commented Jul 22, 2016

python pokecli.py -a google -u xxx -p xxx -l "40.785091,-73.968285" -c 60 -m all -w 10
[x] PokemonGO Bot v1.0
[x] Configuration initialized

[x] Address found: 40.785091,-73.968285
[x] Position in-game set as: (40.7837665, -73.9651175, 0.0)

[#]
[#] Username: xxx
[#] Acccount Creation: 2016-07-10 20:11:29.092000
[#] Bag Storage: 330/350
[#] Pokemon Storage: 222/250
[#] Stardust: 31353
[#] Pokecoins: 0
[#] -- Level: 14
[#] -- Experience: 89845
[#] -- Experience until next level: 10155
[#] -- Pokemon Captured: 288
[#] -- Pokestops Visited: 143
[#]
[x] Starting PokemonGo Bot....
[#] Scanning area for objects (1 / 25)
[#] Walking from (40.7837665, -73.9651175) to (40.7837665, -73.9651175) for approx. 0.0 seconds
[#] Finished walking
[#](40.7837665, -73.9651175, 0)
Found fort 1afcf0b0fa494c12943dceea7c7c7abe.12 at distance 607.674132274m
Need to move closer to Pokestop
[#] Walking from (40.7837665, -73.9651175) to (40.778799, -73.962109) for approx. 61.0 seconds
[#] Something rustles nearby!
[#] A Wild Doduo appeared! [CP 216]
[x] Using Pokeball...
[x] Captured Doduo! [CP 216]
[#] Something rustles nearby!

it works

@glennvgastel
Copy link
Contributor

Seems like the error was introduced a few minutes ago. With all these commits following eachother so fast, it's quite impossible to pinpoint the exact moment when.

I'm on commit 08e03dc7c238348ff10a30a26e8a9fb08cfe4baf and can confirm that one's working.

@CapCap
Copy link
Contributor

CapCap commented Jul 22, 2016

[x] Walked to Pokemon
[#] A Wild Doduo appeared! [CP381]
[x] Using Greatball...
[x] Captured Doduo! [CP381]
[x] Found pokemon at distance 52.0520073622m
[#] Walking from (21.265614828112568, -157.82162955950363) to (21.26551563598147, -157.82218843176165) for approx. 21.0 seconds
[#] Finished walking to (21.26551563598147, -157.82218843176165)
[x] Walked to Pokemon
[x] Found pokemon at distance 50.5072501907m
[#] Walking from (21.26551563598147, -157.82218843176165) to (21.265853451888105, -157.82144326878532) for approx. 30.0 seconds
[#] Finished walking to (21.265853451888105, -157.82144326878532)
[x] Walked to Pokemon
[x] Found pokemon at distance 45.3674269089m
[#] Walking from (21.265853451888105, -157.82144326878532) to (21.265614828112568, -157.82162955950363) for approx. 12.0 seconds
[#] Finished walking to (21.265614828112568, -157.82162955950363)
[x] Walked to Pokemon
[#] Walking from (21.265614828112568, -157.82162955950363) to (21.2659149, -157.8219262) for approx. 16.0 seconds
walking hook  14 [#] Finished walking to (21.2659149, -157.8219262)

Latest master- am seeing walk w/o pokemon capture- shouldnt it also be checking for pokemon presence every x steps?

@JackPowellFBI
Copy link
Author

Even after putting the location data in quotes (i've tried single and double quotes)
it still says -a/--auth_service required. here is my new command:
pokecli.py -a ptc -u USERNAME -p PASSWORD -l '41.078865,-81.5436767' -w 15 -c 100 -m farm

@glennvgastel
Copy link
Contributor

Your command works on my end, try downloading the repo again so you have the latest commit.

@JackPowellFBI
Copy link
Author

I just pulled down a fresh version and it still complains, I am up to the latest commit as of now.

@glennvgastel
Copy link
Contributor

Does using --auth_service instead of -a work?

@JackPowellFBI
Copy link
Author

Sadly, no. =(

@JackPowellFBI
Copy link
Author

Once the PTC login server becomes available again I will test this with a fix I found. It looks like it involves Python on a registry level, and isn't uncommon. Will post back soon.

@glennvgastel
Copy link
Contributor

Look forward to hearing the results.

@fredrik-hellmangroup
Copy link
Contributor

was fixed at some point, working in latest DEV branch

@JackPowellFBI
Copy link
Author

Changing a python registry value to include more arguments fixed my issue.

hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* fixed the pokestop icon


* rebased the poke stop icon

* fixed display of steps and completion, fixed steplimit logic
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* Updated Gym Layout

Gym Layout now contains Icons like the rest of the items (except
Pokeballs)

* Update flags table

* Reformat get_args

* Update flags table

* Reformat get_args

* Add autorefresh flag to README

* Update flags table

* Reformat get_args

* added countdown timer until pokemon disappear

* changed the label so it displays both disappears-at and disappears-in

* changed label format

* Fix multiline string

* decoupled google maps from flask

* removed one more thing

* Cleaned up duplicate and unused imports.

* added some nice autoupdate fixes

* fix DecodeError crash

Completed: 59.5555555556%
[-] looping: step 135 of 225
Exception in thread search_thread:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "example.py", line 575, in main
    pokemonsJSON, ignore, only)
  File "example.py", line 600, in process_step
    profile_response))
  File "example.py", line 399, in get_heartbeat
    m5, )
  File "example.py", line 304, in get_profile
    return retrying_api_req(service, api, access_token, req, useauth=useauth)
  File "example.py", line 190, in retrying_api_req
    **kwargs)
  File "example.py", line 228, in api_req
    p_ret.ParseFromString(r.content)
  File "/usr/lib/python2.7/site-packages/google/protobuf/message.py", line 186, in ParseFromString
    self.MergeFromString(serialized)
  File "/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 844, in MergeFromString
    raise message_mod.DecodeError('Unexpected end-group tag.')
DecodeError: Unexpected end-group tag.

* Fix for scanner drift (fixes PokemonGoF#229 and PokemonGoF#231)

1. Quickfix for scanner slowly drifting away from starting location:
  reset location to original at the end of looping steps

2. Also fix updating to the next location feature:
  don't update repeatedly and allow to change only longitude or latitude

* more autoupdate fixes

* Add 'Get Directions' to label

- Add link to google maps directions
- Move index to right of Pokemon name

* ugly hack to keep google flask AND autorefresh functionality

* Added support for Simplified Chinese(zh_cn) pokemon names.

Based on
https://wiki.52poke.com/wiki/%E5%AE%9D%E5%8F%AF%E6%A2%A6%E5%88%97%E8%A1%A8%EF%BC%88%E6%8C%89%E5%85%A8%E5%9B%BD%E5%9B%BE%E9%89%B4%E7%BC%96%E5%8F%B7%EF%BC%89/%E7%AE%80%E5%8D%95%E7%89%88

* Option description update.

* remove marker if duplicate exists

* Fix "AttributeError: lat and lng required" when using coordinates as location (PokemonGoF#241)

Previously, origin_lat and origin_lon was not set, causing an Attribute error when accessing the webpage.

* Fixed typo

Removed unnecessary braces

* added smaller images

* Fixed mobile scaling (PokemonGoF#240)

* Step fix (PokemonGoF#252)

* fixed the pokestop icon


* rebased the poke stop icon

* fixed display of steps and completion, fixed steplimit logic

* Reformat get_args

* Update flags table

* Add autorefresh flag to README

* Fix multiline string
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

6 participants