Solved Elite Battle System Error

Sonchu

Novice
Member
Posts
12
#1
I installed both the utilities, and elite battle system into a copy of my game, and when I try to fight a trainer, this error comes up.

---------------------------
Pokemon Moonlit Skies
---------------------------
Exception: RuntimeError

Message: Script error within event 11, map 88 (Test Map 1):

Exception: SystemStackError

Message: Section178:661:in `pbWait_updater'stack level too deep

***Full script:

pbTrainerBattle(PBTrainers::YOUNGSTER,"Aiden",_I("No, I lost..."),false,0,false,0)

Interpreter:243:in `pbExecuteScript'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'



Interpreter:276:in `pbExecuteScript'

Interpreter:794:in `command_111'

Interpreter:320:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Scene_Map:103:in `update'

Scene_Map:101:in `loop'

Scene_Map:114:in `update'

Scene_Map:68:in `main'

I also get this error when trying a wild encounter.

---------------------------
Pokemon Moonlit Skies
---------------------------
Exception: SystemStackError

Message: stack level too deep

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'

Settings:661:in `pbWait_updater'


Could anybody help with these issues?

Thank you.
 

Aki

Starry eyed
Member
#2
Not sure about the wild encounter, but I think the trainer event is formatted a bit off.

You have: pbTrainerBattle(PBTrainers::YOUNGSTER,"Aiden",_I("No, I lost..."),false,0,false,0)
which is kinda formatted like it's meant to have a "sent out last pokemon" dialogue, which is a feature of EBS, that's not how default Essentials battles are formatted.

I think it should be:
pbTrainerBattle(PBTrainers::YOUNGSTER,"Aiden",["No, I lost...","I still have one more Pokemon!",],false,0,false)

Or, for a more standard setup:
pbTrainerBattle(:YOUNGSTER,"Aiden",_I("No, I lost..."),false,0,false,0)
 

Sonchu

Novice
Member
Posts
12
#3
Not sure about the wild encounter, but I think the trainer event is formatted a bit off.

You have: pbTrainerBattle(PBTrainers::YOUNGSTER,"Aiden",_I("No, I lost..."),false,0,false,0)
which is kinda formatted like it's meant to have a "sent out last pokemon" dialogue, which is a feature of EBS, that's not how default Essentials battles are formatted.

I think it should be:
pbTrainerBattle(PBTrainers::YOUNGSTER,"Aiden",["No, I lost...","I still have one more Pokemon!",],false,0,false)

Or, for a more standard setup:
pbTrainerBattle(:YOUNGSTER,"Aiden",_I("No, I lost..."),false,0,false,0)
I was able to fix the issues. Thank you for your help.
 
Top