• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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....!!!!

  • 7
    Posts
    13
    Years
    • Seen Apr 19, 2012
    Show i made my own trainer or it would be blank so i set the image in the database try to play it and i got this error: Exception: NameError
    Message: undefined local variable or method `value' for nil:NilClass
    Compiler:1016:in `pbCheckByte'
    Compiler:1126:in `pbCompileMoves'
    Compiler:1074:in `pbCompilerEachPreppedLine'
    Compiler:569:in `each_line'
    Compiler:569:in `pbCompilerEachPreppedLine'
    Compiler:566:in `open'
    Compiler:566:in `pbCompilerEachPreppedLine'
    Compiler:1074:in `pbCompileMoves'
    Compiler:3760:in `pbCompileAllData'
    Compiler:3885

    so i deleted it from the database but i still GET THIS F****** error
     
    What are you trying to create?

    An NPC trainer or your main character.
     
    I'm not fully understading this...

    So you created an NPC character on your map... Then, in trainers.txt, you put something like this:

    Code:
    [I]#-------------------
    HIKER
    Jim
    2
    BULBASAUR,10,10,,TACKLE,GROWL,,,false,false
    CHARMANDER,10,10,,SCRATCH,GROWL,,,false,false
    #-------------------[/I]
    Right?

    Then, within that NPC event, you gave him the conditional branch:

    Code:
    [I]Script: pbTrainerBattle(PBTrainers::HIKER,"Jim",_I("I enjoyed it."),false,0,false)[/I]
    Right?

    Then, you removed:

    Code:
    [I]#-------------------
    HIKER
    Jim
    2
    BULBASAUR,10,10,,TACKLE,GROWL,,,false,false
    CHARMANDER,10,10,,SCRATCH,GROWL,,,false,false
    #-------------------[/I]
    This, from trainers.txt...? I think what you done, is you only removed part of the trainer or haven't given the NPC a name, like this:

    Code:
     [I]#-------------------
     HIKER
     
     2
     BULBASAUR,10,10,,TACKLE,GROWL,,,false,false
     CHARMANDER,10,10,,SCRATCH,GROWL,,,false,false
     #-------------------[/I]
    
    [I]Script: pbTrainerBattle(PBTrainers::HIKER,"",_I("I enjoyed it."),false,0,false)[/I]
    Notice under HIKER, the name is missing or within the event itself, again, the name is missing... As far as I can read, the game cannot find the value, called, Name...

    That's my only answer, without more information... Unless anybody else can help you out, this could possibly be your problem!
     
    Back
    Top