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

localhost:5000/loc (also raw_data) returns 404 (OpenPoGoWeb)

Open joaodragao opened this issue 10 years ago • 9 comments

Sorry to open this issue. But I had tried everything and it doesn't work.

Can anyone guide me to make move_to_map_pokemon work?

  • I downloaded OpenPoGoWeb and extracted it to /PokemonGo-Bot/web
  • cd /PokemonGo-Bot/web
  • python -m SimpleHTTPServer 5000

The localhost:5000/ is ok. There is a map there.

But I always get:

127.0.0.1 - - [09/Aug/2016 10:52:30] code 404, message File not found

and

[move_to_map_pokemon_fail] Failure! Map location data was not valid

That happens because localhost:5000/loc and localhost:5000/raw_data return 404.

This is the config.json:

{
        "type": "MoveToMapPokemon",
        "config": {
          "address": "http://localhost:5000",
          "max_distance": 500,
          "min_time": 60,
          "min_ball": 50,
          "prioritize_vips": true,
          "snipe": false,
          "update_map": true,
          "mode": "priority",

and userdata.js:

var userInfo = {
    users: ["xxxxx"],
    userZoom: true,
    zoom: 16,
    userFollow: true,
    gMapsAPIKey: "xxxxxxxxxx...",
    botPath: true,
    actionsEnabled: false
};

joaodragao avatar Aug 09 '16 10:08 joaodragao

you don`t need OpenPoGoWeb, you need https://github.com/PokemonGoMap/PokemonGo-Map

mizhgan avatar Aug 09 '16 10:08 mizhgan

Had the same issue the first time i ran the HTTP

Are the following 3 files in your /web/ folder:

If one of the files isn't in the /web/ folder, create an empty .json file using this naming.

ArcusD avatar Aug 09 '16 10:08 ArcusD

So, this wik (Google-Maps-API-(web-page)) i is out-of-date? And it's not compatible with OpenPoGoWeb anymore?

joaodragao avatar Aug 09 '16 10:08 joaodragao

@ArcusD I have all the 3 JSON files in /web/ directory. But OpenPoGoWeb seems to do nothing with it.

joaodragao avatar Aug 09 '16 10:08 joaodragao

you don`t need OpenPoGoWeb, you need https://github.com/PokemonGoMap/PokemonGo-Map OpenPoGoWeb is used to visualize bots moving only

mizhgan avatar Aug 09 '16 10:08 mizhgan

@ArcusD I was confused with my username. I corrected it and it works. Thank you! But [move_to_map_pokemon_fail] Failure! Map location data was not valid is still there.

joaodragao avatar Aug 09 '16 10:08 joaodragao

@mizhgan I got it. Thank you. But may you tell me what is the advantage of using PokemonGo-Map? Can I ask my player to move to exact location that Pokemon pop up on the PokemonGo-Map?

joaodragao avatar Aug 09 '16 10:08 joaodragao

Exactly, bot goes to position of the pokemon find by map. This is what map worker do.

2016-08-09 13:33 GMT+03:00 joaodragao [email protected]:

@mizhgan https://github.com/mizhgan I got it. Thank you. But may you tell me what is the advantage of using PokemonGo-Map? Can I ask my player to move to exact location that Pokemon pop up on the PokemonGo-Map?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PokemonGoF/PokemonGo-Bot/issues/3250#issuecomment-238515544, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmSkG1tRy3UYp0BZdlLN-ecs74TZaOkks5qeFd5gaJpZM4Jf6lj .

mizhgan avatar Aug 09 '16 10:08 mizhgan

@mizhgan Really?! Thank you very much!

joaodragao avatar Aug 09 '16 10:08 joaodragao