• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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....!!!!

8
Posts
12
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
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    What are you trying to create?

    An NPC trainer or your main character.
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    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