I'm trying to create a custom boiler entity with an energy_source of type fluid. After copying the definition of the boiler entity from the base game and altering its energy_source to type fluid, I was able to successfully place it in-game and it functions as expected when petroleum gas is provided as an input (after I also edited the fuel value of petroleum gas to be 900 kJ).
However, this fluid boiler does not produce any sound. The working_sound definition is the same as the boiler entity and the fluid boiler is clearly working as intended in the provided video demonstration below.
This is the entire code in data.lua:
Code: Select all
local fluid_boiler = table.deepcopy(data.raw["boiler"]["boiler"])
fluid_boiler.name = "fluid-boiler"
fluid_boiler.energy_source = {
type = "fluid",
burns_fluid = true,
scale_fluid_usage = true,
effectivity = 1,
emissions_per_minute = { pollution = 30 },
light_flicker = {
color = {0,0,0},
minimum_intensity = 0.6,
maximum_intensity = 0.95
},
smoke = {
{
name = "smoke",
north_position = util.by_pixel(-38, -47.5),
south_position = util.by_pixel(38.5, -32),
east_position = util.by_pixel(20, -70),
west_position = util.by_pixel(-19, -8.5),
frequency = 15,
starting_vertical_speed = 0.0,
starting_frame_deviation = 60
}
},
fluid_box = {
volume = 200,
pipe_covers = pipecoverspictures(),
production_type = "input",
pipe_connections = {
{ flow_direction = "input", direction = defines.direction.south, position = { 0, 0.5 } },
},
}
}
data.raw.fluid["petroleum-gas"].fuel_value = "900kJ"
data:extend({
fluid_boiler,
{
type = "item",
name = "fluid-boiler",
icon = fluid_boiler.icon,
stack_size = 50,
place_result = "fluid-boiler",
},
{
type = "recipe",
name = "fluid-boiler",
energy_required = 0.5,
enabled = true,
ingredients = {
{ type = "item", name = "pipe", amount = 5 },
{ type = "item", name = "stone-furnace", amount = 1 }
},
results = {
{ type = "item", name = "fluid-boiler", amount = 1 }
}
}
})
I have also attached the factorio-current.log log file from the save I was running to demonstrate this behaviour.
