• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Question] Someone help, i changed the character sprites and this error message occured

  • 8
    Posts
    5
    Years
    • Seen Jul 4, 2022
    =================

    [Sun Feb 14 22:52:39 China Standard Time 2021]
    [Pokémon Essentials version 18.1]
    Exception: RuntimeError
    Message: Undefined value POKEMONTRAINER_Red in PBTrainers
    File PBS/metadata.txt, section 0, key PlayerA
    POKEMONTRAINER_Red,trchar000,boy_bike,boy_surf,boy_run,boy_surf,boy_fish_offset,boy_fish_offset




    Backtrace:
    Compiler:424:in `checkEnumField'
    Compiler:401:in `csvEnumField!'
    Compiler:584:in `pbGetCsvRecord'
    Compiler:476:in `each'
    Compiler:476:in `pbGetCsvRecord'
    Compiler_PBS:42:in `pbCompileMetadata'
    Compiler_PBS:11:in `pbCompilerEachCommentedLine'
    Compiler:260:in `each_line'
    Compiler:260:in `pbCompilerEachCommentedLine'
    Compiler:257:in `open'
     
    The error says that POKEMONTRAINER_Red is a constant that doesn't exist in the PBS file trainertypes.txt. Did you also edit this file?
     
    Go to your trainertypes.txt file, on PBS. You have to look at the first line to find POKEMONTRAINER_Red (the main trainer of the game basically on the Metadata)

    The first line of Metadata, Player A, is the Trainer Type of your main character, and is vanilla Essentials that's Red. If you've changed the name of the first trainer of the TrainerType.txt, you have to change the one in Metadata.txt too

    In Metadata you don't have to add the first one tho, you can use anyone you like (However, I'm sure things like trback, run, bike...Are more comfortable to have on the 000 one so you don't have to change every single name)
     
    Back
    Top