The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Crashing when moving through a map connection

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old September 1st, 2013 (7:28 PM).
Swiftkilla's Avatar
Swiftkilla Swiftkilla is offline
     
    Join Date: Aug 2013
    Location: London, England
    Gender: Male
    Posts: 4
    Hi guys,

    I've recently played a few Pokemon games made in RPG Maker XP, and had a lot of fun, so I decided to try and make my own. I bought a copy of the program and I've really been enjoying it so far.

    However, I've just started linking my maps together (I've only made a couple of maps so far) and I've been getting crashes for some reason. They happen when moving back and forth between map connections in the space of a few seconds. The game crashes with the following error message:

    Code:
    Exception: NoMethodError
    
    Message: undefined method `[]' for nil:NilClass
    
    PokemonField:1405
    
    PokemonField:1402: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
    I've tried searching the error code and my problem but I haven't managed to find anything...any help would be greatly appreciated, thanks!
    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 1st, 2013 (7:56 PM).
    Radical Raptr's Avatar
    Radical Raptr Radical Raptr is offline
    #BAMFPokemonNerd
       
      Join Date: Mar 2011
      Location: everywhere
      Age: 22
      Gender: Male
      Nature: Sassy
      Posts: 1,120
      it means you have an event on that map with a tile that isnt there anymore (ie) you shortened the tileset and you left and event (or events) that still have a tile that isnt on the current tileset anymore - an easy fix is to remove the graphics of ALL the events and replacing them with either what they should be or nothing at all (graphics like NPC's and things that aren't on a tileset should not be a problem unless they do not exist anymore)
      __________________

      ~My Deviantart - Litharreon Wiki - Litharreon Game Download~

      Reply With Quote
        #3    
      Old September 1st, 2013 (8:02 PM).
      Swiftkilla's Avatar
      Swiftkilla Swiftkilla is offline
         
        Join Date: Aug 2013
        Location: London, England
        Gender: Male
        Posts: 4
        Quote:
        Originally Posted by Saving Raven View Post
        it means you have an event on that map with a tile that isnt there anymore (ie) you shortened the tileset and you left and event (or events) that still have a tile that isnt on the current tileset anymore - an easy fix is to remove the graphics of ALL the events and replacing them with either what they should be or nothing at all (graphics like NPC's and things that aren't on a tileset should not be a problem unless they do not exist anymore)
        I haven't edited the tileset - I'm using the default ones provided in the pokemon essentials download. The only graphics I've modified are the player character's sprites. Could it be related to that?
        Reply With Quote
          #4    
        Old September 2nd, 2013 (7:53 AM).
        Radical Raptr's Avatar
        Radical Raptr Radical Raptr is offline
        #BAMFPokemonNerd
           
          Join Date: Mar 2011
          Location: everywhere
          Age: 22
          Gender: Male
          Nature: Sassy
          Posts: 1,120
          I'm not really sure then - try looking it up, I'm pretty sure its been asked a bunch of times before - it happened to me once (or maybe it was similar to this) and I had a tileset error
          __________________

          ~My Deviantart - Litharreon Wiki - Litharreon Game Download~

          Reply With Quote
            #5    
          Old September 2nd, 2013 (8:14 AM).
          Nickalooose Nickalooose is offline
          --------------------
             
            Join Date: Mar 2008
            Gender: Female
            Posts: 1,309
            It looks like a tile error to me... Did you change a maps tileset? Because some tiles that were used may not be available on your new tileset.
            Reply With Quote
              #6    
            Old September 2nd, 2013 (11:54 AM).
            Swiftkilla's Avatar
            Swiftkilla Swiftkilla is offline
               
              Join Date: Aug 2013
              Location: London, England
              Gender: Male
              Posts: 4
              Quote:
              Originally Posted by Nickalooose View Post
              It looks like a tile error to me... Did you change a maps tileset? Because some tiles that were used may not be available on your new tileset.
              Nope, haven't changed any tilesets...Oh well, thanks for the suggestions guys. I guess I'll just mess around with the maps until something works
              Reply With Quote
                #7    
              Old September 2nd, 2013 (12:07 PM).
              Radical Raptr's Avatar
              Radical Raptr Radical Raptr is offline
              #BAMFPokemonNerd
                 
                Join Date: Mar 2011
                Location: everywhere
                Age: 22
                Gender: Male
                Nature: Sassy
                Posts: 1,120
                did you make a map with 1 tileset then switch to another? the same thing would happen
                __________________

                ~My Deviantart - Litharreon Wiki - Litharreon Game Download~

                Reply With Quote
                  #8    
                Old September 2nd, 2013 (4:06 PM).
                Swiftkilla's Avatar
                Swiftkilla Swiftkilla is offline
                   
                  Join Date: Aug 2013
                  Location: London, England
                  Gender: Male
                  Posts: 4
                  Nope, been sticking to the original tileset. I decided to try linking two other maps and they worked fine, so I remade my first map from scratch and everything is working great now. I still have no idea what caused it in the first place, but at least it's gone. Again, thanks for the suggestions guys!
                  Reply With Quote
                  Reply
                  Quick Reply

                  Sponsored Links
                  Thread Tools

                  Posting Rules
                  You may not post new threads
                  You may not post replies
                  You may not post attachments
                  You may not edit your posts

                  BB code is On
                  Smilies are On
                  [IMG] code is On
                  HTML code is Off

                  Forum Jump


                  All times are GMT -8. The time now is 4:34 AM.