• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • There is an important update regarding account security and 2FA. Please click here for more information.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
  • Imgur has blocked certain regions from viewing any images uploaded to their site. If you use Imgur, please consider replacing any image links/embeds you may have on PokéCommunity so everyone can see your images. Click here to learn more.

Region Map Crash

pokemasterintraining

New Beginning
  • 82
    Posts
    17
    Years
    Hello :) After making my region map and using the townmapgen.html
    I passed the data into the townmap.txt in the PBS Folder.
    But when I open up the pokegear and try to open my town map this error pops up and then it crashes

    --------------------------- Pokemon Essentials --------------------------- Exception: NoMethodError Message: undefined method `bitmap' for nil:NilClass PokemonRegionMap:224:in `pbMapScene' PokemonRegionMap:311:in `pbStartScreen' PokemonPokegear:137:in `update_command' PokemonPokegear:134:in `pbFadeOutIn' PokemonPokegear:134:in `update_command' PokemonPokegear:116:in `update' PokemonPokegear:65:in `main' PokemonPokegear:62:in `loop' PokemonPokegear:69:in `main' PokemonUtilities:892:in `pbLoadRpgxpScene' This exception was logged in C:\Users\Me\Saved Games/Pokemon Essentials/errorlog.txt. Press Ctrl+C to copy this message to the clipboard. --------------------------- OK ---------------------------

    Just in case here's whats on the townmap.txt file incase it helps
    [01]
    Name="Gralisea Region"
    Filename=map.png
    Point=6,10,"Arlise Town",,,,,
    Point=8,11,"Cameria Town",,,,,
    Point=8,8,"Tondio City",,,,,
    Point=9,8,"Soreen Forest",,,,
    Point=11,8,"Soreen Town",,,,,
    Point=11,5,"Lonvea Village",,,,,
    Point=10,6,"Lonvea Village",,,,,
    Point=11,6,"Lonvea Village",,,,,
    Point=11,11,"Prys Town",,,,,
    Point=15,5,"Nanabe Town",,,,,
    Point=17,9,"Tyrum City",,,,,
    Point=7,5,"Canalabe Town",,,,,
    Point=5,6,"Poliwag Hole",,,,,
    Point=5,3,"Alerisa City",,,,,
    Point=5,4,"Mt. Gralisea",,,,,
     
    First and foremost, check to make sure the image name you input is correct. I'm guessing "map.png" probably is, but it's worth making sure that's not why you get the error.

    Second, have you customized the town map script at all?
     
    Yeah I just cheked it was "Map.png" changed it to "map.png" but still nothing, and I haven't modified the town map script :)

    Oh I almost forgot when I try to open the town map, some text appears at the bottom
    saying "The map data could not be found"
     
    Yeah I just cheked it was "Map.png" changed it to "map.png" but still nothing, and I haven't modified the town map script :)

    Oh I almost forgot when I try to open the town map, some text appears at the bottom
    saying "The map data could not be found"

    Ah, I think I know what it is.

    Instead of using [01], try using [0]. Your map is trying to read from the default region [0] because you haven't instructed it otherwise. Region map [0] is read by default, but you have region map [1] defined.
     
    Back
    Top