PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

starting latitude problem

Open ahr174 opened this issue 10 years ago • 31 comments

Description: Hi, this is my 1st time using bot, but is seems complicated for me. every time I used the bot, I always got [Starting Latitude setting ("latitude") not specified in config.properties!].

this is the input on config.properties, there is no space before or after the latitude's value

token= latitude=37.808 longitude=-122.41

Operating System: [OSX El Capitan 10.11.6]

really appreciate your help

ahr174 avatar Aug 08 '16 04:08 ahr174

Mine are

"latitude=32.780160 longitude=-96.797724"

Are you sure you've got the entire number for yours? You might not be being specific enough?

Killertom63 avatar Aug 08 '16 08:08 Killertom63

i try your number man, but it doesn't work for me.

ahr174 avatar Aug 08 '16 09:08 ahr174

here are the log and config @Killertom63

screen shot 2016-08-08 at 16 54 43

screen shot 2016-08-08 at 16 56 09

ahr174 avatar Aug 08 '16 10:08 ahr174

@jabbink brother, can you help us on this issue with the latitude problem? Thanks a lot!

zoegalaxy avatar Aug 08 '16 13:08 zoegalaxy

Are you sure your file isn't called config.properties.rtf or config.properties.txt?

jabbink avatar Aug 08 '16 13:08 jabbink

@jabbink yes im sure, but don't know it doesn't work for me.

screen shot 2016-08-08 at 20 38 00

ahr174 avatar Aug 08 '16 13:08 ahr174

@ahr174 Try using the .json settings in the folder "bot-settings". Check here to get templates. #810

toffaste1337 avatar Aug 08 '16 13:08 toffaste1337

@toffaste1337 it come out like this, but im not sure if i'm doing it right

so i just put XXXX.json file into bot-setting folder right?

screen shot 2016-08-08 at 21 03 38

ahr174 avatar Aug 08 '16 14:08 ahr174

You have invalid characters in your json file. Open it in a text editor and show what line 1, character 11 contains.

jabbink avatar Aug 08 '16 14:08 jabbink

I have the same issue also as @ahr174

screen shot 2016-08-08 at 10 28 49 pm

mine is line 1, column 3. But I don't know what is wrong.

screen shot 2016-08-08 at 10 29 54 pm

Also, how about the information inside config.properties... do I need to remove the username and password information since it is already inside the config.json?

zoegalaxy avatar Aug 08 '16 14:08 zoegalaxy

@zoegalaxy the bot-settings json configs overrides the config.properties. Are there any spaces after the curly bracket on line one?

toffaste1337 avatar Aug 08 '16 14:08 toffaste1337

@toffaste1337 I did this, and I still got error on line 1, column 3.

screen shot 2016-08-08 at 10 36 15 pm

zoegalaxy avatar Aug 08 '16 14:08 zoegalaxy

Try using an online json formatter tool to check your json file. And make sure the file's encoding is UTF-8. Atleast that's what I have.

toffaste1337 avatar Aug 08 '16 14:08 toffaste1337

Weird, it has double quotes but why the error?

screen shot 2016-08-08 at 10 39 08 pm

zoegalaxy avatar Aug 08 '16 14:08 zoegalaxy

Really weird, I use the same config, it works for me.

toffaste1337 avatar Aug 08 '16 14:08 toffaste1337

@toffaste1337 Notice the double quote with error and without? The one with error is curly, while the one without are just straight lines.

I was able to fix it by copying the straight-line double quotes and pasting it on the curly ones.

I got this:

screen shot 2016-08-08 at 10 49 31 pm

BUT..... it has the same error! 😢

screen shot 2016-08-08 at 10 50 51 pm

zoegalaxy avatar Aug 08 '16 14:08 zoegalaxy

Ooops I put my username and password, anyway it's okay it is a dummy account lol.

zoegalaxy avatar Aug 08 '16 14:08 zoegalaxy

Change the password now :)

toffaste1337 avatar Aug 08 '16 14:08 toffaste1337

@toffaste1337 hahaha.. I changed already.

Now I'm stuck, don't know what to do hahaha...

zoegalaxy avatar Aug 08 '16 14:08 zoegalaxy

@zoegalaxy do you have the latest java version?

toffaste1337 avatar Aug 08 '16 14:08 toffaste1337