Recipe Tweaker


Make changes to any number of recipes, export/copy the exchange string, and paste it into the startup setting to see them take effect. (Ctrl + \)

Utilities
7 days ago
1.1 - 2.0
3.12K
Manufacturing Cheats

b ✅ Recycling Recipe does not work

14 days ago
(updated 14 days ago)

Hello CodeGreen,

I noticed that the electronic circuit recycling (modded) recipe isn’t working correctly when I tried to remove wood from its results. The recipe does show up in your GUI and allows me to change it, but after importing the string and reload of the game, the recipe stayed unchanged.
I should note that when I tried to load my save, the game asked if I wanted to sync my mods (which was not mentioned in your guide), and I tried both with and without syncing, the result did not change.

Is this a known issue, or could it be related to one of my mods below?

Major mods in use:

Krastorio 2 Spaced Out (source of the recipe)
Cerys
Morhine
Correndum
Stars & Metals
Various QoL mods

String I created with your mod:
eNoFwUEKwCAMBMC/7Ll+wK+IpzWUgDUljZQi/r0zC9KF4TaUieqcGsmFH7uOE3nhdmuT8SCXAg25cOA1a6h17x/3Uhci

12 days ago

I wasn't able to reproduce it since I don't have the full mod list, but it seemed like it could happen if K2SO ever loaded after Recipe Tweaker, so I've added a load order dependency. Let me know if it works with version 0.1.8

12 days ago
(updated 12 days ago)

Thanks for looking into it, I updated the mod and tried again. This time it did change something, but not with expected results, so I decided to do some structured tests.

Original K2SO Electronic circuit board recycle recipe:
x 0 + 0.25 iron
x 0 + 0.25 wood
1 copper wire

Test 1 - removed wood (my overall goal):
Expected:
x 0 + 0.25 iron
1 copper wire
Actual:
x 0 + 0.25 wood
1 copper wire
So something changed, but the wrong item.

Test 2 – Removed copper
Expected:
x 0 + 0.25 wood
x 0 + 0.25 iron
Actual:
x 0 + 0.25 wood
1 copper wire

Test 3 - Removed Iron
Expected:
x 0 + 0.25 wood
1 copper wire
Actual (OK!):
x 0 + 0.25 wood
1 copper wire

To me, it looks like the ingredient/output order is being mismatched or desynced when the recipe is rebuilt.
Hopefully it gave you some insights, let me know if I can provide you some more info.

10 days ago

Okay, finally sat down to take a look at this... turns out I just forgot a table index in the result removal logic which was just removing the first X number of results from the recipe instead of the specific things, which took me way longer to find than it should have.
Fixed in 0.1.9, thanks for the extensive reporting!

9 days ago

Great work! Indeed, a missing table index makes sense.
No problem, and thanks for your time!

New response