Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in config #5423

Closed
jh0s3ph opened this issue Sep 13, 2016 · 0 comments
Closed

Error in config #5423

jh0s3ph opened this issue Sep 13, 2016 · 0 comments

Comments

@jh0s3ph
Copy link

jh0s3ph commented Sep 13, 2016

What did I do wrong this time XD??
Docker says:

"/usr/src/app/pokemongo_bot/../configs/config.json:441:0: Error: Unexpected text after end of JSON value
| At line 441, column 0, offset 16194
/usr/src/app/pokemongo_bot/../configs/config.json: has errors
2016-09-13 15:25:09,420 [ cli] [CRITICAL] Error with configuration file"

Config as follows:

{
"websocket_server": false,
"heartbeat_threshold": 10,
"enable_social": true,
"live_config_update": {
"enabled": false,
"tasks_only": false
},
"tasks": [
{
"type": "TelegramTask",
"config": {
"enabled": false,
"master": null,
"// old syntax, still supported: alert_catch": ["all"],
"// new syntax:": {},
"alert_catch": {
"all": {"operator": "and", "cp": 1300, "iv": 0.95},
"Snorlax": {"operator": "or", "cp": 900, "iv": 0.9}
}
}
},
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
{
"type": "RandomPause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:10:00",
"max_interval": "02:00:00"
}
},
{
"type": "CompleteTutorial",
"config": {
"enabled": false,
"// set a name": "",
"nickname": "",
"// 0 = No Team, 1 = Blue, 2 = Red, 3 = Yellow": "",
"team": 0
}
},
{
"type": "CollectLevelUpReward",
"config": {
"collect_reward": true,
"level_limit": -1
}
},
{
"type": "IncubateEggs",
"config": {
"enabled": true,
"infinite_longer_eggs_first": false,
"breakable_longer_eggs_first": true,
"min_interval": 120,
"infinite": [2,5,10],
"breakable": [10]
}
},
{
"type": "UpdateLiveStats",
"config": {
"enabled": false,
"min_interval": 120,
"stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
"terminal_log": true,
"terminal_title": true
}
},
{
"type": "UpdateLiveInventory",
"config": {
"enabled": false,
"min_interval": 120,
"show_all_multiple_lines": false,
"items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
}
},
{
"type": "ShowBestPokemon",
"config": {
"enabled": true,
"min_interval": 120,
"amount": 5,
"order_by": "cp",
"info_to_show": ["cp", "ivcp", "dps", "hp"]
}
},
{
"type": "TransferPokemon",
"config": {
"enabled": true,
"min_free_slot": 5,
"transfer_wait_min": 3,
"transfer_wait_max": 5
}
},
{
"type": "NicknamePokemon",
"config": {
"enabled": true,
"nickname_above_iv": 0.9,
"nickname_template": "{iv_pct}_{iv_ads}",
"nickname_wait_min": 3,
"nickname_wait_max": 5
}
},
{
"type": "EvolvePokemon",
"config": {
"enabled": false,

        "// evolve only pidgey and drowzee": "",
        "// evolve_list": "pidgey, drowzee",
        "// donot_evolve_list": "none",

        "// evolve all but pidgey and drowzee": "",
        "// evolve_list": "all",
        "// donot_evolve_list": "pidgey, drowzee",

        "evolve_list": "all",
        "donot_evolve_list": "none",

      "first_evolve_by": "cp",
      "evolve_above_cp": 500,
      "evolve_above_iv": 0.8,
      "logic": "or",
      "min_evolve_speed": 25,
      "max_evolve_speed": 30,
      "use_lucky_egg": false
    }
  },
  {
    "type": "UseIncense",
    "config": {
      "use_incense": false,
      "use_order": [
        "ordinary",
        "spicy",
        "cool",
        "floral" 
      ]
    }
  },
  {
    "type": "RecycleItems",
    "config": {
      "enabled": true,
      "min_empty_space": 15,
      "max_balls_keep": 270,
      "max_potions_keep": 70,
      "max_berries_keep": 70,
      "max_revives_keep": 30,
      "item_filter": {
        "Pokeball":       { "keep" : 100 },
        "Potion":         { "keep" : 0 },
        "Super Potion":   { "keep" : 0 },
        "Hyper Potion":   { "keep" : 20 },
        "Revive":         { "keep" : 30 },
        "Razz Berry":     { "keep" : 70 }
      },
      "recycle_wait_min": 3,
      "recycle_wait_max": 5,
      "recycle_force": true,
      "recycle_force_min": "00:01:00",
      "recycle_force_max": "00:05:00"
    }
  },
  {
    "type": "CatchPokemon",
    "config": {
      "enabled": true,
      "catch_visible_pokemon": true,
      "catch_lured_pokemon": true,
      "min_ultraball_to_keep": 5,
      "berry_threshold": 0.35,
      "vip_berry_threshold": 0.9,
      "treat_unseen_as_vip": true,
      "daily_catch_limit": 800,
      "vanish_settings": {
        "consecutive_vanish_limit": 10,
        "rest_duration_min": "02:00:00",
        "rest_duration_max": "04:00:00"
      },
      "catch_throw_parameters": {
        "excellent_rate": 0.1,
        "great_rate": 0.5,
        "nice_rate": 0.3,
        "normal_rate": 0.1,
        "spin_success_rate" : 0.6,
        "hit_rate": 0.75
      },
      "catch_simulation": {
        "flee_count": 3,
        "flee_duration": 2,
        "catch_wait_min": 3,
        "catch_wait_max": 6,
        "berry_wait_min": 3,
        "berry_wait_max": 5,
        "changeball_wait_min": 3,
        "changeball_wait_max": 5,
        "newtodex_wait_min": 20, 
        "newtodex_wait_max": 30
      }
    }
  },
  {
    "type": "SpinFort",
    "config": {
      "enabled": true,
      "spin_wait_min": 3,
      "spin_wait_max": 5,
      "daily_spin_limit": 1900
    }
  },
  { "type": "UpdateWebInventory",
    "config": {
      "enabled": true
    }
  },
  {
    "type": "MoveToFort",
    "config": {
      "enabled": true,
      "lure_attraction": true,
      "lure_max_distance": 2000,
      "walker": "StepWalker",
      "log_interval": 5
    }
  },
  {
    "type": "FollowSpiral",
    "config": {
      "enabled": true,
      "diameter": 4,
      "step_size": 70
    }
  }
],
"map_object_cache_time": 5,
"forts": {
  "avoid_circles": true,
  "max_circle_size": 50,
  "cache_recent_forts": true
},
"pokemon_bag": {
  "// if 'show_at_start' is true, it will log all the pokemons in the bag (not eggs) at bot start": {},
  "show_at_start": true,
  "// if 'show_count' is true, it will show the amount of each pokemon (minimum 1)": {},
  "show_count": false,
  "// if 'show_candies' is true, it will show the amount of candies for each pokemon": {},
  "show_candies": false,
  "// 'pokemon_info' parameter define which info to show for each pokemon": {},
  "// the available options are": {},
  "// ['cp', 'iv_ads', 'iv_pct', 'ivcp', 'ncp', 'level', 'hp', 'moveset', 'dps']": {},
  "pokemon_info": ["cp", "iv_pct"]
},
"walk_max": 4.16,
"walk_min": 2.16,
"alt_min": 500,
"alt_max": 1000,
"sleep_schedule": [
  {
    "time": "12:00",
    "duration": "5:30",
    "time_random_offset": "00:30",
    "duration_random_offset": "00:30",
    "wake_up_at_location": ""
  },
  {
    "time": "17:45",
    "duration": "3:00",
    "time_random_offset": "01:00",
    "duration_random_offset": "00:30",
    "wake_up_at_location": ""
  }
],
"gps_default_altitude": 8.0,
"replicate_gps_xy_noise": false,
"replicate_gps_z_noise": false,
"gps_xy_noise_range": 0.000125,
"gps_z_noise_range": 12.5,
"debug": false,
"test": false,
"walker_limit_output": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"logging": {
  "color": true,
  "show_datetime": true,
  "show_process_name": true,
  "show_log_level": true,
  "show_thread_name": false
},
"catch": {
  "any": {"candy_threshold" : 400 ,"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
  "// Example of always catching Rattata:": {},
  "// Rattata": { "always_catch" : true }
},
"release": {
  "any": {
  "release_below_cp": 100,
  "release_below_iv": 0.6,
  "logic": "or"
},
"Alakazam": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Arbok": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Beedrill": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Butterfree": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Cubone": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Diglett": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Dodrio": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Doduo": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Dugtrio": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Ekans": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Electrode": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Fearow": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Golbat": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Horsea": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Kadabra": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Kakuna": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Kingler": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Krabby": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Magnemite": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Magneton": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Mankey": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Marowak": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Meowth": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Metapod": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Paras": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Parasect": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Persian": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Primeape": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Raticate": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Sandshrew": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Sandslash": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Seadra": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Spearow": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Venomoth": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Venonat": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Voltorb": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Zubat": {
  "keep_best_custom": "cp, iv, hp_max",
  "amount": 2
},
"Aerodactyl": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Clefable": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Clefairy": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Cloyster": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Dewgong": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Drowzee": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Electabuzz": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Gastly": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Gengar": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Geodude": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Goldeen": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Golduck": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Golem": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Graveler": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Haunter": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Hypno": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Jigglypuff": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Jolteon": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Kabuto": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Kabutops": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Kangaskhan": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Koffing": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Magmar": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Ninetales": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Omanyte": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Omastar": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Pidgeot": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Pidgeotto": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Pikachu": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Pinsir": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Ponyta": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Psyduck": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Raichu": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Rapidash": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Rhydon": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Rhyhorn": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Scyther": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Seaking": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Seel": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Shellder": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Starmie": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Staryu": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Tentacool": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Tentacruel": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Vulpix": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Weezing": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"Wigglytuff": {
  "keep_best_cp": 2,
  "keep_best_iv": 2
},
"// Example of always releasing Rattata:": {},
"// Rattata": {
  "always_release": true
},
"// Example of keeping 3 stronger (based on CP) Pidgey:": {},
"// Pidgey": {
  "keep_best_cp": 3
},
"// Example of keeping 2 best (based on IV) Zubat:": {},
"// Zubat": {
  "keep_best_iv": 2
},
"// Keep no more than 3 best IV pokemon for every pokemon type": {},
"// any": {
  "keep_best_iv": 3
},
"// Discard all pokemon in bag except 100 pokemon with best CP": {},
"// all": {
  "keep_best_cp": 100
},
"// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
"// Voltorb": {
  "keep_best_cp": 2,
  "keep_best_iv": 3
},
"// Example of custom order of static criterion": {},
"// Venonat": {
  "keep_best_custom": "iv, cp, hp_max",
  "amount": 2
}

},
"vips" : {
"Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate": {},
"any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
"Lapras": {},
"Moltres": {},
"Zapdos": {},
"Articuno": {},

    "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
    "Mewtwo": {},
    "Dragonite": {},
    "Snorlax": {},
    "// Mew evolves to Mewtwo": {},
    "Mew": {},
    "Arcanine": {},
    "Vaporeon": {},
    "Gyarados": {},
    "Exeggutor": {},
    "Muk": {},
    "Weezing": {},
    "Flareon": {}
},
"websocket": {
    "start_embedded_server": true,
    "server_url": "127.0.0.1:4000"
}

}

@jh0s3ph jh0s3ph closed this as completed Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant