Page 1 of 1

[boskid][2.0.24] Crash creating filter with zero ID with non-default count or mode, InfinityContainerSettings check fail

Posted: Thu Dec 05, 2024 10:00 pm
by KikuGIe
Somehow my mod creating an infinity loader with a filter freezes the game along with my entire PC, which can only be fixed with a restart.

Steps to reproduce:
1. Install the attached mod file
2. Load a save file
3. Open factoriopedia and select burner mining drill
4. The Factorio should freeze and crash

The relevant code is at *library/environment.lua:246*. Pardon the messy code, it's in development - I took a snapshot of it to reproduce the issue.

Re: [2.0.24] (crash) Attempting to create Filter with zero ID with non-default count or mode

Posted: Thu Dec 05, 2024 10:09 pm
by KikuGIe
This appears to happen when `name` in `set_infinity_container_filter` is nil.

Re: [boskid][2.0.24] Crash creating filter with zero ID with non-default count or mode, InfinityContainerSettings check

Posted: Tue Dec 10, 2024 8:17 pm
by boskid
Thanks for the report. Issue should be now fixed for 2.0.25. It was indeed related to `name` missing when count (or mode) is provided.