Janky quality (BETA) deprecated


Implements a janky version of Factorio Space Age quality

Content
7 months ago
1.1
3.03K
Manufacturing

b [Fixed] Crash on removing modules

8 months ago

I had experienced the following crash error when trying to remove the Quality 3 (basic) modules from an Assembler 3 (basic) doing a programming recipe by using the right click and drag interaction while holding Quality 1 (basic) modules:

Error while running event janky-quality::on_player_reverse_selected_area (ID 176)
Unknown recipe name: programming-quality-assembling-machine-3
stack traceback:
[C]: in function 'create_entity'
janky-quality/control.lua:320: in function <janky-quality/control.lua:286>

7 months ago

Heh that's a unique edge case. Would be fixed for next version.

7 months ago

Thanks. I presume I shouldn't have been able to have quality modules on a programming/deprogramming machine?

7 months ago

Not exactly. The code looks for the name of the recipe, and if it ends with "-with-quality-X", it removes that value, but in this case, the recipe is "programming-quality-assembling-machine-3-with-quality-X" so it tries to make it into the wrong recipe name :P

New response