Quality Control

by raley

Adds a chance to change the quality of buildable units based on their activity level. Highly configurable, works well with other quality mods.

Content
10 days ago
2.0
397
Factorio: Space Age Icon Space Age Mod
Cheats

b [Fixed] Crash

17 days ago

The game crashes after a few seconds of playing.

Error while running event quality-control::on_nth_tick(1)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__quality-control
/scripts/core.lua:240: in function 'attempt_quality_change'
quality-control/scripts/core.lua:267: in function 'process_quality_attempts'
quality-control/scripts/core.lua:351: in function <quality-control/scripts/core.lua:284>

17 days ago

Thanks! I'm looking into it now.

17 days ago

A couple quick questions, were you using version 1.2.1 of the mod?
And was this on an existing save or new game?

I'm not able to replicate the bug, and while I think I have a fix for it, it's hard to tell. If you have a way to share the save game file I could make sure the fix will work before posting it.

17 days ago

Thank you so much!

This will be a huge help. It's safe to remove the file now if you don't want to leave it online.

17 days ago

Ok, this should be fully fixed in version 1.2.2

Please let me know if you run into any other problems.

17 days ago

Another error on the same save.

Error while running event quality-control::on_nth_tick(1)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__quality-control
/scripts/core.lua:277: in function 'attempt_quality_change'
quality-control/scripts/core.lua:315: in function 'process_quality_attempts'
quality-control/scripts/core.lua:403: in function <quality-control/scripts/core.lua:337>

17 days ago

Wow, I ran this for hours yesterday and couldn’t get it to fail. Sorry, will take another look in a few hours.

16 days ago

Ok, version 1.2.3 should have patched the specific bug in the error message. I tested a few scenarios that triggered the issue before the patch, and they were good afterward.

I played the save you shared for a few minutes and didn't see any crashes. I have found that some modded items don't upgrade well, and the random nature of how the upgrades work can make it hard to identify which one is a problem. Please let me know if you run into any other issues?

Thanks for your patience!

New response