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

18 days ago

Game crashes on ongoing save (58 hrs, 180+ mods) in a ~minute after loading.

Error log

The mod Quality Control (1.2.0) caused a non-recoverable error.
Please report this error to the mod author.

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:222: in function 'attempt_quality_change'
quality-control/scripts/core.lua:278: in function 'process_quality_attempts'
quality-control/scripts/core.lua:371: in function <quality-control/scripts/core.lua:296>

17 days ago

Thanks for the bug report! And sorry about the error. I'm taking a look and will hopefully have a patch out soon.

17 days ago

No worries, bugs are part of the journey!
Take your time!

17 days ago
(updated 17 days ago)

Thanks for the kind words!

The patch is out, please let me know if you run into any other issues. This would have impacted other players so I'm really happy you reported it so fast.

Edit: I just realized that while I fixed one way this crash happens, there may still be another occurrence. You may still run into the issue, so I'd wait to re-enable this mod until the next version comes out (1.2.2)

17 days ago

Ok, should be fully fixed in version 1.2.2. I added several safety checks during processing to be certain.

Please let me know if you run into any other issues!

17 days ago
(updated 17 days ago)

So, in SP it plays smooth as butter.
Very satisfying to see all the entities are upgrading in 66+ hours save.
No lag,

But, unfortunately, in MP my wife (the client) see this pop-up:

Cannot join. The following mod event handlers are not identical between you and the server. This indicates that the following mods are not multiplayer (save/load) safe. (See the log file for more details):
mod-quality-control

We also tried a new game - same result. So, this mod is Single player only atm.
Personally, I don't remember this error at all in my ~2k hours.
Your mod is a real magic x))

PS Here is game's log, related to the topic. Hope it can help.
https://pastebin.com/t3gja915

17 days ago

Thank you so much!

Those logs are fascinating. I’ll need to read up on what’s needed for multiplayer. I was hoping it would just work >.<

17 days ago

True! Wish it will be not much pain to fix - mod is sick!

15 days ago

Hi hi!

I pushed out a change that I hope will fix the multiplayer issue; but I'm not 100% confident as I wasn't able to test using two different players and computers. If you have time to try it out again I would appreciate it!

13 days ago

Yeap, its working flawless now! Thank you!

13 days ago

Yay! I'm so happy to hear that!

New response