Skip to content

Comments

pokemon catcher interface for https://github.com/AHAAAAAAA/PokemonGo-Map#2217

Closed
GNSPS wants to merge 6 commits intoPokemonGoF:devfrom
GNSPS:dev
Closed

pokemon catcher interface for https://github.com/AHAAAAAAA/PokemonGo-Map#2217
GNSPS wants to merge 6 commits intoPokemonGoF:devfrom
GNSPS:dev

Conversation

@GNSPS
Copy link

@GNSPS GNSPS commented Aug 1, 2016

Short Description:

This PR has a whole new worker to interface with https://github.com/AHAAAAAAA/PokemonGo-Map and go after rare pokemons (specified in the configs by id) found in the map.

When it is working it stops the move_to_fort worker because the pokemons have a limited lifetime and the bot cannot run the other worker simultaneously.

Fixes:

  • No fixes, just a new feature

GNSPS added 3 commits August 1, 2016 13:11
# Conflicts:
#	CONTRIBUTORS.md
#	pokemongo_bot/__init__.py
#	pokemongo_bot/cell_workers/__init__.py
#	pokemongo_bot/cell_workers/move_to_fort.py
@GNSPS GNSPS closed this Aug 1, 2016
@GNSPS GNSPS reopened this Aug 1, 2016
@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

Fixing the conflicts which I didn't notice but broke it all!

@DayBr3ak
Copy link
Contributor

DayBr3ak commented Aug 1, 2016

Don't merge, rebase

@julienlavergne
Copy link
Contributor

max_travel_time seems to be seconds. So the needed_speed is in distance_unit / seconds.
So I guess 30 cannot be the default value.

@julienlavergne
Copy link
Contributor

Also, I think such mechanism should check pokemon cp / iv to make sure we don't run for a pokemon that we are going to release.

@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

Yes, you're right!

30 m/s was what I was using in the tests which is 108 km/h it is a bit fast but on the other hand really rare pokemons tend to spawn far away if you let the task define the needed speed you take ages to reach the desired pokemon and cannot move to forts at the same time.

So it's kind of a difficult choice!

@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

Nice point! Going to add that when I can.

For now let's assume you'll only use this for VIP pokemons in your config!

@julienlavergne
Copy link
Contributor

We could configure the minimum and maximum speed.
Bot would try to reach the pokemon at the necessary speed to catch it (with a buffer for capture). If that speed is less than the minimum in config, use the minimum. If that speed is greater than the maximum, consider you cannot reach that pokemon in time.

@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

That is exactly what is coded here!

The speed in the config is the minimum speed. The maximum is the 120 km/h which is tested by the pokemongo-webspoof guys!

But no harm in making the max configurable too! 😄

@julienlavergne
Copy link
Contributor

On detail is that we do not check the speed in get_nearest_pokemon. So we might return an encounter that is not reachable. That would be good to filter out all encounter not reachable at max speed.

@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

Right! important point, I'm on it!
Better than filter out one for each run of the worker.

@douglascamata
Copy link
Member

@GNSPS please, also use a task config, like the IncubateEgg task does. We do not add config like that anymore, it's being deprecated.

@nikhil-pandey
Copy link
Contributor

nikhil-pandey commented Aug 1, 2016

Is this ~same as #1992 ?

@julienlavergne
Copy link
Contributor

There is other pull requests to take into account:
#1992
#1887

@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

I thought about #1992 but that way you can't connect to an external server and this way you can

@douglascamata
Copy link
Member

@GNSPS you redid the whole work just to be able to connect to an external server? This is easy to implement there.

@douglascamata
Copy link
Member

@GNSPS also, tasks don't store state in self.bot, they store state in themselves now.

@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

No! I didn't see #1992, I was just saying I thought of that method and it wasn't as effective!

Gonçalo


Sent from my mobile,
please excuse brevity & typos

On 01/08/2016, at 15:32, Douglas Camata notifications@github.com wrote:

@GNSPS you redid the whole work just to be able to connect to an external server? This is easy to implement there.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@mhdasding
Copy link
Contributor

@GNSPS it's the same, i forgot to update the description to reflect the change that it now parses the spawns from /raw_data of PokemonGo-Map ;)

@GNSPS
Copy link
Author

GNSPS commented Aug 1, 2016

Ok! ;)

Closing this now!

@GNSPS GNSPS closed this Aug 1, 2016
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this pull request Sep 28, 2016
* Add scalingo.json

* Update readme : Add scalingo one click deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants