The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Cannot make new trainers

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 January 21st, 2013 (2:20 PM).
Mortalis's Avatar
Mortalis Mortalis is offline
dreadnaught
  • Crystal Tier
 
Join Date: May 2010
Location: Canada
Age: 20
Gender: Male
Nature: Naughty
Posts: 345
Hey everyone, I keep getting this error whenever I try to create a trainer in the Editor:

Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass
PokeBattle_Pokemon:729:in `initialize'
PokemonTrainers:102:in `new'
PokemonTrainers:102:in `pbNewTrainer'
PokemonTrainers:88:in `loop'
PokemonTrainers:111:in `pbNewTrainer'
PokemonTrainers:80:in `each'
PokemonTrainers:80:in `pbNewTrainer'
PokemonEditor:3696:in `pbTrainerBattleEditor'
PokemonEditor:3653:in `pbListScreenBlock'
PokemonEditor:1572:in `loop'

This only happens when I create a trainer. Creating a trainer type is fine, but actually creating the trainer produces this error. I'm not sure what to do.
Reply With Quote

Relevant Advertising!

  #2    
Old January 21st, 2013 (2:29 PM).
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
     
    Join Date: Feb 2009
    Age: 22
    Gender: Other
    Nature: Naughty
    Posts: 2,644
    Quote:
    Originally Posted by SooperTrooper View Post
    Hey everyone, I keep getting this error whenever I try to create a trainer in the Editor:

    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass
    PokeBattle_Pokemon:729:in `initialize'
    PokemonTrainers:102:in `new'
    PokemonTrainers:102:in `pbNewTrainer'
    PokemonTrainers:88:in `loop'
    PokemonTrainers:111:in `pbNewTrainer'
    PokemonTrainers:80:in `each'
    PokemonTrainers:80:in `pbNewTrainer'
    PokemonEditor:3696:in `pbTrainerBattleEditor'
    PokemonEditor:3653:in `pbListScreenBlock'
    PokemonEditor:1572:in `loop'

    This only happens when I create a trainer. Creating a trainer type is fine, but actually creating the trainer produces this error. I'm not sure what to do.
    Did you compile the Trainer Data?
    Or, did you use the correct Internal name provided?
    __________________
    gone.
    Reply With Quote
      #3    
    Old January 21st, 2013 (3:22 PM).
    WinterKirby's Avatar
    WinterKirby WinterKirby is offline
       
      Join Date: Dec 2012
      Age: 5
      Gender: Male
      Nature: Mild
      Posts: 152
      I just edit the PBS file directly. It keeps me from having to deal with these errors and it's much faster, in my opinion.
      __________________
      X/Y Friend Code: 1349-5852-1728 | Pinkie | Flying | Hoot-Hoot, Pidgey, and Tropius

      Reply With Quote
        #4    
      Old January 21st, 2013 (3:23 PM).
      Maruno's Avatar
      Maruno Maruno is offline
      Lead Dev of Pokémon Essentials
         
        Join Date: Jan 2008
        Location: England
        Posts: 5,172
        Try searching for the error message before making yet another thread about it.
        __________________
        Go to the Pokémon Essentials Wiki

        | Downloads | Tutorials | Fangames |
        | All Animations Project |

        Follow me on Twitter: @maruno42


        Reply With Quote
          #5    
        Old January 21st, 2013 (3:23 PM).
        Mortalis's Avatar
        Mortalis Mortalis is offline
        dreadnaught
        • Crystal Tier
         
        Join Date: May 2010
        Location: Canada
        Age: 20
        Gender: Male
        Nature: Naughty
        Posts: 345
        My apologies, but I honestly did try searching, and I couldn't find anything. I must have skipped over it by accident. Thank-you.
        Reply With Quote
          #6    
        Old March 1st, 2013 (4:14 PM). Edited March 1st, 2013 by Nathan.
        Nathan's Avatar
        Nathan Nathan is offline
        Blade of Justice
        • Silver Tier
         
        Join Date: Jul 2012
        Location: Earth
        Age: 19
        Gender: Male
        Nature: Timid
        Posts: 4,065
        Each time i try making a new trainer in the Editor, it gives me this:

        Sorry, I made a new thread and somehow it ended up here. What's happening?
        __________________
        || ||
        Reply With Quote
          #7    
        Old March 2nd, 2013 (3:02 PM).
        Mortalis's Avatar
        Mortalis Mortalis is offline
        dreadnaught
        • Crystal Tier
         
        Join Date: May 2010
        Location: Canada
        Age: 20
        Gender: Male
        Nature: Naughty
        Posts: 345
        Because you got the same error as me. Maruno already gave the solution via a link another thread.
        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 5:37 AM.