-
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
Bot crashes if "enable_social": false, #4670
Comments
Looks like if social is disabled, we don't set mqtt_pokemon_list and move_to_map_pokemon just assumes it is set. |
what does this social do by the way? |
Crowdsourcing pokemon data. |
which branch? I'm cloning both going to do some testing to see, I think what will be done is we will only allow users who use the social feature to view the map and normal users will just be locked out, this way it's fair to everyone. |
I can't test right now. Please give the PR a go. |
Expected Behavior
social should be turned off
Actual Behavior
Bot crashes
bot runs without any problems if "enable_social": true,
Your FULL config.json (remove your username, password, gmapkey and any other private info)
{
"auth_service": "ptc",
"username": "",
"password": "",
"location": "",
"gmapkey": "",
"websocket_server": false,
"heartbeat_threshold": 10,
"enable_social": false,
"tasks": [
{
"type": "HandleSoftBan"
},
{
"type": "SleepSchedule",
"config": {
"enabled": true,
"time": "22:54",
"duration":"7:46",
"time_random_offset": "00:24",
"duration_random_offset": "00:43"
}
},
],
"map_object_cache_time": 5,
"forts": {
"avoid_circles": true,
"max_circle_size": 50,
"cache_recent_forts": true
},
"walk_min": 13,
"walk_max": 23,
"alt_min": 500,
"alt_max": 1000,
"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,
"action_wait_min": 1,
"action_wait_max": 5,
"debug": false,
"test": false,
"health_record": false,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 1,
"daily_catch_limit": 800,
"logging_color": true,
"catch_randomize_reticle_factor": 1.0,
"catch_randomize_spin_factor": 1.0,
"catch_throw_parameters": {
"excellent_rate": 0.7,
"great_rate": 0.5,
"nice_rate": 0.3,
"normal_rate": 0.1,
"spin_success_rate" : 0.8
},
"catch": {
"any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or" },
},
"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": {},
}
}
Output when issue occurred
Traceback (most recent call last):
File "pokecli.py", line 703, in
main()
File "pokecli.py", line 118, in main
bot.tick()
File "/home/beltoft/PokemonGo-Bot/pokemongo_bot/init.py", line 568, in tick
if worker.work() == WorkerResult.RUNNING:
File "/home/beltoft/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 292, in work
pokemon_list = self.get_pokemon_from_social()
File "/home/beltoft/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 105, in get_pokemon_from_social
if not self.bot.mqtt_pokemon_list or len(self.bot.mqtt_pokemon_list) <= 0:
AttributeError: 'PokemonGoBot' object has no attribute 'mqtt_pokemon_list'
Wed Aug 24 13:22:27 CEST 2016 Pokebot Stopped.
Steps to Reproduce
set "enable_social": true
to
"enable_social": false
Other Information
OS:
ubuntu 14.04 LTS
Branch:
newest dev
The text was updated successfully, but these errors were encountered: