jekirl / poketrainer

The original Pokemon Go bot
Other
120 stars 58 forks source link

Inventory Management (pokemon & items) #438

Open cod3b0t opened 8 years ago

cod3b0t commented 8 years ago

i have tried this config file in both master / develop branch but none seem to clear my inventory....

this is my current config file

{
  "accounts": [
    {
      "auth_service": "ptc",
      "username": "88888",
      "password": "88888",
      "location": "88888, IL",
      "GMAPS_API_KEY": "8888-8888",
      "BEHAVIOR": {
        "USE_GOOGLE": true,
        "STEP_SIZE": 10,
        "WANDER_STEPS": 3,
        "EXPERIMENTAL": true,
        "SKIP_VISITED_FORT_DURATION": 500,
        "SPIN_ALL_FORTS": false,
        "STAY_WITHIN_PROXIMITY": 9999,
        "AUTO_USE_LUCKY_EGG": false,
        "EXTRA_WAIT" : 0.01,
        "SLEEP_MULT" : 1.0
      },
      "CAPTURE": {
        "CATCH_POKEMON": true,
        "IDEAL_CAPTURE_PERCENT": 85,
        "MIN_FAILED_ATTEMPTS_BEFORE_USING_BERRY": 1,
        "MAX_CATCH_ATTEMPTS": 10
      },
      "EGG_INCUBATION": {
        "ENABLE": true,
        "USE_DISPOSABLE_INCUBATORS": true,
        "BIG_EGGS_FIRST": true
      },
      "POKEMON_EVOLUTION": {
        "PIDGEY": 12,
        "WEEDLE": 12,
        "CATERPIE": 12,
        "RATTATA": 25,
        "DIGLETT": 50,
        "MEOWTH": 50,
        "PSYDUCK": 50,
      },
      "POKEMON_CLEANUP": {
        "MIN_SIMILAR_POKEMON": 1,
        "MAX_SIMILAR_POKEMON": 999,
        "KEEP_POKEMON_NAMES": ["MEWTWO","MEW","MOLTRES","ARTICUNO","ZAPDOS","SNORLAX","LAPRAS","DRAGONITE","VAPOREON","SLOWBRO","GOLEM","MUK","EXEGGUTOR","CHARIZARD","VENUSAUR","BLASTOISE","GYARADOS","GOLEM","NIDOQUEEN","POLIWRATH","GOLDUCK"],
        "THROW_POKEMON_NAMES": ["PIDGEOTTO", "PIDGEOT", "PIDGEY", "RATTATA", "RATICATE", "DODUO", "DODRIO", "WEEDLE", "CATERPIE", "VOLTORB", "VENONAT", "ZUBAT"],
        "RELEASE_METHOD": "CLASSIC",
        "RELEASE_METHOD_CLASSIC": {
          "KEEP_CP_OVER": 1000,
          "KEEP_IV_OVER": 95,
          "KEEP_IV_ONLY_WITH_PERCENT_CP": 0,
          "MAX_POKEMON_HIGH_IV": 999
        },
        "RELEASE_METHOD_DUPLICATES": {
          "RELEASE_DUPLICATES_MAX_SCORE": 1000,
          "RELEASE_DUPLICATES_SCALAR": 0.9
        },

        "RELEASE_METHOD_ADVANCED": {
          "ALWAYS_RELEASE_BELOW_LEVEL": 0,
          "KEEP_CP_OVER": 1000,
          "KEEP_IV_OVER": 88,
          "BEST_CP": {
            "MIN_AMOUNT": 2,
            "KEEP_ADDITIONAL_SCALAR": 1.0,
            "MAX_AMOUNT": 10
          },
          "BEST_IV": {
            "MIN_AMOUNT": 2,
            "KEEP_ADDITIONAL_SCALAR": 1.0,
            "MAX_AMOUNT": 10,
            "IGNORE_BELOW": 50
          }
        },
        "SCORE_METHOD": "IV",
        "SCORE_METHOD_FANCY": {
          "WEIGHT_IV": 0.5,
          "WEIGHT_LVL": 0.5
        }
      },
      "MIN_ITEMS": {
        "ITEM_POTION": 5,
        "ITEM_SUPER_POTION": 5,
        "ITEM_HYPER_POTION": 10,
        "ITEM_MAX_POTION": 20,
        "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": {
        "LIST_POKEMON_BEFORE_CLEANUP": true,
        "LIST_INVENTORY_BEFORE_CLEANUP": true
      }
    },
    {
      "auth_service": "ptc",
      "username": "u1",
      "password": "u1",
      "location": "",
      "BEHAVIOR": {
        "USE_GOOGLE": false
      }
    }
  ],
  "defaults": {
      "_info": "copy values to this section to use them for all accounts",
      "_info2": "account settings will always override defaults"
  }
}

In my current config the experimental feature is set to true (it didnt work when set to false either)

and this is my inventory

2016-08-07 12:42:32,717 [    pgoapi] [ INFO] Player Items Before Cleanup: PokeBalls: 16, GreatBalls: 4, MasterBalls: 0, UltraBalls: 0 
 Potion: 111, Super Potion: 38, Max Potion 0, Hyper Potion 6, Lucky Eggs 0, Razz Berries 74
2016-08-07 12:42:32,717 [    pgoapi] [ INFO] Inventory has 352/350 items
2016-08-07 12:42:33,703 [    pgoapi] [ INFO] Player Inventory after cleanup: PokeBalls: 16, GreatBalls: 4, MasterBalls: 0, UltraBalls: 0 
 Potion: 111, Super Potion: 38, Max Potion 0, Hyper Potion 6, Lucky Eggs 0, Razz Berries 74

and this is my pokemon err msg

2016-08-07 12:43:45,428 [    pgoapi] [ INFO] Nearby Pokemon: Staryu
2016-08-07 12:43:46,478 [    pgoapi] [ INFO] Trying initiate catching Pokemon: Type: Staryu CP: 0, IV: 0.00, Lvl: 1.0, LvlWild: 0.0, MaxCP: 20, Score: 0, IV-Norm.: -0
2016-08-07 12:43:47,497 [    pgoapi] [ INFO] Couldn't catch Staryu Your pokemon bag was full, attempting to clear and re-try
2016-08-07 12:43:49,607 [    pgoapi] [ INFO] Trying initiate catching Pokemon: Type: Staryu CP: 0, IV: 0.00, Lvl: 1.0, LvlWild: 0.0, MaxCP: 20, Score: 0, IV-Norm.: -0
2016-08-07 12:43:51,122 [    pgoapi] [ INFO] Couldn't catch Staryu Your pokemon bag was full, attempting to clear and re-try
stolencatkarma commented 8 years ago

I'm not having any problems after a fresh install. I would start over from scratch and start with a whole new config file.

cod3b0t commented 8 years ago

@stolencatkarma yes i did it again in both master / develop branch with unmodified config file (except renaming and account info ofc)

2016-08-07 16:38:45,124 [    pgoapi] [ INFO] Player Items Before Cleanup: PokeBalls: 16, GreatBalls: 4, MasterBalls: 0, UltraBalls: 0 
 Potion: 111, Super Potion: 38, Max Potion 0, Hyper Potion 6, Lucky Eggs 0, Razz Berries 74
2016-08-07 16:38:45,124 [    pgoapi] [ INFO] Inventory has 352/350 items
2016-08-07 16:38:46,106 [    pgoapi] [ INFO] Player Inventory after cleanup: PokeBalls: 16, GreatBalls: 4, MasterBalls: 0, UltraBalls: 0 
 Potion: 111, Super Potion: 38, Max Potion 0, Hyper Potion 6, Lucky Eggs 0, Razz Berries 74

Pokemon bag

2016-08-07 16:38:47,894 [    pgoapi] [ INFO] Nearby Pokemon: Ponyta
2016-08-07 16:38:49,008 [    pgoapi] [ INFO] Trying initiate catching Pokemon: Type: Ponyta CP: 0, IV: 0.00, Lvl: 1.0, LvlWild: 0.0, MaxCP: 36, Score: 0, IV-Norm.: -0
2016-08-07 16:38:50,021 [    pgoapi] [ INFO] Couldn't catch Ponyta Your pokemon bag was full, attempting to clear and re-try
2016-08-07 16:38:51,970 [    pgoapi] [ INFO] Trying initiate catching Pokemon: Type: Ponyta CP: 0, IV: 0.00, Lvl: 1.0, LvlWild: 0.0, MaxCP: 36, Score: 0, IV-Norm.: -0
2016-08-07 16:38:53,008 [    pgoapi] [ INFO] Couldn't catch Ponyta Your pokemon bag was full, attempting to clear and re-try
2016-08-07 16:38:54,107 [    pgoapi] [ INFO] Traveled 240.19 meters of 240.19 of the trip
stolencatkarma commented 8 years ago

Paste the debug info with the -d flag

cod3b0t commented 8 years ago

@stolencatkarma

Inventory cleanup log http://pastebin.com/MC7ZEaxL Pokemon cleanup log http://pastebin.com/Cfh53vTW