PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

On Linux, web/location-xxx.json sometimes doesn't update.

Open bluryi opened this issue 10 years ago • 2 comments

Expected Behavior

web/location-xxx.json gets updated when the bot is running.

Actual Behavior

dev build.

On Linux, web/location-xxx.json sometimes doesn't update. I have tried UB1404 and Centos 7. web/inventory-xxx.json updates without any problem. Thus, the webui can't show Bot path.

Your config.json (remove your credentials and any other private info)

# cat configs/config.json
{
    "auth_service": "ptc",
    "username": "xxx",
    "password": "xxx",
    "location": "xxx",
    "gmapkey": "xxx",
    "libencrypt_location": "",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolvePokemon",
        "config": {
            "evolve_all": "Pidgey,Rattata,Weedle,Zubat,Spearow,Paras,Psyduck,Goldeen,Caterpie",
            "first_evolve_by": "cp",
            "evolve_above_cp": 1000,
            "evolve_above_iv": 1,
            "logic": "or",
            "evolve_speed": 25,
            "use_lucky_egg": false
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "min_empty_space": 15,
          "item_filter": {
            "Pokeball":       { "keep" : 50 },
            "Greatball":       { "keep" : 50 },
            "Ultraball":       { "keep" : 50 },
            "Potion":         { "keep" : 0 },
            "Super Potion":   { "keep" : 0 },
            "Hyper Potion":   { "keep" : 20 },
            "Revive":         { "keep" : 20 },
            "Razz Berry":     { "keep" : 20 }
          }
        }
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort",
        "config": {
            "lure_attraction": true,
            "lure_max_distance": 2000
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "diameter": 1,
          "step_size": 76
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50
    },
    "websocket_server": false,
    "walk": 4.66,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "evolve_captured": "NONE",
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "any": {"keep_best_cp": 1, "keep_best_iv": 20},
      "Pidgey": {"keep_best_cp": 20},
      "Pidgeotto": {"always_release": true},
      "Pidgeot": {"always_release": true},
      "Raticate": {"always_release": true},
      "Fearow": {"always_release": true},
      "Golbat": {"always_release": true},
      "Zubat": {"keep_best_iv": 10},
      "Metapod": {"always_release": true},
      "Kakuna": {"always_release": true},
      "Tentacool": {"keep_best_iv": 1},
      "Psyduck": {"keep_best_iv": 3},
      "Golduck": {"keep_best_iv": 3},
      "Arbok": {"always_release": true},
      "Ekans": {"keep_best_iv": 1},
      "// 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 stronger (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// any": {"keep_best_iv": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
    },
    "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": {}

    }
}

Steps to Reproduce

Check out deb build -> install -> config -> run -> 'ls -l web/'

Other Information

OS: CentOS 7 Git Commit: 78649ae81b2201250f0aa48157ae556712f39bde Python Version: 2.7.5

bluryi avatar Aug 11 '16 18:08 bluryi

duplicate : #3546

p1n9 avatar Aug 11 '16 19:08 p1n9

Thanks for pointing me out. Closing...

bluryi avatar Aug 11 '16 19:08 bluryi