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

Undefined Trainer constant name error

  • 9
    Posts
    9
    Years
    Hello all! I have started to create my own pokémon game, while it's fun i have encounterd a problem when editing the trainers. :/ so i hope somebody could help me with this.
    Also im new around here on PC.

    the problem!
    ---------------------------
    Pokemon Chaos Darkness
    ---------------------------
    Exception: RuntimeError
    Message: Undefined Trainer constant name: 
    Name must consist only of letters, numbers, and
    underscores and can't begin with a number.
    In addition, the name must be defined
    in trainertypes.txt.
    File PBS/trainers.txt, line 1

    
    Compiler:932:in `pbGetConst'
    Compiler:974:in `parseTrainer'
    Compiler:1387:in `pbCompileTrainers'
    Compiler:1385:in `loop'
    Compiler:1487:in `pbCompileTrainers'
    Compiler:3977:in `pbCompileAllData'
    Compiler:4095


    This exception was logged in
    C:\Users\Twidarkness\Saved Games/Pokemon Chaos Darkness/errorlog.txt.
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------

    I can't find where the error is in the PBS/Trainers.txt file is so could somebody help me?
    i will also post the trainer list if that helps.

    Trainer List
    #-------------------
    YOUNGSTER
    Ben
    2
    RATTATA,2,,,,,,,0
    RATTATA,3,,,,,,,0
    #-------------------
    LASS
    Wendy
    FURFROU,3,,,,,,,0
    PURRLOIN,3,,,,,,,1
    #-------------------
    YOUNGSTER
    Yoey
    1
    RATTATA,4,,,,,,,0
    #-------------------
    RIVAL6
    Oliviander,1
    2
    GIBLE,4,,,,,,,0
    CHARMANDER,6,,,,,,,0
    #-------------------
    RIVAL7
    Nina,1
    2
    SNEASEL,4,,,,,,,1
    SNORUNT,6,,,,,,,1
    #-------------------
    FIGHTER
    Alice,1
    2
    MAREEP,6,,,,,,,1,,,,,,Elly
    PIPLUP,8,,,,,,,1
    #-------------------
    AROMALADY
    Jennifer
    2
    BUDEW,7,,,,,,,1
    FLABÉBÉ,8,,,,,,,0
    #-------------------
    YOUNGSTER
    David
    2
    LILLIPUP,7,,,,,,,0
    PIDGEY,8,,,,,,,0
    #-------------------
    LASS
    Sara
    2
    PURRLOIN,7,,,,,,,1
    BUDEW,8,,,,,,,1
    #-------------------
    RIVAL8
    Yamato,1
    2
    STARLY,9,,,,,,,0
    TREECKO,11,,,,,,,0
    #-------------------
    YOUNGSTER
    Joe
    2
    ROGGENROLA,11
    DWEBBLE,12
    #-------------------
    HIKER
    Ronald
    2
    LARVITAR,11
    CRANIDOS,12
    #-------------------
    HIKER
    Pablo
    3
    ARON,11
    ONIX,11
    GEODUDE,12
    #-------------------
    YOUNGSTER
    Bobby
    3
    GEODUDE,11
    ROGGENROLA,11
    LILEEP,12
    #-------------------
    LEADER_JENAE
    Jenae,1
    3,SUPERPOTION,SUPERPOTION
    LILEEP,14,,MEGADRAIN,SANDSTORM,ACID,ANCIENTPOWER,,1
    ROGGENROLA,14,,SANDSTORM,IRONDEFENSE,ROCKBLAST,HEADBUTT,,0
    PUPITAR,16,,ROCKSLIDE,SANDSTORM,SCREECH,THRASH,,0
    #-------------------
    POKEMONRESEARCHER
    Stanford
    3,SUPERPOTION
    BRONZOR,12
    TYNAMO,12
    MAGNEMITE,14
    #-------------------
    TEAMROCKET_M
    Grunt,1
    2
    ZUBAT,12
    GLAMEOW,12
    #-------------------
    TEAMROCKET_M
    Grunt,2
    2
    CROAGUNK,12
    WOOBAT,12
    #-------------------
    TEAMROCKET_F
    Grunt,1
    2
    ZUBAT,12
    STUNKY,12
    #-------------------
    TEAMROCKET_F
    Grunt,2
    2
    WOOBAT,12
    MAGNEMITE,12
    #-------------------
    CHANELLER
    Cynthia,1
    2
    RIOLU,14,,,,,,,0
    GIBLE,16,,,,,,,1
    #-------------------
    HIKER
    Paul
    2
    ROGGENROLA,13,,,,,,0
    ONIX,14,,,,,,,0
    #-------------------
    HIKER
    Gregory
    3
    NOSEPASS,12,,,,,,,0
    ROGGENROLA,13,,,,,,,0
    ZUBAT,14,,,,,,,0
    #-------------------
    RUINMANIAC
    Senior
    2
    ANORITH,13,,,,,,,0
    SHIELDON,14,,,,,,,0
    #-------------------
    CAMPER
    John
    3
    ZUBAT,14,,,,,,,0
    TIMBURR,14,,,,,,,0
    ROGGENROLA,14,,,,,,,0
    #-------------------
    PICNICKER
    Julian
    3
    WOOBAT,14,,,,,,,1
    BUNEARY,14,,,,,,,1
    BUDEW,14,,,,,,,1
    #-------------------
    CAMPER
    Greg
    2
    PIDGEY,16,,,,,,,0
    RIOLU,16,,,,,,,0
    #-------------------
    PICNICKER
    Lucy
    3
    BUDEW,15,,,,,,,1
    GOTHITA,15,,,,,,,1
    MAREEP,15,,,,,,,0
    #-------------------
    YOUNGSTER
    Rufus
    3
    LILLIPUP,15,,,,,,,0
    KRICKETUNE,15,,,,,,,0
    RATTATA,15,,,,,,,0
    #-------------------
    LASS
    Luara
    2
    SKITTY,16,,,,,,,1
    BUNEARY,16,,,,,,,1
    #-------------------
    YOUNGSTER
    Terry
    3
    RATTATA,15,,,,,,,0
    STARAVIA,15,,,,,,,0
    TIMBURR,15,,,,,,,0
    #-------------------
    FISHERMAN
    Mack
    2
    MARILL,16
    FRILLISH,17
    #-------------------
    FISHERMAN
    Kenzo
    3
    WINGULL,15
    FRILLISH,15
    TENTACOOL,16
    #-------------------
    FISHERMAN
    Barny
    2
    TENTACOOL,16
    WINGULL,17
    #-------------------
    BLACKBELT
    Hugh
    3
    RIOLU,15
    TIMBURR,15
    MAKUHITA,16
    #-------------------
    CAMPER
    Clark
    2
    VENIPEDE,16
    NIDORANmA,17
    #-------------------
    PICNICKER
    Tiffany
    2
    GROWLITHE,16
    NIDORANfE,17
    #-------------------
    SUPERNERD
    Julia
    2
    BUNEARY,19
    SKITTY,19
    #-------------------
    TAMER
    Cain
    2
    RATTATA,19
    PATRAT,19
    #-------------------
    SUPERNERD
    Shirlly
    2
    HAPPINY,19
    MINCCINO,19
    #-------------------
    TAMER
    Jonathan
    2
    WHISMUR,19
    ZANGOOSE,19
    #-------------------
    SUPERNERD
    Mary
    3
    TEDDIURSA,18
    SLAKOTH,20
    VIGOROTH,20
    #-------------------
    TAMER
    Herbert
    3
    AIPOM,20
    MILTANK,18
    ZIGZAGOON,20
    #-------------------
    SUPERNERD
    Victoria
    3
    CHANSEY,18
    SENTRET,20
    FURRET,20
    #-------------------
    TAMER
    Darin
    3
    RATICATE,20
    WATCHOG,20
    DIGGERSBY,20
    #-------------------
    LEADER_MORGAN
    Morgan,1
    3,SUPERPOTION,SUPERPOTION
    PORYGON2,22,FLAMEORB,PSYBEAM,FACADE,CONVERSION2,AGILITY,1,1
    SWELLOW,22,FLAMEORB,AIRSLASH,DOUBLETEAM,FACADE,,0,0
    KANGASKHAN,24,LEFTOVERS,BITE,COMETPUNCH,MEGAPUNCH,ATTRACT,0,1

    Thanks in advance!
     

    Ice1

    [img]http://www.serebii.net/pokedex-xy/icon/712.pn
  • 3,447
    Posts
    9
    Years
    • Seen Nov 23, 2023
    #-------------------
    LASS
    Wendy
    FURFROU,3,,,,,,,0
    PURRLOIN,3,,,,,,,1

    Here's your error. the trainer doesn't have it's amount of pokemon defined.
     
    Back
    Top