Dummies guide
While the readmes etc are still out of date, and information is scattered all over various issues, I thought I'd share what exactly had worked for me:
Specs at my end (since it seems to be very dependent on what people are running):
On Linux I'm running:
Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-65-generic x86_64)
pip 8.1.2
Python 2.7.6
virtualenv 15.0.2
Fermuch git repo 153ea212999e337b54e09761f6defbabb0de4e8c
My encrypt.so MD5 checksum (in case that helps):
91d2eb79fcbc72b696f7523f93491325
On OSX I'm running:
OSX El Capitan 10.11.4 (15E65)
pip 8.1.2
Python 2.7.10
virtualenv 15.0.2
Fermuch git repo 153ea212999e337b54e09761f6defbabb0de4e8c
My encrypt.so MD5 checksum (in case that helps):
MD5 (encrypt.so) = c715106d91e624728d6984ecfacefa14
What to do:
First I cloned fermuch's repo of the Bot:
git clone --recursive https://github.com/fermuch/PokemonGo-Bot.git
cd PokemonGo-Bot/
Run the included install script:
bash install.sh
I see no need to f*ck around with pip install etc, when people have written the scripts to do it!
Get the encrypt file, compile it and move it:
wget http://pgoapi.com/pgoencrypt.tar.gz && tar -xf pgoencrypt.tar.gz && cd pgoencrypt/src/ && make && mv libencrypt.so ../../encrypt.so
For OSX: Try downloading the encrypt.so from http://www.mediafire.com/download/engnf5fvj65duxa/encrypt.so
or
wget http://www.mediafire.com/download/engnf5fvj65duxa/encrypt.so
Using this encrypt.so worked for me.
Set up your config file (edit it with your Google Maps API Key, logins etc.)
cp ./configs/config.json.example ./configs/config.json
nano ./configs/config.json #and do all the relevant editing.
Finally I ran it explicitly:
python pokecli.py --config ./configs/config.json
or ./run.sh configs/config.json
On OSX, I had to invoke the bot with sudo to overcome a permissions error.
Hope that's useful for a few people.
Dude, you can make a PR instead of issue :)
Yeah I thought about that, but it seemed to me that most people are probably coming directly to the issues pages, so people might be more likely to spot it here and not open the same issue for the millionth time haha! Could do both I suppose.
Please send a PR =)
dude, are you able to catch pokemons? cause i'm not, the bot just walks the whole time..
... 2016-08-07 15:45:03,451 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Chaos - 0.06km (attraction of lure 0.12km) 2016-08-07 15:45:13,031 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 1.93 km 2016-08-07 15:45:13,832 [RecycleItems] [INFO] [item_discarded] Discarded 1x Pokeball (maximum 100). 2016-08-07 15:45:14,112 [RecycleItems] [INFO] [item_discarded] Discarded 1x Potion (maximum 10). 2016-08-07 15:45:14,386 [RecycleItems] [INFO] [item_discarded] Discarded 1x Razz Berry (maximum 100). 2016-08-07 15:45:19,690 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Chaos - 0.06km (attraction of lure 0.12km) 2016-08-07 15:45:34,626 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Chaos - 0.05km (attraction of lure 0.12km) 2016-08-07 15:45:49,229 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Chaos - 0.05km (attraction of lure 0.12km) 2016-08-07 15:46:04,311 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Chaos - 0.04km (attraction of lure 0.11km) 2016-08-07 15:46:19,555 [ SpinFort] [INFO] [spun_pokestop] Spun pokestop Chaos. Experience awarded: 50. Items awarded: {u'Pokeball': 3, u'Greatball': 1} 2016-08-07 15:46:22,222 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Venus - 0.11km (attraction of lure 0.11km) 2016-08-07 15:46:33,497 [RecycleItems] [INFO] [item_discarded] Discarded 3x Pokeball (maximum 100). 2016-08-07 15:46:38,799 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Venus - 0.10km (attraction of lure 0.10km) 2016-08-07 15:46:53,282 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Venus - 0.10km (attraction of lure 0.10km) 2016-08-07 15:47:12,462 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Venus - 0.10km (attraction of lure 0.10km) ..
I havent watched the bot for very long so far, but it says it has been capturing.
Some example output:
2016-08-07 13:47:19,476 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop University of Warwick - Science Park - 0.05km (attraction of lure 0.28km) 2016-08-07 13:47:26,788 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop University of Warwick - Science Park - 0.04km (attraction of lure 0.27km) 2016-08-07 13:47:33,765 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Weedle appeared! [CP 77] [Potential 0.31] [S/A/D 3/9/2] 2016-08-07 13:47:36,874 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 53.30 (60 left) 2016-08-07 13:47:37,398 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Weedle! [CP 77] [Potential 0.31] [3/9/2] [+210 exp]
Made a PR, but I've never actually done one on GH before so don't really know what I'm doing :P I suppose it should be merged in to the readme eventually, but I'm sure the devs will correct all the relevant details once the bot itself is finished being patched.
@helmut1337 I would make a new issue or find an existing one with your issue so that this thread stays fairly clean. You're more likely to find an answer that way too.
@jrjhealey yeah, but seems like the bot still have a small issue related to catching pokemons.. (since the bot has been walking for 45min and catched 1 pokemon) :/
Tried this on dev branch but i throws an error that it can't find the file encrypt.so PokemonGo-Bot/encrypt.so
@alexanderrock please have a look on #2778
@sinthu94 maybe take a look at the criteria you have for catchin pokemon? Maybe you could lower CP cutoffs etc to catch more.
@alexanderrock which repo did you clone from? is the encrypt.so file inside your main Bot folder?
Thanks for this guide. You helped me to get it working. I even just made this account to say thank you.
This is a really clear guide. Thanks a lot.
This bot is the best. It has so many configurations so that I have total control over my inventory.
@jrjhealey i have the dafault settings... "catch": { "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"}, "// Example of always catching Rattata:": {}, "// Rattata": { "always_catch" : true } },
@sinthu94 hmm... I can only suppose it is where the bot is walking? I'm no dev so I don't know if the bot is performing as intended or not. My bot does seem to do a lot of walking, but it's caught some stuff too.
Have you tried changing your geolocation to somewhere more densely populated?
I just stopped my bot and have the following summary:
2016-08-07 14:14:57,777 [ cli] [INFO] 2016-08-07 14:14:57,778 [ cli] [INFO] Ran for 0:36:55 2016-08-07 14:14:57,778 [ cli] [INFO] Total XP Earned: 9170 Average: 14905.25/h 2016-08-07 14:14:57,778 [ cli] [INFO] Travelled 2.05km 2016-08-07 14:14:57,778 [ cli] [INFO] Visited 19 stops 2016-08-07 14:14:57,779 [ cli] [INFO] Encountered 22 pokemon, 22 caught, 0 released, 0 evolved, 1 never seen before 2016-08-07 14:14:57,779 [ cli] [INFO] Threw 26 pokeballs 2016-08-07 14:14:57,779 [ cli] [INFO] Earned 7944 Stardust 2016-08-07 14:14:57,779 [ cli] [INFO] 2016-08-07 14:14:57,780 [ cli] [INFO] Highest CP Pokemon: Raticate [CP: 763] [IV: 11/6/9] Potential: 0.58 2016-08-07 14:14:57,780 [ cli] [INFO] Most Perfect Pokemon: Horsea [CP: 34] [IV: 15/15/10] Potential: 0.89
@jrjhealey I'mm testing both master and dev for both i've written an installscript
installbot
git clone -b master https://github.com/PokemonGoF/PokemonGo-Bot.git PokemonGo-Bot cd PokemonGo-Bot git pull pip install -r requirements.txt --upgrade wget http://pgoapi.com/pgoencrypt.tar.gz tar -xf pgoencrypt.tar.gz cd pgoencrypt/src/ make mv libencrypt.so ../../encrypt.so cd ../../ rm pgoencrypt.tar.gz rm -rf pgoencrypt chmod +x pokecli.py
installbotdev
git clone -b dev https://github.com/PokemonGoF/PokemonGo-Bot.git PokemonGo-Bot-dev cd PokemonGo-Bot-dev git pull pip install -r requirements.txt --upgrade wget http://pgoapi.com/pgoencrypt.tar.gz tar -xf pgoencrypt.tar.gz cd pgoencrypt/src/ make mv libencrypt.so ../../encrypt.so cd ../../ rm pgoencrypt.tar.gz rm -rf pgoencrypt chmod +x pokecli.py
in both scenarios the encrypt.so is in the root of PokemonGo-Bot or PokemonGo-Bot-dev where the pokecli.py is too
the error is the following
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) 2016-08-07 16:15:18,645 [sentry.errors.uncaught] [ERROR] [u'OSError: encrypt.so: cannot open shared object file: No such file or directory', u' File "pokecli.py", line 493, in
', u' File "pokecli.py", line 127, in main', u' File "pokecli.py", line 136, in report_summary', u' File "pokemongo_bot/metrics.py", line 76, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 106, in call', u' File "pokemongo_bot/api_wrapper.py", line 63, in _call', u' File "pgoapi/pgoapi.py", line 210, in call', u' File "pgoapi/rpc_api.py", line 85, in activate_signature', u' File "ctypes/init.py", line 443, in LoadLibrary', u' File "ctypes/init.py", line 365, in init']
@jrjhealey well, i'wll try with another geolocation, hopefully that'll work. thank you bro ;)
@alexanderrock I'm afraid I've no insight on the official bot repo, but if you take another look at my OP, I'm currently using the version that's in fermuch's fork. I had issues with the official repo too but whatever fermuch has changed (specifically he made an edit to do with the file path of the encrypt.so file), seems to have made all the difference.
Consider cloning that repo and testing what I put in the OP and then let us know if that works.
@sinthu94 word to the wise, don't jump too far in one go else you may trigger a softban ;)
@jrjhealey Now its working with fermuchs fork