jabbink / PokemonGoBot

DEFUNCT - Bot that plays Pokemon Go
https://www.pogobot.club/
GNU General Public License v3.0
559 stars 233 forks source link

Request - GPX Build in #977

Open NoobWithBoobs opened 8 years ago

NoobWithBoobs commented 8 years ago

Hello, Requesting for GPX following to be build in to json/config file. Keep the bot from traveling off course.

Do-able?

ghost commented 8 years ago

Would be interesting

NoobWithBoobs commented 8 years ago

would be ideal for a nest area and gpx are pretty easy to make with google earth and bunch of other programs too.

ghost commented 8 years ago

Support for GPX was already in the previous version of the GUI so it shouldn't be too hard to implement

NoobWithBoobs commented 8 years ago

I have the bot reload every 30mins due and usually i'm not around to resubmit via the gui again and again. If gpx support was build into config/json file, bot could roam around in more focus areas without having to be instructed to each and every time. .

ghost commented 8 years ago

Just checked, it's do-able

NoobWithBoobs commented 8 years ago

The excitement rages!!!

staurakis commented 8 years ago

It would be a great add on!!! :)

ghost commented 8 years ago

Will do it today or tomorrow

NoobWithBoobs commented 8 years ago

i look forward to it, keep us posted here 👍

ghost commented 8 years ago

Will have two settings I think :

NoobWithBoobs commented 8 years ago

Repeat is an awesome idea, please be sure to include -1 option as well.

ghost commented 8 years ago

Of course ^^

ncovercash commented 8 years ago

How can I make this kind of GPX?

NoobWithBoobs commented 8 years ago

Easist ways to make GPX files online http://www.gpsies.com/createTrack.do?language=en

NoobWithBoobs commented 8 years ago

@Peyphour Direction might be cool in future versions.

ghost commented 8 years ago

Directions ?

NoobWithBoobs commented 8 years ago

Direction as in backwards, forward, bidirectional.

staurakis commented 8 years ago

I think the only logical route to have is a circular one... There is no point to directly go back the opposite route as nothing would have been spawn yet. On the other hand, a delay time maybe a good idea if you have a small route ;)

NoobWithBoobs commented 8 years ago

@staurakis, you do have a point with circular routes but I was thinking long roads and such. Anyways, I'm excited for just the basic, I could make a loop myself.

Delay Time to wait for Pokemon to spawn?

staurakis commented 8 years ago

Me too! ;) @NoobWithBoobs yes a delay amount of time to wait to restart the route i think would be a nice think to have :)

ghost commented 8 years ago

1008

NoobWithBoobs commented 8 years ago

damn exciting, can't wait to see it be included in the main build!!

ghost commented 8 years ago

Can you test it ? I can't do it right now ^^

NoobWithBoobs commented 8 years ago

yep, pulling as I type!

NoobWithBoobs commented 8 years ago

ink.abb.pogo.scraper.TestSettings > testDefaultSettings FAILED
    java.io.FileNotFoundException at TestSettings.kt:25

ink.abb.pogo.scraper.TestSettings > testTemplateKeys FAILED
    java.io.FileNotFoundException at TestSettings.kt:73

2 tests completed, 2 failed
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///Users/Katherine/Desktop/Beta/PokemonGoBot/build/reports/tests/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 10 mins 37.845 secs

Happened on your end as well?

ghost commented 8 years ago

10min for building ?!

Are you sure you have a config.properties.template ? Build passed on Travis so this isn't my fault

NoobWithBoobs commented 8 years ago

mhmm redo time!

NoobWithBoobs commented 8 years ago

So I've tested it now for 20mins and I don't see it following the gpx patch. Could you provide your gpx file and which one is correct?

# GPX file to be added on the bot's start
gpx_file=/Users/Katherine/Desktop/Beta/PokemonGoBot/WalkInCentralPark.gpx
# Number of times the bot must repeat this GPX file
gpx_repeat=-1

or

# GPX file to be added on the bot's start
gpx_file=WalkInCentralPark.gpx
# Number of times the bot must repeat this GPX file
gpx_repeat=-1
ghost commented 8 years ago

If gpxRepeat is -1 or 0, the bot will not follow the path at all. Literally : number of times the bot will repeat the path, so at least 1

ghost commented 8 years ago

And the path is relative to the jar file

ghost commented 8 years ago

Well the formulation may be wrong for gpxRepeat, will change that

NoobWithBoobs commented 8 years ago

I have to run outside but i'll come back and test some more in two-three hours. Still very excited 👍

ghost commented 8 years ago

Going to sleep, we will continue tomorrow

NoobWithBoobs commented 8 years ago

gpx file loads but it's still going to latitude/longitude settings in config file. Were I to remove those settings before hand? And I ended up using your test file

ghost commented 8 years ago

What does it do after going to config coords ? Could you provide a bit of logs (via pastebin)?

NoobWithBoobs commented 8 years ago

@Peyphour currently dealing with soft ban, i'm sure you noticed it if you were running the bot last night. @staurakis perhaps you'd be willing to test it too?

ghost commented 8 years ago

Nope not banned ^^ I think I know what the problem is, will keep you posted

NoobWithBoobs commented 8 years ago

I hope it's not hard ban! Please keep me posted, i'd be very grateful. 👍

staurakis commented 8 years ago

@NoobWithBoobs i'm willing to help by any means (and that's obvious i think) but i'm a bit out of my expertise here... If i receive some rough guidelines, i can and will be more than happy to do so! :)

ghost commented 8 years ago

Just run the bot with a GPX file, let it run for 4-5 minutes et send me : the GPX file and the logs

staurakis commented 8 years ago

i have the compiled version @Peyphour .... As far as i understand, i have to go for the other way to run it and get the files you have changed.... That is the part i am missing.... That's the part that i need a bit of info. I am missing the platform to 'compile' it.... I think at least.....

ghost commented 8 years ago

Forget it then, I'll do it myself tomorrow

staurakis commented 8 years ago

i think i did it.... building it right now.... I will test it with my gpx and let you know ;) pffff :( Download https://repo1.maven.org/maven2/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar :compileKotlin :compileJava FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 1 mins 51.099 secs

staurakis commented 8 years ago

fixed it...continuing.....

ghost commented 8 years ago

Sorry, didn't see your issue, you need JDK 1.8

staurakis commented 8 years ago

yeap yeap figured it out ;) checking the gpx right now ;)

staurakis commented 8 years ago

@Peyphour my gpx format is a bit different from your test.gpx. Also, don't you have any 'switch' (as you describe in your code) in the configuration file? I haven't seen anything.

staurakis commented 8 years ago

I have added two variables in to the configuration file: gpxFile and gpxRepeat in a try to make it read my gpx file but without any luck. I have also changed my gpx xml file in accordance to your xml but again it didn't help. @Peyphour Could you please help on how to make it "read" the gpx file?

ghost commented 8 years ago

What do you mean by 'switch' ? Could you provide via pastebin your config file and GPX file ?

staurakis commented 8 years ago

i think i found it.... you name your variables with _ in between. I had them in the configuration file as you describe them in the comments without anything. Testing again.