• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Error when walking onto a map

Deoxysomega314

And Egg
  • 16
    Posts
    14
    Years
    It only happens on one of my maps (that I can tell).
    Sometimes when I walk onto the map this error will pop up

    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass
    PokemonField:1450
    PokemonField:1447:in `call'
    PBEvent:54:in `trigger'
    PBEvent:49:in `each'
    PBEvent:49:in `trigger'
    Game_Character_2:67:in `update_move'
    Game_Character_2:6:in `update_old2'
    Walk_Run:92:in `update'
    Game_Event_:249:in `update'
    Game_Map_:349:in `update'

    It's getting kind of annoying and I'm not sure what's causing it.
     
    Umm, I am thinking its an Event. One of them on the map you are going to is messed up. Make sure none of the Events are Parallel Processing, or having any loops and conflicting parts in it. I always get the same basic eror when I parallel process
     
    Umm, I am thinking its an Event. One of them on the map you are going to is messed up. Make sure none of the Events are Parallel Processing, or having any loops and conflicting parts in it. I always get the same basic eror when I parallel process

    You can have parallel process events on any map? Autorun are the tricky ones. You can't have more than one unless they are temp and such.
    ie: if on event; time expired; etc
     
    The only events on the map are door events and two regular NPCs.
    There aren't any autorun/parallel process events (beside the second page of the door events).
     
    This may be another case of out-of-range tiles caused by switching from a longer tileset to a shorter one. Check your map for supposedly blank tiles but which, when you right-click them, don't select the top left blank tile in the tileset - these are your problem tiles and need to be drawn over using aforementioned top left blank tile.

    An easy way to do this is to use the Flood Fill tool to fill in all blank tiles with a "junk" tile, and then fill in all those junk tiles with the top left blank tile.
     
    Unless they're hiding from me, there aren't any blank tiles on the map. :/
    I've used the same tileset for all the maps nearby too and they all seem to be fine.
     
    I've had a situation like this before but a little different. I used the same variable as the pokéball icons in the pokéCenter for another event in the out door map and whenever I went inside my game would crash. It mentions PBEvents and Game_Maps and Game_Events. Check those
     
    Back
    Top