Relic Castle

Hi there. An error from Aster Violet. (Pink and Purple have the same problem.)
Whenever I receive an egg from the daycare I get the error below.
The daycare script is untouched. Perhaps the problem is in the Pokemon PBS?
I tried several Pokemon, with and without ditto. Always the same.
Any ideas? Googling didn't turn up anything useful.

I'm using Essentials 16.2
If it helps, the game with all it's files and the rxproj is available here:
https://reliccastle.com/threads/1368/

The error log:
-------------------------
Code:
Exception: RuntimeError
Message: Script error within event 1, map 118 (ROUTE 510):
Exception: SystemStackError
Message: Section126:202:in `pbGetBabySpecies'stack level too deep
***Full script:
pbDayCareGenerateEgg
$PokemonGlobal.daycareEgg=0
$PokemonGlobal.daycareEggSteps=0
 
Interpreter:243:in `pbExecuteScript'
Pokemon_Evolution:197:in `loop'
Pokemon_Evolution:215:in `pbGetBabySpecies'
Pokemon_Evolution:191:in `pbRgssOpen'
SpriteWindow:1776:in `open'
SpriteWindow:1776:in `pbRgssOpen'
Pokemon_Evolution:191:in `pbGetBabySpecies'
Pokemon_Evolution:219:in `pbGetBabySpecies'
Pokemon_Evolution:219:in `pbGetBabySpecies'
Pokemon_Evolution:219:in `pbGetBabySpecies'
 
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494: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'
Top