• 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.

I get an error when trying to edit Pokemon in PBS.

  • 15
    Posts
    8
    Years
    • Seen Mar 26, 2019
    Exception: RuntimeError
    Message: Undefined species constant name: [BULBASAUR]
    Name must consist only of letters, numbers, and
    underscores and can't begin with a number.
    Make sure the name is defined in
    PBS/pokemon.txt.
    File PBS/tm.txt, line 15
    BULBASAUR,IVYSAUR,VENUSAUR,CHARMANDER,CHARMELEON,CHARIZARD,SQUIRTLE,WARTORTLE,BLASTOISE,BUTTERFREE,BEEDRILL,PIDGEY,PIDGEOTTO,PIDGEOT,RATTATA,RATICATE,SPEAROW,FEAROW,EKANS,ARBOK,PIKACHU,RAICHU,SANDSHRE...

    Compiler:706:in `pbGetConst'
    Compiler:749:in `parseSpecies'
    Compiler:2055:in `pbCompileMachines'
    Compiler:2052:in `each'
    Compiler:2052:in `pbCompileMachines'
    Compiler:2037:in `each_line'
    Compiler:2037:in `pbCompileMachines'
    Compiler:4108:in `pbCompileAllData'
    Compiler:4219


    How do I fix this?

    I did not like the explanation of BULBASAUR, changed the description, and saved it. And I ran the game. However, when the above error message appears, the game will end.

    Or should I replace it with an editor? Pokemon editing in the editor is too messy. Pokemon is not well aligned.
     
    Exception: RuntimeError
    Message: Undefined species constant name: [BULBASAUR]
    Name must consist only of letters, numbers, and
    underscores and can't begin with a number.
    Make sure the name is defined in
    PBS/pokemon.txt.
    File PBS/tm.txt, line 15
    BULBASAUR,IVYSAUR,VENUSAUR,CHARMANDER,CHARMELEON,CHARIZARD,SQUIRTLE,WARTORTLE,BLASTOISE,BUTTERFREE,BEEDRILL,PIDGEY,PIDGEOTTO,PIDGEOT,RATTATA,RATICATE,SPEAROW,FEAROW,EKANS,ARBOK,PIKACHU,RAICHU,SANDSHRE...

    Compiler:706:in `pbGetConst'
    Compiler:749:in `parseSpecies'
    Compiler:2055:in `pbCompileMachines'
    Compiler:2052:in `each'
    Compiler:2052:in `pbCompileMachines'
    Compiler:2037:in `each_line'
    Compiler:2037:in `pbCompileMachines'
    Compiler:4108:in `pbCompileAllData'
    Compiler:4219


    How do I fix this?

    I did not like the explanation of BULBASAUR, changed the description, and saved it. And I ran the game. However, when the above error message appears, the game will end.

    Or should I replace it with an editor? Pokemon editing in the editor is too messy. Pokemon is not well aligned.

    Name must consist only of letters, numbers, and
    underscores and can't begin with a number.
    Make sure the name is defined in
    PBS/pokemon.txt.
     
    To be of at least some help, every Pokémon defined in pokemon.txt must have the following fields (You can find this in the compiler script):
    REQUIRED FIELDS
    You then have the option to define more fields (Also in the compiler script):
    OPTIONAL FIELDS
     
    Back
    Top