Closed ThCompiler closed 1 year ago
Thanks for the report! This is fixed for the next release.
Extended unit-test-009
in https://github.com/Arch666Angel/mods/commit/02c11b7006339726a9955580a41ad5f0612280e0 to catch this issue.
Unit test result using the master branch (without the fix in https://github.com/Arch666Angel/mods/commit/96d0a47923a13e04682e13b9b892a2d235d2b6f8):
Starting unit test 009.
There is no suitable machine or character that can craft recipe "solid-nitroglycerin" (crafting category "chemistry").
There is no suitable machine or character that can craft recipe "solid-trinitrotoluene" (crafting category "chemistry").
There is no suitable machine or character that can craft recipe "bob-fertiliser" (crafting category "chemistry").
There is no suitable machine or character that can craft recipe "nitroglycerin" (crafting category "chemistry").
Unit test 009 FAILED!
Reopening the issue for bob-fertiliser
...
Now passes unit test 9 in all test configurations!
Describe the bug Recipes: solid-nitroglycerin, solid-trinitrotoluene, nitroglycerin, - are not produced at any plant.
What I found In the latest release, the
chemistry
category was removed for thecraft category
field in advanced chemical plant. Recipes for explosives At the same time, thechemistry
category remained in the explosives recipe. Therefore, this recipe should only be available at a conventional chemical plant. But the game does not allow you to use this recipe due to the fact that the number of input liquids is 3. And such a number of inputs is only in an advanced chemical plant.Recipes for nitroglycerin In this case, when changing the nitroglycerin recipe, the
crafting_category
field is set. Therefore, thecategory
field remains unchanged and is saved with the valuechemistry
. And this recipe also has 3 liquids at the input and should be producing in an advanced chemical plant.To Reproduce Information to reproduce the behavior:
Screenshots Used
FNEI
mod to display information about recipes.Recipes for explosives
Recipes for nitroglycerin
Suspected issue in mod code angelspetrochem/prototypes/recipes/petrochem-solids.lua
angelspetrochem/prototypes/buildings/advanced-chemical-plant.lua
angelspetrochem/prototypes/global-override/bobwarfare.lua