PokemonGoF / PokemonGo-Bot

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

{Not Working }feat: optimizations to get more experience per hour ( 84k XP/H ) #2491 #2727

Closed w0rd3r closed 8 years ago

w0rd3r commented 8 years ago

Expected Behavior

https://github.com/PokemonGoF/PokemonGo-Bot/pull/2491

Actual Behavior

Doesn't work

Steps to Reproduce

Other Information

OS: macOS Git Commit: #2491 Python Version: (run 'python -V' and paste it here) [11:36:01] Starting PokemonGo Bot.... [11:36:01] Uptime : 0:00:03 | 0.00km walked | Level 28 (269,255 / 550,000, 48%) | +0 XP | 0 XP/m | Visited 0.00 /m | Caught 0.00 /m | Evolved 0.00 /m [11:36:02] Current egg hatches in 1.72 km [11:36:02] can't find a nearby fort to walk to [11:36:02] Waiting 3.47... [11:36:06] can't find a nearby fort to walk to [11:36:06] Waiting 5.00... [11:36:11] can't find a nearby fort to walk to [11:36:11] Waiting 5.00... [11:36:16] can't find a nearby fort to walk to [11:36:16] Waiting 5.00...

fari-99 commented 8 years ago

there is some adjustment for that config. i try it and it's working fine.

2016-08-07 16:51:58,709 [ cli] [INFO] Ran for 0:02:05 2016-08-07 16:51:58,709 [ cli] [INFO] Total XP Earned: 2880 Average: 83004.43/h 2016-08-07 16:51:58,709 [ cli] [INFO] Travelled 0.00km 2016-08-07 16:51:58,709 [ cli] [INFO] Visited 4 stops 2016-08-07 16:51:58,709 [ cli] [INFO] Encountered 8 pokemon, 8 caught, 0 released, 2 evolved, 0 never seen before 2016-08-07 16:51:58,709 [ cli] [INFO] Threw 9 pokeballs 2016-08-07 16:51:58,709 [ cli] [INFO] Earned 800 Stardust 2016-08-07 16:51:58,709 [ cli] [INFO] 2016-08-07 16:51:58,709 [ cli] [INFO] Highest CP Pokemon: Ekans [CP: 419] [IV: 11/13/3] Potential: 0.6 2016-08-07 16:51:58,709 [ cli] [INFO] Most Perfect Pokemon: Meowth [CP: 112] [IV: 10/13/5] Potential: 0.62

here's the config i used

{ "auth_service": "google", "username": "[REDACTED]", "password": "[REDACTED]", "location": "34.008226484,-118.498858725", "gmapkey": "[REDACTED]", "tasks": [ { "type": "HandleSoftBan" }, { "type": "RecycleItems", "config": { "item_filter": { "Pokeball": { "keep" : 50 }, "Greatball": { "keep" : 70 }, "Ultraball": { "keep" : 80 }, "Potion": { "keep" : 0 }, "Super Potion": { "keep" : 0 }, "Hyper Potion": { "keep" : 0 }, "Revive": { "keep" : 0 }, "Max Revive": { "keep" : 0}, "Razz Berry": { "keep" : 50 } } } }, { "type": "CollectLevelUpReward" }, { "type": "IncubateEggs", "config": { "longer_eggs_first": true } }, { "type": "CatchVisiblePokemon" }, { "type": "CatchLuredPokemon" }, { "type": "TransferPokemon" }, { "type": "SpinFort" }, { "type": "MoveToFort", "config": { "lure_attraction": true, "lure_max_distance": 2000 } } ], "map_object_cache_time": 5, "forts": { "avoid_circles": true, "max_circle_size": 50 }, "websocket_server": false, "walk": 20, "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": "Pidgey,Rattata,Zubat,Weedle,Drowzee,Spearow,Venonat,Caterpie,Krabby,Paras,Jigglypuff,Sandshrew,Vulpix,Meowth,Psyduck,Mankey,Tentacool,Ponyta,Slowpoke,Magnemite,Doduo,Seel,Voltorb,Horsea,Goldeen,Staryu,Ekans", "catch_randomize_reticle_factor": 1.0, "catch_randomize_spin_factor": 1.0, "catch": { "any": { "catch_above_cp": 0, "catch_above_iv": 0, "logic": "or" } }, "release": {}, "vips" : { "any": { "catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" }, "Lapras": {}, "Moltres": {}, "Zapdos": {}, "Articuno": {}, "Mewtwo": {}, "Dragonite": {}, "Snorlax": {}, "Mew": {}, "Arcanine": {}, "Vaporeon": {}, "Gyarados": {}, "Exeggutor": {}, "Muk": {}, "Weezing": {}, "Flareon": {} } }

w0rd3r commented 8 years ago

Thanks for the config.json @fari-99 but here is what I have with your config :

Starting PokemonGo Bot.... [11:56:25] -30 Pokeball (keeps only 50 maximum) [11:56:27] Current egg hatches in 0.73 km [11:56:27] can't find a nearby fort to walk to [11:56:27] Waiting 1.89... [11:56:30] can't find a nearby fort to walk to [11:56:30] Waiting 5.00... [11:56:35] can't find a nearby fort to walk to [11:56:35] Waiting 5.00...

When you say there is some adjustments, did you mean besides the config.json file?

tomalbrc commented 8 years ago

checkout the dev branch

fari-99 commented 8 years ago

@tomalbrc yes, please check dev branch, and git pull for update commit / PR.

w0rd3r commented 8 years ago

I'm on the dev branch already, git clone --recursive -b dev https://github.com/PokemonGoF/PokemonGo-Bot

And if I now try this : $ git clone https://github.com/PokemonGoF/PokemonGo-Bot $ cd PokemonGo-Bot $ git fetch origin pull/2491/head:more-is-better $ git checkout more-is-better $ virtualenv . $ source bin/activate $ pip install -r requirements.txt

It just won't work, always "can't find a nearby fort to walk to"

The DEV branch has stats like this so maybe it's all good: [INFO] Ran for 0:02:44 [INFO] Total XP Earned: 2750 Average: 60374.02/h

fari-99 commented 8 years ago

@w0rd3r well I don't know what happened but 60k is nice, btw location is important too.

leadboots5 commented 8 years ago

changes which were never merged will not work for obvious reasons. I believe this one was not merged as it was too large and needed to be broken down.