PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Request - GPX Build in

Open NoobWithBoobs opened this issue 9 years ago • 68 comments

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

Do-able?

NoobWithBoobs avatar Aug 11 '16 05:08 NoobWithBoobs

Would be interesting

ghost avatar Aug 11 '16 07:08 ghost

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

NoobWithBoobs avatar Aug 11 '16 07:08 NoobWithBoobs

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

ghost avatar Aug 11 '16 07:08 ghost

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. .

NoobWithBoobs avatar Aug 11 '16 07:08 NoobWithBoobs

Just checked, it's do-able

ghost avatar Aug 11 '16 07:08 ghost

The excitement rages!!!

NoobWithBoobs avatar Aug 11 '16 08:08 NoobWithBoobs

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

staurakis avatar Aug 11 '16 08:08 staurakis

Will do it today or tomorrow

ghost avatar Aug 11 '16 08:08 ghost

i look forward to it, keep us posted here 👍

NoobWithBoobs avatar Aug 11 '16 08:08 NoobWithBoobs

Will have two settings I think :

  • GPX file
  • Number of time the file must be repeated

ghost avatar Aug 11 '16 15:08 ghost

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

NoobWithBoobs avatar Aug 11 '16 15:08 NoobWithBoobs

Of course ^^

ghost avatar Aug 11 '16 15:08 ghost

How can I make this kind of GPX?

ncovercash avatar Aug 11 '16 16:08 ncovercash

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

NoobWithBoobs avatar Aug 11 '16 16:08 NoobWithBoobs

@Peyphour Direction might be cool in future versions.

NoobWithBoobs avatar Aug 11 '16 16:08 NoobWithBoobs

Directions ?

ghost avatar Aug 11 '16 16:08 ghost

Direction as in backwards, forward, bidirectional.

NoobWithBoobs avatar Aug 11 '16 16:08 NoobWithBoobs

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 ;)

staurakis avatar Aug 11 '16 16:08 staurakis

@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?

NoobWithBoobs avatar Aug 11 '16 17:08 NoobWithBoobs

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

staurakis avatar Aug 11 '16 17:08 staurakis

#1008

ghost avatar Aug 11 '16 20:08 ghost

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

NoobWithBoobs avatar Aug 11 '16 20:08 NoobWithBoobs

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

ghost avatar Aug 11 '16 20:08 ghost

yep, pulling as I type!

NoobWithBoobs avatar Aug 11 '16 20:08 NoobWithBoobs


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?

NoobWithBoobs avatar Aug 11 '16 20:08 NoobWithBoobs

10min for building ?!

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

ghost avatar Aug 11 '16 21:08 ghost

mhmm redo time!

NoobWithBoobs avatar Aug 11 '16 21:08 NoobWithBoobs

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

NoobWithBoobs avatar Aug 11 '16 21:08 NoobWithBoobs

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 avatar Aug 11 '16 21:08 ghost

And the path is relative to the jar file

ghost avatar Aug 11 '16 21:08 ghost