-
Notifications
You must be signed in to change notification settings - Fork 166
Source Code
ShawnHardwick edited this page Aug 3, 2016
·
4 revisions
Note: You will need some basic Computer Experience. Need help? Join the Chat! The Issue Tracker is not for help!
These instructions are only for individuals who wish to modify the source code. If you want to just run the bot, please go here.
Download and Install Visual Studio 2015.
- Get the current source code from Code.
- Get the current version of the RocketAPI we use from RocketAPI
- Unzip the source code for PokeMobBot
- Unzip the RocketAPI so the folder structure matches
PokeMobBot\Pokemon-Go-Rocket-API\PokemonGo.RocketAPI\
- open your terminal (you should have git for windows installed)
- change to the folder where you want to clone the files to and type into terminal
git clone --recursive https://github.com/PocketMobsters/PokeMobBot.git
- Ensure you are in PokeMobBot root directory
- Run
git submodule update --force
- Ensure you are in PokeMobBot root directory
- Run
git fetch origin pull/ID/head
- Open
PokeMobBot for Pokemon Go.sln
. - Right click on
PoGo.PokeMobBot.CLI
and click onSet as Startup Project
. - Press
CTRL + F5
- If this is the first execution of PokeMobBot in this directory, it will generate the config/auth JSON files and then automatically close.
- Navigate to the bin/debug/Config/auth.json file
- Change AuthType to
google
orptc
based on your login type - Enter your username and password with quotes around them. You can find an example below.
-
For Google logins, use
GoogleUsername
andGooglePassword
.- If the Google login uses 2-factor authentication, you will need to follow additional steps described here.
-
For PTC logins, use
PTCUsername
andPTCPassword
.
{ "AuthType": "google", "GoogleRefreshToken": null, "PtcUsername": null, "PtcPassword": null, "GoogleUsername": "ReachForTheSkies@gmail.com", "GooglePassword": "howdyhowdyhowdy" }
7. Save the auth.json file
8. Edit bin/debug/Config/config.json with your desired settings
* The defaults settings are generic so you WILL have to modify these to match what you expect from PokeMobBot.
* The [Config](https://github.com/PocketMobsters/PokeMobBot/wiki/Config) wiki page has more details about these settings
* For GPX Path Setup, follow the guide at [GPX Pathing Setup](https://github.com/PocketMobsters/PokeMobBot/wiki/Getting-Started#gpx-pathing-setup)
* For Sniping Setup, follow the guide at [Sniping Setup](https://github.com/PocketMobsters/PokeMobBot/wiki/Sniping-Setup)
9. Put your latitude and longitude values in the `DefaultLatitude` and `DefaultLongitude` variables
* You can find GPS coordinates [here](http://mondeca.com/index.php/en/any-place-en) to fit your desired location.
10. Save the config.json file
11. Press `CTRL + F5` and follow the instructions.
* If you are using a Google account to login which is setup with 2-factor authentication, PokeMobBot will open a Google page in your default browswer and request for your 2-factor token.
12. Make sure to read up on the [FAQ](https://github.com/PocketMobsters/PokeMobBot/wiki/FAQ) and [Common Issues](https://github.com/PocketMobsters/PokeMobBot/wiki/Common-Issues) sections with any issues.
**NOTE:** If PogoProtos is missing: Its in the packages folder, just right click the CLI -> Add Reference -> Browse (tab) -> Browse (button) -> go to the packages folder in the root directory and find the PogoProtos
***
## Changing the Location of the Bot
1. Get a new latitude and longitude.
2. If your Bot is running, close it.
3. Change the value of `DefaultLatitude` and `DefaultLongitude` in your `PokeMobBot\PoGo.PokeMobBot.CLI\bin\Debug\Config\config.json` file
4. Run the bot
The contents of this repo are a proof of concept and are for educational use only