Necrobot-Private / NecroBot

NecroBot2
http://necrobot2.com
Other
308 stars 230 forks source link

Mapquest Elevation error, My observation #103

Closed LobsterX closed 8 years ago

LobsterX commented 8 years ago

The error: who else is getting this? 13:42:42 MapQuest Elevation response not reliable: -32768

I noticed this pops up when i'm over water bodies when elevations are at 0 value.

1)bot went 1/2 way cross a bridge, error pops up[ same spot. am able to replicate] 2) bot walked along the coast into a pier that stretches out into the sea, error pops out [same, able to replicate when bot moved to the same spot where error pops up]

I think it's not google's elevation API at fault.

I've enabled both Google Maps API and Google Elevation API and checked they are all enable and working well.

is there somewhere in necrobot's coding that is bugged?

wilsondgonzales commented 8 years ago

i have experienced it intermittently where the bot works fine then that prompt pops up and stops the bot. At that point I wonder if something's wrong with my api setup but no everything is working fine and i haven't reached even a hundred on my quota.

Edit: After starting the bot over and over and getting that prompt, I changed my coords from lastpos.ini and the bot started fine. Try changing your coords to begin somewhere close to your last position either through the ini or config file and see if you get results

iwean commented 8 years ago

@LobsterX Is there api key on your config.json file? Or just null?

LobsterX commented 8 years ago

@iwean Google API key is there. regenerated a new one just to make sure it wasn't cos it's an old 1week key.

I strongly believe somewehere the 0 elevation is causing the error to pop up [for me, not sure about other people's error ovbservations]

@wilsondgonzales i always set my start point to be the same everytime the error pops up and i restart the bot after deleting lastpos.ini. error appears at exactly same spot on the map, on top of a glass helix bridge in the central business district in my country.

wilsondgonzales commented 8 years ago

After a few more tests, I can confirm that mapquest prompt happens near bodies of water like @LobsterX says.

jjskuld commented 8 years ago

With the new release 0.9.8.9, it will never cause the bot to die now. When you get an invalid elevation, it will fallback to the next strategy and blacklist the existing strategy for 1 hr. The last fallback is the random provider, which just generates a random elevation for you.

jjskuld commented 8 years ago

Also in 0.9.8.9, it is highly suggested to use the new Mapzen elevation api. You need to get an API key from Mapzen. This service is fast, reliable, and has no api limits.

jjskuld commented 8 years ago

The mapzen key gets put under its own section MapzenWalkConfig I believe is the new section.

On Tuesday, September 13, 2016, Wilson Gonzales notifications@github.com wrote:

@jjskuld https://github.com/jjskuld does the mapzen key get placed under google api key instead?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Necrobot-Private/NecroBot/issues/103#issuecomment-246747950, or mute the thread https://github.com/notifications/unsubscribe-auth/AQIBqqMF7NjYzvD3xLb1prAl27_ePm-nks5qptTvgaJpZM4J7YXT .