Page 1 of 1

[2.0.60] Unexpected error whilst modding pY

Posted: Fri Jul 25, 2025 5:50 am
by protocol_1903
I was working on some TURD scripts for pY when this error ocurred. This error is completely reproduceable on my machine.

Mods were all pYmods from the repos (master branch, not yet on portal), the fork of AlienLife where I was working, FMTK Debug Adapter, Enable all Feature Flags, flib, and Recipe Book. Full log file, save data, and AlienLife build attached below.

I was able to cause the error by loading the attached save, clicking on the pY codex, opening the TURD tab and Compost upgrade dropdown, then selecting the second option (Sweet Tooth). The game stuttered for a moment then errored.

Screenshot of last section of log file, for brevity:
07-24-2025, 22-42-59.png
07-24-2025, 22-42-59.png (89.39 KiB) Viewed 229 times

Re: [2.0.60] Unexpected error whilst modding pY

Posted: Fri Jul 25, 2025 11:18 am
by Rseding91
Thanks for the report however this is a “don’t do that” scenario. You are creating an entity in the entity created event and having it fire the created entity event again. This results in an infinite loop and eventually stack overflows and crashes.

The only answer is: don’t do that.

Re: [2.0.60] Unexpected error whilst modding pY

Posted: Mon Jul 28, 2025 5:33 am
by protocol_1903
Thanks for the reply, wasn't quite sure what was causing it but that explanation makes sense.