[kovarex] [1.0.0] Rocket silos without fixed_recipe don't save their current recipe to blueprints
Posted: Sun Aug 30, 2020 2:31 am
What it says on the tin. If you remove fixed_recipe from the rocket silo (and un-hide the rocket part so you can select it in the menu), the silo will not save the set recipe to blueprints.
Here is a small mod that I used while testing this:
Steps to reproduce:
1) Copy the above code to a data.lua file to run as a mod
2) Create a new game and enter cheat mode
3) Place a rocket silo
4) Click and set a recipe on the silo
5) Copy/cut/blueprint the silo, and place it somewhere else
6) The recipe will not be preserved
Here is a small mod that I used while testing this:
Code: Select all
data.raw["rocket-silo"]["rocket-silo"].fixed_recipe = nil
data.raw["recipe"]["rocket-part"].hidden = false
data:extend{
{
type = "recipe",
name = "rocket-part-alt",
energy_required = 1,
enabled = true,
hidden = false,
category = "rocket-building",
ingredients = {
{"raw-fish", 10}
},
result= "grenade"
}
}
1) Copy the above code to a data.lua file to run as a mod
2) Create a new game and enter cheat mode
3) Place a rocket silo
4) Click and set a recipe on the silo
5) Copy/cut/blueprint the silo, and place it somewhere else
6) The recipe will not be preserved