-
Notifications
You must be signed in to change notification settings - Fork 232
Updated explanation in several files #1152
Changes from all commits
a2cf8fe
371c8d8
86b57ca
1146f43
f88523e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
# Frequently Asked Questions | ||
|
||
## I got `BUILD FAILED` | ||
Most of the time it's because the you didn't execute step 2 of the README. | ||
|
||
After that, just try `gradlew clean build`. | ||
There is a lot of output with the reason WHY the build fails, please read it through carefully and fix any errors mentionned in the output. | ||
|
||
If there's still a problem, open an issue. | ||
## I get an `AsyncPokemonGoException: Unknown exception occurred` / `Error running loop ProfileLoop!` / `Error running loop BotLoop!` | ||
|
||
## The bot doesn't catch Pokemon | ||
Only that is not enough, check the whole stacktrace for the correct error. | ||
|
||
## I get an `InvalidProtocolBufferException: Contents of buffer are null` | ||
|
||
This is a known issue with the currently used Pokemon GO API. The bot sends too many requests in a too short time to the servers, which return with a null value. We hope to get that fixed shortly, but is not something you can simply fix with some configuration settings or by putting extra Thread.sleep() in the code. | ||
|
||
## After login I see `Accepting ToS` and get a `RemoteServerException: Your account may be banned! please try from the official client.` | ||
|
||
If you CAN login to the official client, complete the tutorial (catch your first pokemon, touch your first pokestop) and try again. | ||
|
||
If you CAN'T login in the official client but see "Error fetching game data": RIP items/eggs/pokemons, your account got permabanned. You knew this was possible since you did read and violate the ToS of the official game. | ||
|
||
## The bot doesn't find/catch Pokemon | ||
|
||
Currently not reproducible so can't be reliably fixed. Look here for some people that managed to get it fixed: https://github.com/jabbink/PokemonGoBot/issues/21 | ||
|
||
|
@@ -16,16 +27,33 @@ Some possible issues: | |
* Make sure your system time is (semi-)correct (let it autosync with an online server) | ||
* Make sure the mobile app is not on (kill the process if need be) | ||
* Make sure the account you're botting on did do the initial tutorial (mainly catching a starter Pokemon) | ||
* Make sure your item bank is empty | ||
* Make sure you have enough pokeballs and your pokebank is not full | ||
* You caught too many pokemons in a short time and are softbanned (don't catch more than 1000 Pokemon in 23 hours, [source](https://www.reddit.com/r/pokemongodev/comments/4xkqmq/new_ban_types_and_their_causes/)). | ||
|
||
## The bot doesn't find/loot Pokestops | ||
|
||
Some possible issues: | ||
|
||
* Your startlocation is wrong and/or there are no pokestops nearby. | ||
* You looted too many pokestops in a short time and are softbanned (don't loot more than 2000 Pokestops in 23 hours, [source](https://www.reddit.com/r/pokemongodev/comments/4xkqmq/new_ban_types_and_their_causes/)) | ||
|
||
## The bot doesn't walk | ||
|
||
Some possible issues: | ||
|
||
* You're camping a Pokestop with a lure (should be visible in log) | ||
* You're resting (should be visible in log) | ||
|
||
## Immediately after starting I get a LoginFailedException | ||
|
||
- Make sure the provided credentials in the `config.properties` file are correct. | ||
- If you're using PTC, your credentials are correct and your password is longer than 15 characters, only enter the first 15 characters of your account and the login should work. | ||
- If there is a token present, remove it and retry. | ||
|
||
## After 1.5 hours I get a errors with Google login | ||
## After 1.5 hours I get a errors with PTC/Google login `LoginFailedException: Invalid Auth status code recieved, token not refreshed?` | ||
|
||
Known issue with the Java API handling login for Google. | ||
Known issue with the Java API handling login for PTC/Google. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this even happen with Google? If not, I know how to fix it for ptc... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With Google I had it exactly every 1.5h, with PTC it can vary but is mostly around 1.5h-ish. The token field is also never filled in anymore in the config.properties, maybe it has to do something with that? |
||
|
||
## I get a RemoteServerException or something about "502" | ||
|
||
|
@@ -49,23 +77,27 @@ If your bot runs the GUI socket on port `8001`, everything should work automatic | |
|
||
## The bot refuses to login to my Google account | ||
|
||
Make sure you enter the full email address (including `@`) in the `username=` property. | ||
Make sure you enter the full email address (including `@`) in the `username=` property. If you use a JSON configuration, make sure the credential type is set as `google-auto`. | ||
|
||
## Error: unable to access jarfile xxxxx | ||
|
||
Make sure you are working in the directory where the JAR file is located | ||
Make sure you are working in the directory where the JAR file is located. If you JAR file is located in `C:\Users\userprofilename\Desktop\pogobot\` you can change your directory in the console with the command `cd C:\Users\userprofilename\Desktop\pogobot\` (do not simply copy/paste this command but alter it to your location first). | ||
|
||
## I want to use multiple bots | ||
|
||
Define the bot configurations in multiple JSON files in the `bot-settings` directory. | ||
|
||
Refer to the file named [`json-template.json`](./json-template.json) for an example. | ||
|
||
If you use a PTC account, set credential type to "ptc", if you use a Google account, set credential type to `google-auto`! | ||
|
||
Make sure all JSON files have a different `guiPortSocket` or set that port to `0`! | ||
|
||
## I get "Address already in use" | ||
|
||
You are either trying to run multiple bots by running Java multiple times, multiple bot configurations use the same `guiPortSocket` or the port is simply in use by another application. | ||
It is possible you did not close the bot correctly (do not close the console window, but do `CTRL+C` first to close the process) and it is still running in the background. Kill all running JAVA processes and restart the bot. | ||
|
||
If that is not the case, you are either trying to run multiple bots by running Java multiple times, multiple bot configurations use the same `guiPortSocket` or the port is simply in use by another application. | ||
|
||
To change the socket ports, change `guiPortSocket` (`gui_port_socket` in `config.properties`) to another port, or disable the GUI by setting this to `0`. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ having to answer the same question can really clog up the pipes for people who a | |
|
||
## Prebuilt | ||
|
||
1. Make sure you have Oracle Java 1.8 or higher installed (`java -version` in a command line) | ||
1. Make sure you have Oracle Java 1.8 JRE (JDK works too) installed (`java -version` in a command line) | ||
- If not, go [here](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html). | ||
2. Download the latest release from [here](https://github.com/jabbink/PokemonGoBot/releases). | ||
3. Download [config.properties.template](https://raw.githubusercontent.com/jabbink/PokemonGoBot/master/config.properties.template) and save it in the same directory | ||
|
@@ -26,9 +26,15 @@ having to answer the same question can really clog up the pipes for people who a | |
|
||
## From source | ||
|
||
1. Clone this repo: `git clone https://github.com/jabbink/PokemonGoBot.git && cd PokemonGoBot` or download the zip | ||
2. Run from terminal/cmd: `gradlew build` | ||
3. Rename `./config.properties.template` to `./config.properties` | ||
4. Modify `config.properties` as you please | ||
5. To run the bot directly from console run `gradlew run` | ||
6. :exclamation: If you use JetBrains IntelliJ, install the Lombok plugin and enable Settings -> Compiler -> Annotation Processors -> Enable annotation processing :exclamation: | ||
1. Make sure you have Oracle Java JDK 1.8 installed (`java -version` in a command line) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. javac -version works as well I think. And using that command here will probably stop issues from people that only installed the jre There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In Win7 |
||
- If not, go [here](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). | ||
2. Clone this repo: `git clone https://github.com/jabbink/PokemonGoBot.git && cd PokemonGoBot` or download the zip | ||
3. Run from terminal/cmd: `gradlew build` | ||
4. Copy `./config.properties.template` to `./config.properties` | ||
5. Modify `config.properties` as you please | ||
6. To run the bot directly from console run `gradlew run` | ||
7. :exclamation: If you use JetBrains IntelliJ, install the Lombok plugin and enable Settings -> Compiler -> Annotation Processors -> Enable annotation processing :exclamation: | ||
|
||
## Stopping the bot | ||
|
||
Do not simply close the console window, but press `CTRL+C` first to terminate the bot gracefully. Otherwise there's a chance the process will still run in the background and give an `address in use` error when you want to restart it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you have poke balls and your poke bag is not full