[2.0.60] Unexpected error whilst modding pY

Bugs that are actually features.
protocol_1903
Filter Inserter
Filter Inserter
Posts: 289
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

[2.0.60] Unexpected error whilst modding pY

Post 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 230 times
Attachments
factorio-current.log
(1.16 MiB) Downloaded 25 times
pyae2.0.zip
save file
(8.33 MiB) Downloaded 23 times
pyalienlife_3.0.48.zip
this is NOT the one listed on the mod page or repository, you must use this one
(1.28 MiB) Downloaded 23 times
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15975
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.60] Unexpected error whilst modding pY

Post 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.
If you want to get ahold of me I'm almost always on Discord.
protocol_1903
Filter Inserter
Filter Inserter
Posts: 289
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: [2.0.60] Unexpected error whilst modding pY

Post by protocol_1903 »

Thanks for the reply, wasn't quite sure what was causing it but that explanation makes sense.
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Post Reply

Return to “Not a bug”