-
Notifications
You must be signed in to change notification settings - Fork 232
Conversation
} | ||
|
||
return pokemons | ||
return service.getBotContext(name).api.inventory.eggs.map { PokemonData().buildFromPokemon(it.value) } |
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.
Request processing failed; nested exception is java.lang.IllegalStateException: PokemonMetaRegistry.getMeta(this.getPokemonId()) must not be null
You try to read Pokemon data from the inventory.eggs (prolly a c/p mistake?)
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.
When starting with a fresh new account, it triggered the ToS, tutorial 'n stuff, but didn't refresh the internal counters when I catched the pikachu:
Restarting the bot fixed it. |
if (bot.api.inventory.candies.getOrPut(pokemonMeta.family, { AtomicInteger(0) }).get() >= pokemonMeta.candyToEvolve) { | ||
val pokemonData = it.value.pokemonData | ||
Log.yellow("Evolving ${pokemonData.pokemonId.name} CP ${pokemonData.cp} IV ${pokemonData.getIvPercentage()}%") | ||
val evolve = EvolvePokemon().withPokemonId(it.key) |
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.
Looks like evolving doesn't update the internal candy counter correctly:
25 aug 22:04:24 [default: BotLoop] - Going to transfer PIDGEY with CP 23 and IV 22%; reason: Not enough candy 16/12: max 1 <- so total = 17/12
...
25 aug 22:05:22 [default: ProfileLoop] - Stack of pokemon ready to evolve: 1/1
25 aug 22:05:22 [default: ProfileLoop] - Starting stack evolve of 1 pokemon using lucky egg
25 aug 22:05:22 [default: ProfileLoop] - Starting stack evolve of 1 pokemon without lucky egg
25 aug 22:05:22 [default: ProfileLoop] - Evolving PIDGEY CP 40 IV 22%
25 aug 22:05:26 [RxComputationScheduler-1] - Successfully evolved in PIDGEOTTO CP 77 IV 22%
25 aug 22:05:26 [default: ProfileLoop] - Not enough candy (11/25) to evolve RATTATA CP 10 IV 84%
25 aug 22:05:26 [default: ProfileLoop] - Not enough candy (7/12) to evolve WEEDLE CP 28 IV 73%
25 aug 22:05:26 [default: ProfileLoop] - Not enough candy (-32/12) to evolve PIDGEY CP 10 IV 42% <- waitwhat
25 aug 22:05:26 [default: ProfileLoop] - Finished evolving 1 pokemon; 0 xp gained
25 aug 22:05:28 [default: BotLoop] - Going to transfer PIDGEOTTO with CP 77 and IV 22%; reason: CP < -1 and IV < 95%
25 aug 22:06:22 [default: ProfileLoop] - Stack of pokemon ready to evolve: -2/1 <- waitwhat
That last one resulted in a ctx.pauseWalking.set(true)
and stuck the bot forever just out of range of a pokestop.
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.
Possibly fixed
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.
Looks like there's still a minor candy cache problem:
26 aug 12:03:45 [default: ProfileLoop] - Stack of pokemon ready to evolve: 1/1
26 aug 12:03:45 [default: ProfileLoop] - Starting stack evolve of 1 pokemon without lucky egg
26 aug 12:03:45 [default: ProfileLoop] - Evolving RATTATA CP 10 IV 84%
26 aug 12:03:46 [default: ProfileLoop] - Successfully evolved in RATICATE CP 19 IV 84%
26 aug 12:03:46 [default: ProfileLoop] - Not enough candy (7/12) to evolve WEEDLE CP 28 IV 73%
26 aug 12:03:46 [default: ProfileLoop] - Not enough candy (7/12) to evolve PIDGEY CP 10 IV 42%
26 aug 12:03:46 [default: ProfileLoop] - Evolving RATTATA CP 10 IV 46%
26 aug 12:03:47 [default: ProfileLoop] - Evolve of RATTATA CP 10 IV 46% failed: FAILED_INSUFFICIENT_RESOURCES
26 aug 12:03:47 [default: ProfileLoop] - Finished evolving 1 pokemon; 0 xp gained
On the second rattata he still thinks there is enough candy, even in the next loop he does:
26 aug 12:04:45 [default: ProfileLoop] - Stack of pokemon ready to evolve: 1/1
26 aug 12:04:45 [default: ProfileLoop] - Starting stack evolve of 1 pokemon without lucky egg
26 aug 12:04:45 [default: ProfileLoop] - Not enough candy (7/12) to evolve WEEDLE CP 28 IV 73%
26 aug 12:04:45 [default: ProfileLoop] - Not enough candy (7/12) to evolve PIDGEY CP 10 IV 42%
26 aug 12:04:45 [default: ProfileLoop] - Evolving RATTATA CP 10 IV 46%
26 aug 12:04:46 [default: ProfileLoop] - Evolve of RATTATA CP 10 IV 46% failed: FAILED_INSUFFICIENT_RESOURCES
26 aug 12:04:46 [default: ProfileLoop] - Finished evolving 0 pokemon; 1050 xp gained
just compiled and started with the old config:
it also tryed to do a transfer after a catch (while stuck in the same point due to ^) and:
and probably related to ^, i'm not able to load pokebank from the rest api (500 (Internal Server Error), eggs and items work good) Restard did no help. |
The pokebank REST thing is #1237 (comment), it's trying to read pokemons from the egg inventory :p |
@Sieberkev with inventory |
|
550c4f8
to
db9e935
Compare
Take a look to these simple fix #1242 the only bigger issue i've found and still here so far is #1237 (comment)
EDIT: |
Some news? 😃 |
@gise88 I'm sure he'll let us know as he's going along. I'd join the Discord for more info. |
I don't have time to test this, and apparently nobody else cares. So everything grinds to a halt. |
Just created a new account: 30 ago 17:55:53 [RxComputationScheduler-8] - Put egg of 5.0km in unused incubator Probably something doesn't work on the evaluation of KM Walked... and this? |
Exception in thread "RxComputationScheduler-5" java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add |
}.size | ||
if (luresInRange >= settings.campLurePokestop) { | ||
} | ||
if (luresInRange.size >= settings.campLurePokestop) { | ||
if (writeCampStatus) { | ||
Log.green("$luresInRange lure(s) in range, pausing") |
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.
${luresInRange.size} ?
* fix build * Updated AUTHORS.md (#1262) * API.md - Slashes missing in documentation (#1263) * Add checkstyle to Gradle build (#1246) * Enabled Checkstyle in Gradle * Added checkstyle to build.gradle (only check "src/main/kotlin" and not the libraries) * Fixed several checkstyle errors (File contains tab characters, Space needed before opening parenthesis, Line has trailing spaces) so the current checkstyle.xml builds without errors * * Added check to avoid "){" * [REST API] Added HTTP status codes for bad auth/requests (#1264) * * Added status codes on bad requests/auth * Updated API.md file * * Replaced string concatenations with proper ${}'s and cleaned up some sentences * Added missing stardust check on powerup * * Update API.md with stardust check * * Added more console logging * Cleanup some one-use vars * Improved config loading/saving (#1270) * Remove unused ProgramController * Renamed util.io.export*Writer classes/files * Moved BotService save/load to new class/file util.io.SettingsJSONWriter * Fix REST API pokedex indexes (#1275) * Fix missing pokemons (missingno #0, mew #151) in REST API pokedex call
} else { | ||
Log.red("Failed to put egg in incubator; error: $incubateResult") | ||
val use = UseItemEggIncubator().withPokemonId(eggResult.pokemonData.id).withItemId(freeIncubators.first().id) | ||
bot.api.queueRequest(use).subscribe { |
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.
.toBlocking() needed to fix #1256
add buddy pokemon support
As this one contains merge conflicts and git should just merge it, reopening new pr |
Changes made:
Needs a lot of testing.