• 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 in trainers.txt

  • 1
    Posts
    7
    Years
    • Seen Feb 6, 2018
    So, I was making new trainers for my gym, but then it told me that the prefab Brock had an error. Can anyone tell my how to fix it?

    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 17.2]

    Exception: RuntimeError

    Message: Expected a species name: LEADER_Brock

    File PBS/trainers.txt, line 8

    LEADER_Brock



    Compiler:2560:in `pbCompileTrainers'

    Compiler:2553:in `each'

    Compiler:2553:in `pbCompileTrainers'

    Compiler:2530:in `loop'

    Compiler:2667:in `pbCompileTrainers'

    Compiler:4401:in `pbCompileAllData'

    Compiler:4515



    This exception was logged in

    C:\Users\ross3\Saved Games\Pokemon Essentials\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    You've formatted your trainer wrong.
    It's usually like this:
    #-------------------------------
    Code:
    LEADER_Brock #TrainerType
    Brock #Name
    2,FULLRESTORE,FULLRESTORE #ID and Items
    GEODUDE,12,,DEFENSECURL,HEADSMASH,ROCKPOLISH,ROCKTHROW,0,M,,,,20 #Pokémon1
    ONIX,14,SITRUSBERRY,HEADSMASH,ROCKTHROW,RAGE,ROCKTOMB,0,M,,shiny,,20,,Rocky,,19 #Pokémon2

    Using Debug mode to make trainers is easier to do as well
     
    What exactly is wrong is that the the trainer before LEADER_Brock is missing one or more Pokémon. For instance, you've said it should get 5 Pokémon, but have only given it 4.
     
    Back
    Top