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

[Improvement] Integrate PokemonGo-Map's code with the Bot

Open beldar opened this issue 10 years ago • 15 comments

One of the most effective ways to use the Bot is in conjunction with the PokemonGo-Map, it allows you to teleport to a pokemon and back to catch it, making it the fastest way to catch them all.

Unfortunately the original repo has been taken down and the development pretty much halted, there is a new fork with updated code and API, but I think it would make sense to integrate the code as a new Thread on the Bot (so you only have to run one process) and continue development and refinement on this repo.

This is a call for developers with enough knowledge to take this endeavour (unfortunately I'm not familiar enough with Python to do it), and make this Bot the most preformant and fastest in catching Pokemon of them all.

@mhdasding @TheSavior

beldar avatar Aug 07 '16 15:08 beldar

https://github.com/PokemonGoF/PokemonGo-Bot/wiki/MoveToPokemonMap-configuration

BobbyWibowo avatar Aug 07 '16 15:08 BobbyWibowo

@BobbyWibowo yes I know there is a task that integrates with it, I use it right now, but you need to run the map process separately and its basically a different project.

What I'm proposing is to integrate the Map's code into the Bot so it runs as a single process and in the same project.

beldar avatar Aug 07 '16 15:08 beldar

Better yet https://github.com/PokemonGoMap/PokemonGo-Map

brantje avatar Aug 07 '16 15:08 brantje

The advantage of having separate repo for both of them is that both can be actively developed by developers who had more experience for each field. After taking into account various things with the management and everything else, I personally think that it's better not to combine both into the same repo. Also, it's not that I have any disagreement with PokemonGo-Map, I do use it as well.

BobbyWibowo avatar Aug 07 '16 15:08 BobbyWibowo

@BobbyWibowo the problem is that the original repo got closed yesterday and further development halted, that's what I say on my issue. And to integrate it with the Bot more effectively we probably want to customize it to the Bot's needs rather than using something more generic.

For example we don't need to create a webserver and an API to feed the bot, it could all be done internally

beldar avatar Aug 07 '16 15:08 beldar

@beldar I was sure that despite the original author taking it down, it'd eventually rise again, so I didn't take into account the fact that it was already taken down.

BobbyWibowo avatar Aug 07 '16 15:08 BobbyWibowo

I suggest we integrate the bot with map via the database, pokemongomap has support for sqlite and mysql, PokemonGo-Bot can easy access the same database and read/write encounters, since both are using the same API, I don't think it will be that hard to do, this way bots encounters will contribute to the scanner too. Right now Bot and Map talk via web

AcorpBG avatar Aug 07 '16 18:08 AcorpBG

^^ is this doable?

my2ndLanguage-zz avatar Aug 07 '16 22:08 my2ndLanguage-zz

@my2ndLanguage Should be doable as long as external database change will be reflected in PokemonGo-Map as well. It's surely not some short coding though.

BobbyWibowo avatar Aug 07 '16 23:08 BobbyWibowo

I've just been getting syntax errors everytime i try to run it regardless of how many times i re clone, install and configure just cannot figure it out and little to no help over at PokemonGo-Map screen shot 2016-08-07 at 4 54 05 pm

my2ndLanguage-zz avatar Aug 07 '16 23:08 my2ndLanguage-zz

@my2ndLanguage Which repo did you use?

BobbyWibowo avatar Aug 07 '16 23:08 BobbyWibowo

https://github.com/PokemonGoMap/PokemonGo-Map Im running OS X

my2ndLanguage-zz avatar Aug 07 '16 23:08 my2ndLanguage-zz

@my2ndLanguage if its not working, probably their github repo would be the best place to ask, at least until no one has integrated it into this repo :)

beldar avatar Aug 08 '16 00:08 beldar

I don't think I'm really on board with us including the source of the map project in this repo. I think it should stay a separate repo since there are so many people working on it, even after the main repo shut down. I think what would make a lot of sense is for there to be an option in the MoveToPokemonMap that would have it essentially download and spin up its own instance of the map in the background that it connects to instead of a URL.

That would let people use the map who don't already have one set up or don't want to put the work in to get it set up.

elicwhite avatar Aug 08 '16 00:08 elicwhite

Sounds like a plan, maybe as a submodule? I think they have a --no-ui option or something similar.

beldar avatar Aug 08 '16 18:08 beldar