• 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!
  • 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 with the definition of a trainer type

  • 4
    Posts
    10
    Years
    • Seen Jul 17, 2017
    it said this when i was trying to do a trainer battle with ash

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Field 'Male' must be 0 or greater

    File PBS/trainertypes.txt, line 76





    Compiler:488:in `pbGetCsvRecord'

    Compiler:472:in `each'

    Compiler:472:in `pbGetCsvRecord'

    Compiler:1331:in `pbCompileTrainers'

    Compiler:1330:in `pbCompilerEachPreppedLine'

    Compiler:632:in `each_line'

    Compiler:632:in `pbCompilerEachPreppedLine'

    Compiler:629:in `open'

    Compiler:629:in `pbCompilerEachPreppedLine'

    Compiler:1330:in `pbCompileTrainers'



    This exception was logged in

    C:\Users\Pierce\Saved Games/Pokemon Essentials/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    You missed some arguments in the trainer function (in Trainertypes.txt)

    1) INTERNAL NO. = Trainer type's ID. It's univocal.
    2) INTERNAL NAME = Trainer name ID. It's usually employed to define trainer's class
    3) BATTLE NAME = Trainer Battle Name. In battle, is employed to show trainer's class, like "Bugcatcher", "Youngster", "Gym Leader".
    4) BATTLE MONEY = Integer. It's a value used in algebra money. It's Optional and, if you want, you can leave it in blank.
    5) BACKGROUND MUSIC = String. It's an Optional value used to select and play a soundtrack during a battle. Quotation Marks are not required.
    6) BACKGROUND WIN MUSIC = String. It's an Optional value used to select and play a soundtrack when the player wins the game.
    7) MUSIC EFFECT = String. It's an Optional value used to select and play a ME when this trainer challenges the player.
    8) TRAINER GENDER = It's a value used to select trainer gender. Allowed values are Male, Female and Mixed.
    9) TRAINER SKILL = It's a value used to define trainer skill, in battle. If blank, this value become equals to battle money.

    An example is:
    15,GYMLEADER_BROCK,Gym Leader,96,GymBattle.mp3,,,Male,100
     
    Back
    Top