Factorio Standard Library

by Kryzeth

Unofficial fork of the Factorio Standard Library, which was a project to bring Factorio modders high-quality, commonly-required utilities and tools. Compatibility with older mods which relied on the original stdlib mod is not guaranteed.

Internal
6 days ago
2.0
68.1K

b [Not My Mod] Kras2 Air Purifier Helper Error on Restock

Updating kry_stdlib from 2.0.9 to 2.0.10 caused a crash in 'Krastorio 2 - Air Purifier Helper' and/or 'Krastorio 2 - Air Purifier':


The mod Krastorio 2 - air purifier helper (2.0.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event kr-air-purifier-helper::on_object_destroyed (ID 178)
Unknown item name: kr-used-pollution-filter
stack traceback:
    [C]: in function 'create_entity'
    __kr-air-purifier-helper__/control.lua:196: in function 'try_to_take_out_used_filters'
    __kr-air-purifier-helper__/control.lua:232: in function '?'
    __kr-air-purifier-helper__/control.lua:248: in function <__kr-air-purifier-helper__/control.lua:245>

Rolling kry_stdlib back to 2.0.9 restored functionality.

9 days ago

That is.. unusual. Neither of those mods have a dependency to this one, and they don't appear to be using any of my functions? This also seems to be a runtime error, which I didn't touch in the latest update.. I have no idea what could possibly be causing this issue.

That being said, during my preliminary testing (involving Editor Extensions to increase the game speed until the air filter completed one cycle), the helper function appears to be broken regardless of kry_stdlib version, since it causes the same error for me even without stdlib running. (though the base mod works just fine). This appears to be entirely unrelated to my mod.

I figured it out. There is no such thing as kr-used-pollution-filter in the air purifier mod that the helper mod works with. There is, however, a used-pollution-filter. Removing the first three characters in a single line of a single file in the helper mod made everything work again. :facepalm:

The REAL question is, of course, how the heck the helper mod has been working just fine for over a month with that mistake in it. Go figure.

...and the reason I thought that it was your library somehow involved is because that was the only mod updated before the helper mod crashed, so I thought that perhaps something you had done had somehow caused problems with the other mod(s). :shrug: Sorry for wasting your time.

Cheers!

P.S. Thank you for your service to the community. Your work is greatly valued.

9 days ago

That is quite odd indeed... but I'm glad you were able to figure out the cause, and a fix for the issue.

And thanks, I'm very glad you've been enjoying.. whichever of my mods you use lol. This one mod powers quite a few of them!

New response