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

Any Way to Remove the Pauses/Sleeps?

Open ThunderVamp9 opened this issue 10 years ago • 6 comments

Expected Behavior

Prior to API update, I had a path that my bot would follow. A single loop of this path would take approximately 6.5 hours. Fairly intricate, but followed sidewalks, etc. The timing was fairly close to what it would actually take to walk the route. Expected behavior is that the bot should still be able to complete this route in a reasonable amount of time compared to a human.

Actual Behavior

The bot takes MUCH longer than previously. For example, I started it on the route this morning at about 9:30 AM. It is currently 10:10 PM and it still hasn't completed a single loop, judging by its position and the time it's taking, I'd estimate it will be a minimum of 2-3 hours longer to complete the loop. That's almost 16 hours, compared to the original 6.5. I watched the log, and at one point, it took the bot 10 minutes to walk 0.11km. No encounters in that time, and only a single pokestop.

I notice that it seems to stop a LOT. It's no longer a steady walk like it used to be. It's like it's stopped more than its walking. I'm assuming there is a command somewhere telling it to pause in an attempt to mimic a person walking, but it seems to have gone overboard.

Edit: It took 1.5 hours longer, finishing with a time of 14:09:13 A human walking the same distance along the same route at an easy speed of about 3 MPH could do it in about 7.5 hours, so it is definitely going way slower than it should be.

Steps to Reproduce

Load up a path and watch it walk/don't walk.

Other Information

OS: Ubuntu 16.04 Git Commit: 5b3fe3d187b6b5fdfdede00f064bf7bcbd5a484d Python Version: 2.7.12

ThunderVamp9 avatar Aug 12 '16 02:08 ThunderVamp9

Please post your full config with private data removed (username, pass, gmapkey) including path

k4n30 avatar Aug 12 '16 03:08 k4n30

I do not know the implications of this, but you can find these pauses in the code. Could you just attempt to comment them? They are there to emulate official client behavior.

smfbrooks avatar Aug 12 '16 04:08 smfbrooks

This is the config file being used:

`{ "auth_service": "google", "username": "xxxxx", "password": "xxxxx", "location": "xxxxx", "gmapkey": "xxxxx", "tasks": [ { "type": "HandleSoftBan" }, { "type": "CollectLevelUpReward" }, { "type": "IncubateEggs", "config": { "longer_eggs_first": true } }, { "type": "TransferPokemon" }, { "type": "EvolvePokemon", "config": { "evolve_all": "none", "first_evolve_by": "cp", "evolve_above_cp": 500, "evolve_above_iv": 0.8, "logic": "or", "evolve_speed": 20, "use_lucky_egg": false } }, { "type": "RecycleItems", "config": { "item_filter": { "Pokeball": { "keep" : 300 }, "Greatball": { "keep" : 200 }, "Ultraball": { "keep" : 180 }, "Potion": { "keep" : 10 }, "Super Potion": { "keep" : 20 }, "Hyper Potion": { "keep" : 30 }, "Max Potion": { "keep" : 30 }, "Revive": { "keep" : 30 }, "Razz Berry": { "keep" : 50 } } } }, { "type": "CatchVisiblePokemon" }, { "type": "CatchLuredPokemon" }, { "type": "SpinFort" }, { "type": "FollowPath", "config": { "path_mode": "loop", "path_file": "configs/full-portland-tour.gpx" } } ], "map_object_cache_time": 5, "forts": { "avoid_circles": true, "max_circle_size": 50 }, "websocket_server": false, "walk": 8.16, "action_wait_min": 1, "action_wait_max": 4, "debug": false, "test": false, "health_record": true, "location_cache": false, "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": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"}, "// 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": {}

}

}`

This is the GPX file being used for the route:

full-portland-tour.txt

.GPX file renamed to TXT for attaching

ThunderVamp9 avatar Aug 12 '16 04:08 ThunderVamp9

"I do not know the implications of this, but you can find these pauses in the code. Could you just attempt to comment them? They are there to emulate official client behavior."

They may be there to emulate official client behavior, but something is off with them. As I said, the route followed by a human playing should be able to complete it in 6.5 - 7 hours. 8 tops. And the bot used to match this time. Now, though, this took over 14 hours. That indicates something is wrong with it somewhere.

ThunderVamp9 avatar Aug 12 '16 04:08 ThunderVamp9

@ThunderVamp9 can you report how you route goes now on the latest version? Your original request to remove the sleeps and pauses will not be fulfilled, but a lot of randomisation and sleeping has changed since this original request to be more human like and avoid hard and soft bans.

How would you like to proceed with this issue?

k4n30 avatar Aug 16 '16 12:08 k4n30

Please test with new dev. Lots has changed. Create a new issue with logs if problem seems to be persisting.

mjmadsen avatar Aug 20 '16 16:08 mjmadsen