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

Looping "Something rustles nearby!" no Pokemon appear

Open kaoztheory opened this issue 10 years ago • 27 comments

Expected Behavior

Pokemon should appear after Something rustles nearby!

Actual Behavior

[2016-07-27 00:22:36] [#] Something rustles nearby! [2016-07-27 00:23:08] [#] Something rustles nearby! [2016-07-27 00:23:41] [#] Something rustles nearby! [2016-07-27 00:24:23] [#] Something rustles nearby! [2016-07-27 00:25:05] [#] Something rustles nearby! [2016-07-27 00:25:48] [#] Something rustles nearby! [2016-07-27 00:26:19] [#] Something rustles nearby! [2016-07-27 00:26:43] [#] Something rustles nearby! [2016-07-27 00:27:04] [#] Something rustles nearby! [2016-07-27 00:27:27] [#] Something rustles nearby! [2016-07-27 00:27:48] [#] Something rustles nearby! [2016-07-27 00:28:09] [#] Something rustles nearby! [2016-07-27 00:28:22] [#] Something rustles nearby!

Steps to Reproduce

Using master build

Other Information

OS: Windows 10 Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

Note spins working fine.

kaoztheory avatar Jul 27 '16 04:07 kaoztheory

Same.

bradhuffman avatar Jul 27 '16 04:07 bradhuffman

Try recopying the example config, and only change the username, password, and apikey Leave all the pokemon stuff alone.

cadebrown avatar Jul 27 '16 04:07 cadebrown

Trying sec

kaoztheory avatar Jul 27 '16 04:07 kaoztheory

I did have to modify def i2f(int): return struct.unpack('<d', struct.pack('<Q', int))[0]

to def i2f(int): return struct.unpack('<d', struct.pack('<d', int))[0]

in utils.py to get bot to run.

bradhuffman avatar Jul 27 '16 04:07 bradhuffman

same

kaoztheory avatar Jul 27 '16 04:07 kaoztheory

Then you guys should upgrade to the latest version

cadebrown avatar Jul 27 '16 04:07 cadebrown

Also, spawnpoint_id = self.pokemon['spawnpoint_id'] to spawnpoint_id = self.pokemon['spawn_point_id'] in pokemon_catch_worker.py

bradhuffman avatar Jul 27 '16 04:07 bradhuffman

Dev version?? Copied new config didn't work either

kaoztheory avatar Jul 27 '16 04:07 kaoztheory

The dev branch

cadebrown avatar Jul 27 '16 04:07 cadebrown

Dev branch kept flaking on the location I tried to give it. Any secrets there?

bradhuffman avatar Jul 27 '16 04:07 bradhuffman

Same

kaoztheory avatar Jul 27 '16 04:07 kaoztheory

[23:39:42] PokemonGO Bot v1.0 [23:39:42] No config argument specified, checking for /configs/config.json [23:39:42] Configuration initialized [23:39:43] [23:39:43] Location Found: 30.5508,-89.0110 [23:39:43] [x] The location given using -l could not be parsed. Checking for a cached location. [23:39:43] [x] Parsing cached location... No cached Location. Please specify initial location.

bradhuffman avatar Jul 27 '16 04:07 bradhuffman

Any ideas?

bradhuffman avatar Jul 27 '16 04:07 bradhuffman

Same problem on dev branch

krypttr avatar Jul 27 '16 04:07 krypttr

try doing this before: self.api.encounter(encounter_id=encounter_id, spawn_point_id=spawnpoint_id, player_latitude=player_latitude, player_longitude=player_longitude)

after: self.api.encounter(encounter_id=encounter_id, spawnpoint_id=spawnpoint_id, player_latitude=player_latitude, player_longitude=player_longitude)

it brings up an error when trying to catch but it actually tries to catch instead of just rustling. error is as follows

[2016-07-27 04:56:15] [#] Something rustles nearby! [2016-07-27 04:56:15] A Wild Kingler appeared! [CP 129] [Potential 0.8] [2016-07-27 04:56:15] IV [Stamina/Attack/Defense] = [14/7/15] Traceback (most recent call last): File "./pokecli.py", line 220, in main() File "./pokecli.py", line 211, in main bot.take_step() File "/home/ubuntu/workspace/pokemongo_bot/init.py", line 36, in take_step self.stepper.take_step() File "/home/ubuntu/workspace/pokemongo_bot/stepper.py", line 62, in take_step self._work_at_position(position[0], position[1], position[2], True) File "/home/ubuntu/workspace/pokemongo_bot/stepper.py", line 139, in _work_at_position self.bot.work_on_cell(cell, position, pokemon_only) File "/home/ubuntu/workspace/pokemongo_bot/init.py", line 63, in work_on_cell if self.catch_pokemon(pokemon) == PokemonCatchWorker.NO_POKEBALLS: File "/home/ubuntu/workspace/pokemongo_bot/init.py", line 190, in catch_pokemon return_value = worker.work() File "/home/ubuntu/workspace/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 98, in work if not self.should_capture_pokemon(pokemon_name, cp, pokemon_potential, response_dict): File "/home/ubuntu/workspace/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 292, in should_capture_pokemon catch_config = self._get_catch_config_for(pokemon_name) File "/home/ubuntu/workspace/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 333, in _get_catch_config_for catch_config = self.config.catch.get(pokemon) AttributeError: 'Namespace' object has no attribute 'catch'

TheHaliax avatar Jul 27 '16 04:07 TheHaliax

likely has to do with the spawnpoint issue?

kaoztheory avatar Jul 27 '16 05:07 kaoztheory

Seems to be some inconsistencies in the naming.

bradhuffman avatar Jul 27 '16 05:07 bradhuffman

looks like this commit broke it: https://github.com/PokemonGoF/PokemonGo-Bot/commit/6a2833322ae77daf7ac3d3f3aa5c621b2543e8aa

VictorChen avatar Jul 27 '16 05:07 VictorChen

sorry i'm not really good with github but my above change and doing this https://github.com/PokemonGoF/PokemonGo-Bot/issues/1121

returns this [2016-07-27 05:23:25] [#] Something rustles nearby! Traceback (most recent call last): File "./pokecli.py", line 220, in main() File "./pokecli.py", line 211, in main bot.take_step() File "/home/ubuntu/workspace/pokemongo_bot/init.py", line 36, in take_step self.stepper.take_step() File "/home/ubuntu/workspace/pokemongo_bot/stepper.py", line 62, in take_step self._work_at_position(position[0], position[1], position[2], True) File "/home/ubuntu/workspace/pokemongo_bot/stepper.py", line 139, in _work_at_position self.bot.work_on_cell(cell, position, pokemon_only) File "/home/ubuntu/workspace/pokemongo_bot/init.py", line 63, in work_on_cell if self.catch_pokemon(pokemon) == PokemonCatchWorker.NO_POKEBALLS: File "/home/ubuntu/workspace/pokemongo_bot/init.py", line 190, in catch_pokemon return_value = worker.work() File "/home/ubuntu/workspace/pokemongo_bot/cell_workers/pokemon_catch_worker.py", line 31, in work response_dict = self.create_encounter_api_call() AttributeError: 'PokemonCatchWorker' object has no attribute 'create_encounter_api_call'

TheHaliax avatar Jul 27 '16 05:07 TheHaliax

reinstall of latest dev fixed it guys...FYI

kaoztheory avatar Jul 27 '16 05:07 kaoztheory