Latest Develop Branch, Invalid JSON.
freakyfreak87 opened this issue · 3 comments
`{
"accounts": [
{
"auth_service": "google",
"username": "Username",
"password": "Password",
"location": "Anywhere, USA",
"GMAPS_API_KEY": "0000000000-00000000000000000000",
"BEHAVIOR": {
"USE_GOOGLE": false,
"STEP_SIZE": 5,
"EXTRA_WAIT" : 0.8,
"SLEEP_MULT" : 2.0,
},
"CAPTURE": {
"CATCH_POKEMON": true,
"MIN_FAILED_ATTEMPTS_BEFORE_USING_BERRY": 3,
"MAX_CATCH_ATTEMPTS": 10,
"USE_POKEBALL_IF_PERCENT": 70,
"USE_GREATBALL_IF_PERCENT": 25,
"USE_ULTRABALL_IF_PERCENT": 5,
"USE_MASTERBALL": false
},
"EGG_INCUBATION": {
"ENABLE": true,
"USE_DISPOSABLE_INCUBATORS": false,
"BIG_EGGS_FIRST": true
},
"POKEMON_EVOLUTION": {
"PIDGEY":12,
"WEEDLE":12,
"CATERPIE":12,
"RATTATA":25,
"DROWZEE":50,
"EKANS":50,
"POLIWAG":25,
"GASTLY":25,
"SPEAROW":50,
"ODDISH":25,
"SHELLDER":50,
"EEVEE":25,
"ZUBAT":50,
"CLEFAIRY":50,
"ODDISH":25,
"PARAS":50,
"VENONAT":50,
"DIGLETT":50,
"MEOWTH":50,
"PSYDUCK":50,
"MANKEY":50,
"GROWLITHE":50,
"MACHOP":25,
"BELLSPROUT":50,
"TENTACOOL":50,
"GEODUDE":25,
"PONYTA":50,
"KRABBY":50
},
"POKEMON_CLEANUP": {
"MIN_SIMILAR_POKEMON": 1,
"MAX_SIMILAR_POKEMON": 999,
"KEEP_POKEMON_NAMES": ["MEWTWO", "DRATINI"],
"THROW_POKEMON_NAMES": ["PIDGEY", "WEEDLE"],
"RELEASE_METHOD": "CLASSIC",
"RELEASE_METHOD_CLASSIC": {
"KEEP_CP_OVER": 2000,
"KEEP_IV_OVER": 85
},
"SCORE_METHOD": "IV",
"SCORE_METHOD_FANCY": {
"WEIGHT_IV": 0.5,
"WEIGHT_LVL": 0.5
}
},
"MIN_ITEMS": {
"ITEM_POTION": 0,
"ITEM_SUPER_POTION": 0,
"ITEM_HYPER_POTION": 0,
"ITEM_MAX_POTION": 50,
"ITEM_POKE_BALL": 100,
"ITEM_GREAT_BALL": 50,
"ITEM_ULTRA_BALL": 50,
"ITEM_RAZZ_BERRY": 50,
"ITEM_REVIVE": 0,
"ITEM_MAX_REVIVE": 50
}
},
{
"auth_service": "ptc",
"username": "someusername",
"password": "password",
"location": "University of Southern California, Los Angeles, CA",
"BEHAVIOR": {
"USE_GOOGLE": true,
"STEP_SIZE": 100,
"WANDER_STEPS": 0,
"EXPERIMENTAL": false,
"SKIP_VISITED_FORT_DURATION": 600,
"SPIN_ALL_FORTS": true,
"STAY_WITHIN_PROXIMITY": 9999,
"AUTO_USE_LUCKY_EGG": false,
"EXTRA_WAIT" : 0.3,
"SLEEP_MULT" : 1.5,
"ENABLE_CACHING" : false,
"USE_CACHED_FORTS" : false,
"CACHED_FORTS_SORTED" : false
},
"CAPTURE": {
"CATCH_POKEMON": true,
"MIN_FAILED_ATTEMPTS_BEFORE_USING_BERRY": 3,
"MAX_CATCH_ATTEMPTS": 10,
"USE_POKEBALL_IF_PERCENT": 70,
"USE_GREATBALL_IF_PERCENT": 25,
"USE_ULTRABALL_IF_PERCENT": 5,
"USE_MASTERBALL": false
},
"EGG_INCUBATION": {
"ENABLE": true,
"USE_DISPOSABLE_INCUBATORS": false,
"BIG_EGGS_FIRST": true
},
"POKEMON_EVOLUTION": {
"PIDGEY":12,
"WEEDLE":12,
"CATERPIE":12,
"RATTATA":25,
"DROWZEE":50,
"EKANS":50,
"POLIWAG":25,
"GASTLY":25,
"SPEAROW":50,
"ODDISH":25,
"SHELLDER":50,
"EEVEE":25,
"ZUBAT":50,
"CLEFAIRY":50,
"ODDISH":25,
"PARAS":50,
"VENONAT":50,
"DIGLETT":50,
"MEOWTH":50,
"PSYDUCK":50,
"MANKEY":50,
"GROWLITHE":50,
"MACHOP":25,
"BELLSPROUT":50,
"TENTACOOL":50,
"GEODUDE":25,
"PONYTA":50,
"KRABBY":50
},
"POKEMON_CLEANUP": {
"TESTING_MODE": false,
"MIN_SIMILAR_POKEMON": 1,
"MAX_SIMILAR_POKEMON": 999,
"KEEP_POKEMON_NAMES": ["MEWTWO", "DRATINI"],
"THROW_POKEMON_NAMES": ["PIDGEY", "WEEDLE"],
"RELEASE_METHOD": "CLASSIC",
"RELEASE_METHOD_CLASSIC": {
"KEEP_CP_OVER": 2000,
"KEEP_IV_OVER": 85
},
"SCORE_METHOD": "IV",
"SCORE_METHOD_FANCY": {
"WEIGHT_IV": 0.5,
"WEIGHT_LVL": 0.5
}
},
"MIN_ITEMS": {
"ITEM_POTION": 0,
"ITEM_SUPER_POTION": 0,
"ITEM_HYPER_POTION": 0,
"ITEM_MAX_POTION": 50,
"ITEM_POKE_BALL": 100,
"ITEM_GREAT_BALL": 50,
"ITEM_ULTRA_BALL": 30,
"ITEM_RAZZ_BERRY": 10,
"ITEM_REVIVE": 5,
"ITEM_MAX_REVIVE": 10
},
"NEEDY_ITEM_FARMING": {
"ENABLE": false,
"POKEBALL_CONTINUE_THRESHOLD": 50,
"POKEBALL_FARM_THRESHOLD": 10,
"FARM_IGNORE_POKEBALL_COUNT": false,
"FARM_IGNORE_GREATBALL_COUNT": false,
"FARM_IGNORE_ULTRABALL_COUNT": false,
"FARM_IGNORE_MASTERBALL_COUNT": true,
"FARM_OVERRIDE_STEP_SIZE": -1
},
"CONSOLE_OUTPUT": {
"EXPLAIN_EVOLUTION_BEFORE_CLEANUP": false,
"LIST_POKEMON_BEFORE_CLEANUP": false,
"LIST_INVENTORY_BEFORE_CLEANUP": true,
"SHOW_STEPS": true,
"SHOW_TRAVEL_LINK_WITH_STEPS": true,
"SHOW_DISTANCE_TRAVELED": true,
"SHOW_NEAREST_FORT_DISTANCE": true,
"NOTIFY_NO_NEARBY_POKEMON": false,
"COLORLOG": {
"FORT_WALKER": "blue",
"POKE_CATCHER": "green",
"RELEASE": "cyan",
"EVOLVE": "cyan",
"POKETRAINER": "yellow",
"INVENTORY": "purple"
}
}
}
],
"defaults": {
"_info": "copy values to this section to use them for all accounts",
"_info2": "account settings will always override defaults"
}
}`
Seems like latest develop is invalid, also things are all over the place? like ptc login has wander steps/dort cache etc, and the google credentials there iesnt an option for it, im new to building jsoins, and i've tried on my end, but I guess adding forts/wander steps to google and even valid, the build errors out in cmd
I can't speak to the other issues you mentioned, but you do have a problem in your pasted config right here:
"SLEEP_MULT" : 2.0,
You can't have a trailing comma after the last item in a list in JSON. (I hate this as well.)
For future reference, there are a bunch of online JSON validators that will at least tell you if your config is syntactically valid. JSONLint is a pretty good one.
Oh… yikes. I didn't realize that the current version in develop was also broken, and that you were just copying the example here. Looks like recent committers aren't doing a good job of sanity checking before merging… 😕
Jesus this is very much my bad, I have to stop checking pull requests so quickly while compiling other code....