• 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?".
  • Forum moderator applications are now open! Click here for details.
  • 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
6
Years
  • Age 20
  • 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
---------------------------
 

Sparkin

Guest
0
Posts
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
 
971
Posts
7
Years
  • Age 21
  • Seen Nov 28, 2022
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