[v17.2] Try Start the Game and RunTimeError - trainer.txt and trainertypes.txt

WolfPP

Discord Wolf#1235
Member
Joined
Aug 24, 2018
Posts
101
Age
29
Hello!

When i open the game (v17.2), crash with this:

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


I untill delete ALL in trainers.txt and trainertypes.txt and keep this issue :/

How can i do correctly?

PS: I just change Characters;Battlers;Icons folders and delete all in trainertypes and trainers.txt

Ty ty!
 
Last edited:

chikorita

Novice
Member
Joined
Apr 2, 2017
Posts
43
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


The error code is literally saying what you need to do to fix your problem. ALWAYS read the error code, most of the time it will say what you are doing wrong, and what is needed to fix the problem. This way you can save time without having to wait until someone answer your question (not that asking is a bad thing).
 

WolfPP

Discord Wolf#1235
Member
Joined
Aug 24, 2018
Posts
101
Age
29
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


The error code is literally saying what you need to do to fix your problem. ALWAYS read the error code, most of the time it will say what you are doing wrong, and what is needed to fix the problem. This way you can save time without having to wait until someone answer your question (not that asking is a bad thing).

I got it! Ty ty :D
Now when i will att (with script or something) i make a backup. That fix was a wrong write any script than i do not remember (LOL)

I agree, Always read <3

Ty so much!
 
Top