Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid map data in MoveToMapPokemon task #3459

Closed
iruy opened this issue Aug 10, 2016 · 3 comments
Closed

Invalid map data in MoveToMapPokemon task #3459

iruy opened this issue Aug 10, 2016 · 3 comments

Comments

@iruy
Copy link

iruy commented Aug 10, 2016

Expected Behavior

Read valid map data

Actual Behavior

I'm using latest dev branch, bot is actually giving this error

[15:07:20] Moving towards pokestop San Palacio - 0.05km
[15:07:20] Arrived at fort.
[15:07:20] Failure! Map data was not valid
[15:07:23] Discarded 1x Potion (maximum 0).

Your config.json (remove your credentials and any other private info)

{
    "auth_service": "google",
    "username": "XXXXX",
    "password": "XXXXX",

    "location": "45.464274, 9.189034",

    "gmapkey": " XXXXXX",
    "tasks": [
        {
            "type": "HandleSoftBan"
        },
        {
            "type": "CollectLevelUpReward"
        },
        {
            "type": "IncubateEggs",
            "config": {
                "longer_eggs_first": true
            }
        },
        {
            "type": "TransferPokemon"
        },
        {
            "type": "EvolvePokemon",
            "config": {
                "evolve_all": "Pidgey,Caterpie,Rattata,Weedle,Zubat,Goldeen,Krabby,Abra,Paras,Psyduck,Staryu,Spearow,Tentacool,Ekans",
                "first_evolve_by": "cp",
                "evolve_above_cp": 10,
                "evolve_above_iv": 0.1,
                "logic": "and",
                "evolve_speed": 20,
                "use_lucky_egg": false
            }
        },
        {
            "type": "RecycleItems",
            "config": {
                "item_filter": {
                    "Pokeball":     {"keep": 80},
                    "Greatball":    {"keep": 50},
                    "Ultraball":    {"keep": 50},
                    "Potion":       {"keep": 0},
                    "Super Potion": {"keep": 0},
                    "Hyper Potion": {"keep": 0},
                    "Revive":       {"keep": 0},
                    "Razz Berry":   {"keep": 40}
                }
            }
        },
        {
            "type": "CatchVisiblePokemon"
        },
        {
            "type": "CatchLuredPokemon"
        },
        {
            "type": "SpinFort"
        },
        {
            "type": "MoveToFort",
            "config": {
                "lure_attraction": true,
                "lure_max_distance": 2000
            }
        },
        {
            "type": "MoveToMapPokemon",
            "config": {
                "address": "http://localhost:5000",
                "max_distance": 500,
                "min_time": 60,
                "min_ball": 10,
                "map_path": "raw_data",
                "prioritize_vips": true,
                "snipe": true,
                "snipe_high_prio_only": true,
                "snipe_high_prio_threshold": 400,
                "update_map": false,
                "mode": "priority",
                "catch": {
                    ....
                }
            }
        }
    ],

Steps to Reproduce

With some difficulties I installed pokemongo map (pokeminer now) and was now I can see the map at localhost:5000. But then I get that error in the bot

Other Information

OS: OS X El Capitan
Git Commit: 67fe00b
Python Version: Python 2.7.11

@k4n30
Copy link
Contributor

k4n30 commented Aug 13, 2016

@iruy are you still having this issue with the latest version?

@trademarrk
Copy link

trademarrk commented Aug 13, 2016

i get a similar error too

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

i get the error message

[14:56:46] Moving towards pokestop G Ross Lord Park Service Yard - 0.14km
[14:56:48] Failure! Could not get Pokemon data from PokemonGo-Map: http://localhost:5000. Is it running?
[14:56:48] Moving towards pokestop G. Ross Park Sports Pavilion - 0.15km
[14:56:50] Failure! Could not get Pokemon data from PokemonGo-Map: http://localhost:5000. Is it running?
[14:56:50] Moving towards pokestop G Ross Lord Park Service Yard - 0.14km
[14:56:51] Failure! Could not get Pokemon data from PokemonGo-Map: http://localhost:5000. Is it running?
[14:56:51] Moving towards pokestop G. Ross Park Sports Pavilion - 0.14km
[14:56:54] Failure! Could not get Pokemon data from PokemonGo-Map: http://localhost:5000. Is it running?
[14:56:54] Moving towards pokestop G Ross Lord Park Service Yard - 0.14km
[14:56:56] Failure! Could not get Pokemon data from PokemonGo-Map: http://localhost:5000. Is it running?

on the lastest version

@k4n30
Copy link
Contributor

k4n30 commented Aug 14, 2016

@trademarrk that's not the same issue, are you running PokemonGo-Map?

@k4n30 k4n30 closed this as completed Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants