PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.87k stars 1.54k forks source link

[Calculation Bug?] UpdateLiveStats showing a huge and unknown amount of earned EXP #4776

Closed lucas7bm closed 8 years ago

lucas7bm commented 8 years ago

Well, I updated the bot earlier today and it's working well, but something strange happened, and I don't know if it's a bug or something else. It doesn't matter how many times I restart the bot, it keeps showing a huge amount of earned EXP. Apparently, the bot is assuming that the total PokeStops that I've visited is the amount that I've visited in the uptime. But the EXP simply came from nowhere, since I have less than 300k in total (I'm lvl 21). I didn't find anything in the issue section, so maybe this post will help in any way.

Expected Behavior

A normal amount of XP per hour.

Actual Behavior

The bot is showing a huge amount of gained experience, but it was started just 2 minutes before that.

Your FULL config.json (remove your username, password, gmapkey and any other private info)

"tasks": [
  {
    "//NOTE: This task MUST be placed on the top of task list": {},
    "type": "RandomAlivePause",
    "config": {
      "enabled": true,
      "min_duration": "00:00:10",
      "max_duration": "00:10:00",
      "min_interval": "00:05:00",
      "max_interval": "01:30:00"
    }
  },
  {
    "type": "HandleSoftBan"
  },
  {
    "type": "SleepSchedule",
    "config": {
      "enabled": false,
      "time": "22:54",
      "duration":"7:46",
      "time_random_offset": "00:24",
      "duration_random_offset": "00:43"
    }
  },
  {
    "type": "CollectLevelUpReward"
  },
  {
    "type": "IncubateEggs",
    "config": {
      "enabled" : true,
      "longer_eggs_first": true,
      "min_interval": 120
    }
  },
  {
    "type": "UpdateLiveStats",
    "config": {
      "enabled": true,
      "min_interval": 120,
      "stats": ["uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
      "terminal_log": true,
      "terminal_title": true
    }
  },
  {
    "type": "UpdateLiveInventory",
    "config": {
      "enabled": true,
      "min_interval": 120,
      "show_all_multiple_lines": false,
      "items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
    }
  },
  {
    "type": "TransferPokemon",
    "config": {
      "enabled": true,
      "min_free_slot": 5,
      "transfer_wait_min": 1,
      "transfer_wait_max": 4
    }
  },
  {
    "type": "NicknamePokemon",
    "config": {
      "enabled": true,
      "dont_nickname_favorite": true,
      "nickname_template": "{iv_pct}_{iv_ads}"
    }
  },
  {
    "type": "RecycleItems",
    "config": {
      "enabled": true,
      "min_empty_space": 15,
      "item_filter": {
        "Pokeball":       { "keep" : 100 },
        "Greatball":      { "keep" : 50 },
        "Potion":         { "keep" : 10 },
        "Super Potion":   { "keep" : 20 },
        "Hyper Potion":   { "keep" : 30 },
        "Revive":         { "keep" : 30 },
        "Razz Berry":     { "keep" : 50 }
      }
    }
  },
  {
    "type": "MoveToMapPokemon",
    "config": {
      "enabled": true,
      "address": "http://localhost:5000",
      "max_distance": 2000,
      "min_ball": 50,
      "prioritize_vips": true,
      "snipe": false,
      "snipe_high_prio_only": false,
      "snipe_high_prio_threshold": 400,
      "update_map": true,
      "mode": "priority",
      "map_path": "raw_data",
      "walker": "StepWalker",
      "max_extra_dist_fort": 10,
      "catch": {
        "==========Legendaries==========": 0,
        "Aerodactyl": 1000,
        "Snorlax": 1000,
        "Articuno": 1000,
        "Zapdos": 1000,
        "Moltres": 1000,
        "Dratini": 1000,
        "Dragonair": 1000,
        "Dragonite": 1000,
        "Mewtwo": 1000,
        "Mew": 1000,

        "==========Region Locked==========": 0,
        "Farfetch'd": 1000,
        "Kangaskhan": 1000,
        "Mr. Mime": 1000,
        "Tauros": 1000,

        "==========Very Rare==========": 0,
        "Lapras": 900,
        "Electabuzz": 900,
        "Magmar": 900,
        "Ditto": 900,

        "==========Starters==========": 0,
        "Bulbasaur": 400,
        "Ivysaur": 600,
        "Venusaur": 1000,

        "Charmander": 400,
        "Charmeleon": 600,
        "Charizard": 1000,

        "Squirtle": 400,
        "Wartortle": 600,
        "Blastoise": 1000,

        "Pikachu": 600,
        "Raichu": 1000,

        "==========Semi Rare==========": 0,
        "Porygon": 200,
        "Scyther": 200,
        "Jynx": 200,

        "==========Uncommon==========": 0,

        "Omanyte": 150,
        "Omastar": 500,

        "Seel": 300,
        "Dewgong": 500,

        "Grimer": 200,
        "Muk": 500,

        "Shellder": 200,
        "Cloyster": 500,

        "Gastly": 200,
        "Haunter": 500,
        "Gengar": 1000,

        "Onix": 600,

        "Drowzee": 600,

        "Hypno": 600,

        "Vulpix": 200,
        "Ninetales": 600,

        "Paras": 100,
        "Parasect": 500,

        "Growlithe": 200,
        "Arcanine": 700,

        "Tentacool": 200,
        "Tentacruel": 500,

        "Mankey": 150,
        "Primeape": 500,

        "Clefairy": 150,
        "Clefable": 500,

        "Jigglypuff": 150,
        "Wigglytuff": 500,

        "Venonat": 100,
        "Venomoth": 500,

        "Diglett": 200,
        "Dugtrio": 500,

        "Meowth": 250,
        "Persian": 500,

        "Psyduck": 150,
        "Golduck": 500,

        "Geodude": 100,
        "Graveler": 500,
        "Golem": 800,

        "Eevee": 200,
        "Vaporeon": 800,
        "Jolteon": 800,
        "Flareon": 800,

        "Kabuto": 150,
        "Kabutops": 500,

        "Magikarp": 150,
        "Gyarados": 800,

        "Pinsir": 150,

        "Ponyta": 200,
        "Rapidash": 500,

        "Slowpoke": 200,
        "Slowbro": 500,

        "Magnemite": 250,
        "Magneton": 500,

        "Krabby": 100,
        "Kingler": 500,

        "Voltorb": 200,
        "Electrode": 500,

        "Exeggcute": 250,
        "Exeggcutor": 500,

        "Cubone": 300,
        "Marowak": 800,

        "Hitmonlee": 400,

        "Hitmonchan": 400,

        "Lickitung": 500,

        "Koffing": 200,
        "Weezing": 500,

        "Rhyhorn": 200,
        "Rhydon": 500,

        "Chansey": 800,

        "Tangela": 300,

        "Horsea": 200,
        "Seadra": 600,

        "Goldeen": 150,
        "Seaking": 500,

        "Staryu": 200,
        "Starmie": 800,

        "==========T1 Evolvers==========": 0,
        "Caterpie": 10,
        "Metapod": 10,
        "Butterfree": 500,

        "Weedle": 10,
        "Kakuna": 10,
        "Beedrill": 500,

        "Pidgey": 10,
        "Pidgeotto": 10,
        "Pidgeot": 300,

        "==========T2 Evolvers==========": 0,
        "Nidoran F": 10,
        "Nidorina": 10,
        "Nidoqueen": 10,

        "Nidoran M": 10,
        "Nidorino": 10,
        "Nidoking": 10,

        "Oddish": 100,
        "Gloom": 200,
        "Vileplume": 600,

        "Poliwag": 200,
        "Poliwhirl": 400,
        "Poliwrath": 800,

        "Abra": 300,
        "Kadabra": 600,
        "Alakazam": 800,

        "Machop": 150,
        "Machoke": 400,
        "Machamp": 800,

        "Bellsprout": 100,
        "Weepinbell": 400,
        "Victreebel": 800,

        "==========Trash==========": 0,

        "Rattata": 10,
        "Raticate": 10,

        "Spearow": 10,
        "Fearow": 10,

        "Ekans": 10,
        "Arbok": 10,

        "Sandshrew": 10,
        "Sandslash": 10,

        "Zubat": 10,
        "Golbat": 10,

        "Doduo": 10,
        "Dodrio": 10
      }
    }
  },
  {
    "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,
      "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
                  }
    }
  },
  {
    "type": "MoveToFort",
    "config": {
      "enabled": true,
      "lure_attraction": true,
      "lure_max_distance": 2000,
      "walker": "StepWalker"
    }
  },
  {
    "type": "SpinFort",
    "config": {
      "enabled": true,
      "spin_wait_min": 3,
      "spin_wait_max": 5
    }
  },
  {
    "type": "FollowPath",
    "config": {
      "enabled": true,
      "walker": "StepWalker",
      "path_mode": "loop",
      "path_start_mode": "closest",
      "path_file": "configs/path.json",
      "number_lap": 10,
      "timer_restart_min": "00:10:00",
      "timer_restart_max": "00:20:00"
    }
  }
]

Output when issue occurred

2016-08-26 13:30:50,259 [PokemonGoBot] [INFO] [bot_start] Starting bot... 2016-08-26 13:30:51,073 [CollectLevelUpReward] [INFO] [level_up_reward] Received level up reward: [] 2016-08-26 13:30:51,553 [IncubateEggs] [INFO] [next_egg_incubates] Eggs incubating: [0.44/2.0 km](Eggs left: 3, Incubating: 1) 2016-08-26 13:30:53,122 [UpdateLiveStats] [INFO] [log_stats] Uptime : 0:00:13 | Earned 16,043 Stardust | +279,484 XP | 77,457,929 XP/h | Visited 494 stops 2016-08-26 13:30:53,123 [UpdateLiveInventory] [INFO] [show_inventory] Pokemon: 195/250 | Items: 338/350 | Pokeballs: 92 | GreatBalls: 15 | UltraBalls: 25 | RazzBerries: 62 | LuckyEgg: 0 2016-08-26 13:30:56,565 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Gloom renamed to 091_15/11/15 2016-08-26 13:30:58,349 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Graveler renamed to 084_12/14/12 2016-08-26 13:31:00,005 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Zubat renamed to 084_10/14/14 2016-08-26 13:31:01,735 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Venomoth renamed to 084_13/12/13 2016-08-26 13:31:03,079 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Pidgeotto renamed to 080_10/14/12 2016-08-26 13:31:04,466 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Kadabra renamed to 089_15/10/15 2016-08-26 13:31:06,224 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Abra renamed to 082_12/10/15 2016-08-26 13:31:07,835 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Voltorb renamed to 071_10/10/12 2016-08-26 13:31:09,582 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Bulbasaur renamed to 093_14/13/15 2016-08-26 13:31:10,958 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Vaporeon renamed to 069_11/10/10 2016-08-26 13:31:12,840 [NicknamePokemon] [INFO] [rename_pokemon] Pokemon Nidorina renamed to 071_11/10/11 2016-08-26 13:31:16,484 [ItemRecycler] [INFO] [item_discarded] Discarded 12x Potion. 2016-08-26 13:31:20,130 [ItemRecycler] [INFO] [item_discarded] Discarded 3x Super Potion. 2016-08-26 13:31:22,489 [ItemRecycler] [INFO] [item_discarded] Discarded 10x Hyper Potion. 2016-08-26 13:31:26,518 [ItemRecycler] [INFO] [item_discarded] Discarded 15x Revive. 2016-08-26 13:31:30,797 [ItemRecycler] [INFO] [item_discarded] Discarded 12x Razz Berry. 2016-08-26 13:31:31,227 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Pidgey appeared! [CP 157] [NCP 0.23] [Potential 0.36] [A/D/S 2/5/9] 2016-08-26 13:31:38,588 [PokemonCatchWorker] [INFO] [threw_pokeball] OK Curveball throw! Used Pokeball, with chance 47.34 (91 left) 2016-08-26 13:31:38,923 [PokemonCatchWorker] [INFO] [pokemon_capture_failed] Pokeball thrown to Pidgey missed.. trying again! 2016-08-26 13:31:48,024 [PokemonCatchWorker] [INFO] [threw_pokeball] Nice Curveball throw! Used Pokeball, with chance 47.34 (90 left) 2016-08-26 13:31:48,340 [PokemonCatchWorker] [INFO] [pokemon_vanished] Pidgey vanished! 2016-08-26 13:31:54,707 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_move_towards] Moving towards Pidgey, 0.03km, left (9 minutes, 38 seconds) 2016-08-26 13:31:56,166 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_encounter] Encountered Pokemon: Pidgey 2016-08-26 13:31:56,436 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-26 13:31:56,777 [ SpinFort] [INFO] [spun_pokestop] Spun pokestop Igreja Evangelha Transcultural. Experience awarded: 50. Items awarded: {u'Potion': 1, u'Pokeball': 2} 2016-08-26 13:32:02,119 [FollowPath] [INFO] [position_update] Walking from (-21.422274924161673, -45.948665979218156, 66.51585006895547) to (-21.42223, -45.94761, 8.0), distance left: (109.421590961 m) .. 2016-08-26 13:32:50,669 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Unifal - 0.12km 2016-08-26 13:32:52,840 [IncubateEggs] [INFO] [next_egg_incubates] Eggs incubating: [0.45/2.0 km](Eggs left: 3, Incubating: 1) 2016-08-26 13:32:52,870 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Unifal - 0.11km 2016-08-26 13:32:56,582 [UpdateLiveStats] [INFO] [log_stats] Uptime : 0:02:16 | Earned 16,043 Stardust | +279,559 XP | 7,391,385 XP/h | Visited 495 stops 2016-08-26 13:32:56,583 [UpdateLiveInventory] [INFO] [show_inventory] Pokemon: 195/250 | Items: 287/350 | Pokeballs: 92 | GreatBalls: 15 | UltraBalls: 25 | RazzBerries: 50 | LuckyEgg: 0 2016-08-26 13:33:41,201 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Unifal - 0.04km 2016-08-26 13:33:43,433 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-26 13:33:43,815 [ SpinFort] [INFO] [spun_pokestop] Spun pokestop Unifal. Experience awarded: 50. Items awarded: {u'Razz Berry': 1, u'Pokeball': 1, u'Revive': 1} 2016-08-26 13:33:48,028 [FollowPath] [INFO] [position_update] Walking from (-21.420920282640978, -45.94859186031262, 622.4240370748821) to (-21.42223, -45.94761, 8.0), distance left: (177.592402142 m) .. 2016-08-26 13:33:58,045 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Unifal - 0.07km

Steps to Reproduce

Just start the bot, I guess.

Other Information

OS: Linux Mint Branch: dev Git Commit: 08c4ea1f8993135d96d10513e8a78d4e7126f818 Python Version: 2.7.6

mjmadsen commented 8 years ago

@k4n30 looks like you were right. :(

@lucas7bm Could you show me what it prints for your account details when you log in (level, current exp, etc)?

mjmadsen commented 8 years ago

Please bring conversation to #4758

lucas7bm commented 8 years ago

@mjmadsen I'm not at home right now, but I'll send the account details soon.

mjmadsen commented 8 years ago

@lucas7bm I reverted the changes causing the problem. Should be fine now (in dev branch).

lucas7bm commented 8 years ago

@mjmadsen Oh, I see, thank you! I'll be updating soon.