Hot metals


A furnace doesn't just output cold usable results. You need to wait for them to cool down.

Content
12 days ago
2.0
1.69K
Factorio: Space Age Icon Space Age Mod
Manufacturing

g main_product for mod support

8 months ago

Hello! Thanks for building in mod support. By request, I am trying to add support for this to Titanium, Lead and Tin (and some of my other mods as I update them).

One issue I ran into was support for the main_product. Since this mod will remove items from the results list, recipes can run into the error "Recipe has invalid main product <item-name>. The product does not exist in the recipe product list." I think swapping out the main_product for the hot version when changing recipes should take care of this. Something like recipe.main_product = hotItem.name I think?

8 months ago

Hi brevven. Thanks for the request. I have a fix for the next release. I also noticed that the code fails when the main product is not the first result in the list. I think I should fix that as well.

8 months ago

Thank you. Yeah that sounds like a good idea, though I had not run into that one yet!

6 months ago

Recipe code now also works if the main result is not the first result in the results list and when there are multiple entries with the main result.

This thread has been locked.