Make sure properties have a correct value
Description:
Now the default values of properties are defined twice, once in Settings.kt and once in Main.kt.
Make sure that it's only defined once and (then automatically) fix incorrect default values like the IV threshold of 400 (fixed already) and this CHARMENDER (vs CHARMANDER) in https://github.com/jabbink/PokemonGoBot/blob/develop/src/main/kotlin/ink/abb/pogo/scraper/Main.kt#L68
Isn't that defined in the config. Looked around, not sure what I'm missing.
transfer_cp_threshold, doesn't seem to work set to 1000 & still displays 400
@neox387 sigh...
Thanks for noticing. As you can see in the top comment (click that link) that setting is indeed ignored.
Is this why neither of the branches nor the latest release not work?
No. All branches work. Stop hating on Spring Boot.
It is giving me a hard time! I can't run anything. I am building on linux.
Try
git reset --hard
git checkout master
git pull
cd lib/PokeGOAPI-Java
git reset --hard
cd ../..
git submodule update --init --recursive
./gradlew clean build
Still getting #247
That's a different error.
obligatoryTransfer is the same case. If i set it to blank, i got this error of incorrect enum value I think you can't leave it blank as of now?
No. All branches work. Stop hating on Spring Boot.
Can we at least hate on the DEBUG output and banner?? :)
Can we at least hate on the DEBUG output and banner?? :)
DEBUG output, yes #249; The banner: Never :joy:
It was in fact bad settings, my token was expired/bad. It is working for me now. Take care though, it transferred some of my pokemon, seemed to ignore keep_pokemon_amount=2. Also transfer_cp_threshold defaults to 400 even though I have it set to -1, so that is probably why they were deleted.
I found the issue / an issue btw... It assumes that both "ignore_pokemon" and "obligatory_transfer" have values. If you remove those values it should transfers all (for ignore_pokemon) and have no "always transfer" pokemon.
Try having "ignore_pokemon=" for example and it'll break.
keepPokemonAmount transferCPThreshold sortByIV are set to defaults even though I have them changed in my config.properties. I see the default JSON data is set in Settings.kt, and there are missing lines in Main.kt that are supposed to overwrite them! XD
Thnx Oddslol that was the issue :+1:
I still have the fatal error on bot start. Can you pack a new zipped version without any issues please?
It is a settings issue, I am fixing missing lines in Main.kt. Not sure what to do about invalid settings though. Unless there are other plans for settings fixes?
My settings are exactly the same as 0.3 and 0.4. I have not changed anything.
- Downloaded ZIP
- Downloaded JAR
- Edited config.properties with my latitude, longitude, username and password
- Run the bot: java -jar pogo.scraper-all-0.4.1.jar
On 0.3 and 0.4 works like charm... but not for 0.4.1
Can you please make the same zip+JAR for 0.4.1?
Thanks indeed!
Oh I see how it works now, #223 moved settings configuration into bot-settings/config-properties-conversion.json and Main.kt also sets vals to override the JSON but is missing some lines. "ignoredPokemon" : [ "MISSINGNO" ], "obligatoryTransfer" : [ "MISSINGNO" ], in the JSON must not be null or it fails with that huge wall of text.