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

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

15
Posts
7
Years
  • Age 23
  • 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.
 
971
Posts
7
Years
  • Age 21
  • Seen Nov 28, 2022
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.
 

Schrroms

Pokémon Infinite Fusion dev
334
Posts
8
Years
Are you sure Bulbasaur is correctly defined in your pokemon.txt file?
Make sure you have the line InternalName=BULBASAUR for Bulbasaur in pokemon.txt.
 
971
Posts
7
Years
  • Age 21
  • Seen Nov 28, 2022
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