-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
problems with error config files #4225
Comments
Provide complete log. |
/home/PokemonGo-Bot/pokemongo_bot/../configs/config.json:387:70: Error: Line terminator characters must be escaped inside string literals: 'U+000A' |
The JSON parses fine. |
I am in utf-8 |
I would try ASCII then, but it looks like you'll have to wait for someone with more experience to help you out. |
@Tagada22 Please provide complete log. If it is long then upload it to pastebin.com. |
Attaching original file could be important when inspecting it. |
All complète log and config are in the first message on issue |
Ok i do that |
@Tagada22 Nope, it is not complete. I see there only about 10 lines. |
error log config I upload in attach files here and in first post . thanks |
@Tagada22 It looks like this problem is caused by unexpected line breaks (lines 381-382 and 389-390 according to your log).
to this (join it to single line):
Same for lines 389-390. |
Do what @cmezh said and it should work. Closing. |
hello ,
i have a problems with my bot , when i launch it i have a error configuration files
i have this error .
http://prntscr.com/c7fqxw
I edited my config with json editor online and i have no error . String are good .
I haven't dupliacate keyx i don't understand .
this is my config
{
"auth_service": "google",
"username": "txxxxxxl.com",
"password": "xxxxxx",
"location": "-33.870034, 151.207964",
"gmapkey": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"encrypt_location": "",
"websocket_server": false,
"heartbeat_threshold": 10,
"tasks": [
{
"type": "HandleSoftBan"
},
{
"type": "SleepSchedule",
"config": {
"enabled": false,
"time": "22:54",
"duration":"7:46",
"time_random_offset": "00:24",
"duration_random_offset": "00:43"
}
},
{
"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": ""
}
},
{
"type": "CollectLevelUpReward"
},
{
"type": "IncubateEggs",
"config": {
"longer_eggs_first": true
}
},
{
"type": "UpdateLiveStats",
"config": {
"enabled": false,
"min_interval": 10,
"stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
"terminal_log": true,
"terminal_title": true
}
},
{
"type": "TransferPokemon",
"config": {
"transfer_wait_min": 1,
"transfer_wait_max": 4
}
},
{
"type": "NicknamePokemon",
"config": {
"enabled": false,
"nickname_template": "{iv_pct}_{iv_ads}"
}
},
{
"type": "EvolvePokemon",
"config": {
"evolve_all": "none",
"first_evolve_by": "cp",
"evolve_above_cp": 600,
"evolve_above_iv": 0.9,
"logic": "or",
"evolve_speed": 20,
"use_lucky_egg": false
}
},
{
"type": "RecycleItems",
"config": {
"min_empty_space": 15,
"max_balls_keep": 200,
"max_potions_keep": 50,
"max_berries_keep": 40,
"max_revives_keep": 40,
"item_filter": {
"Pokeball": { "keep" : 75 },
"Greatball": { "keep" : 75 },
"Ultraball": { "keep" : 75 },
"Masterball": { "keep" : 75 },
"Potion": { "keep" : 0 },
"Super Potion": { "keep" : 0 },
"Hyper Potion": { "keep" : 10 },
"Max Potion": { "keep" : 0 },
"Revive": { "keep" : 10 },
"Max Revive": { "keep" : 0 },
"Lucky Egg": { "keep" : 100 },
"Incense": { "keep" : 100 },
"Spicy Incense": { "keep" : 100 },
"Cool Incense": { "keep" : 100 },
"Floral Incense": { "keep" : 100 },
"Troy Disk": { "keep" : 90 },
"X Attack": { "keep" : 90 },
"X Defense": { "keep" : 90 },
"X Miracle": { "keep" : 90 },
"Razz Berry": { "keep" : 50 },
"Bluk Berry": { "keep" : 50 },
"Nanab Berry": { "keep" : 50 },
"Wepar Berry": { "keep" : 50 },
"Pinap Berry": { "keep" : 50 },
"Special Camera": { "keep" : 100 },
"Incubator (Unlimited)": { "keep" : 100 },
"Incubator": { "keep" : 100 },
"Pokemon Storage Upgrade": { "keep" : 100 },
"Item Storage Upgrade": { "keep" : 100 }
},
"recycle_wait_min": 1,
"recycle_wait_max": 4
}
},
{
"type": "CatchPokemon",
"config": {
"catch_visible_pokemon": true,
"catch_lured_pokemon": true,
"min_ultraball_to_keep": 5,
"catch_throw_parameters": {
"excellent_rate": 0.1,
"great_rate": 0.5,
"nice_rate": 0.3,
"normal_rate": 0.1,
"spin_success_rate" : 0.6
},
"catch_simulation": {
"flee_count": 3,
"flee_duration": 2,
"catch_wait_min": 2,
"catch_wait_max": 6,
"berry_wait_min": 2,
"berry_wait_max": 3,
"changeball_wait_min": 2,
"changeball_wait_max": 3
}
}
},
{
"type": "SpinFort",
"config": {
"spin_wait_min": 2,
"spin_wait_max": 3
}
},
{
"type": "MoveToMapPokemon",
"config": {
"address": "http://1xxxxxxxxxxxxx0/",
"max_distance": 500,
"min_ball": 50,
"prioritize_vips": true,
"snipe": true,
"snipe_high_prio_only": true,
"snipe_high_prio_threshold": 400,
"update_map": true,
"mode": "priority",
"map_path": "raw_data",
"catch": {
"==========Legendaries==========": 0,
"Aerodactyl": 1000,
"Snorlax": 1000,
"Articuno": 1000,
"Zapdos": 1000,
"Moltres": 1000,
"Dratini": 1000,
"Dragonair": 1000,
"Dragonite": 1000,
"Mewtwo": 1000,
"Mew": 1000,
}
have you got an idea please
thanks
The text was updated successfully, but these errors were encountered: