Code: Select all
Added "fluid" energy_source type can be used for both fuel-value based fluids, and heat capacity based fluids configured the same was as the generator entity.
Code: Select all
Added "fluid" energy_source type can be used for both fuel-value based fluids, and heat capacity based fluids configured the same was as the generator entity.
Yeah, thank you soo much for your help on discord
Code: Select all
local obj = util.table.deepcopy(data.raw["furnace"]["electric-furnace"])
obj.name = "smeltery"
obj.crafting_categories = {"metal_smelting"}
obj.minable = {mining_time = 0.1, result = "smeltery"}
obj.fluid_boxes =
{
{
production_type = "output",
pipe_picture = assembler2pipepictures(),
pipe_covers = pipecoverspictures(),
base_area = 10,
base_level = 1,
pipe_connections = {{ type="output", position = {2,0} }},
secondary_draw_orders = { north = -1 }
},
off_when_no_fluid_recipe = false
}
obj.energy_source =
{
type = "fluid",
max_temperature = 10000,
specific_heat = "10KJ",
max_transfer = "2GW",
min_working_temperature = 1500,
maximum_temperature = 10000.0,
fluid_usage_per_tick = 0.5,
fluid_consumption = 0.5,
fluid_box =
{
base_area = 1,
height = 2,
base_level = -1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{ type = "input-output", position = {0, 2} },
{ type = "input-output", position = {0, -2} }
},
production_type = "input-output",
filter = "lava",
minimum_temperature = 1500.0,
maximum_temperature = 10000.0
}
}
data:extend({ obj })
Code: Select all
local x = prot.collision_box[1][1] -- -1.4
local y = prot.collision_box[1][2] -- -1.4
x = math.floor (x*2)/2 - 0.5
y = math.floor (y*2)/2 + 2 -0.5
local position = {x=x, y=y}
local position_2 = {x=-x, y=y}
prot.energy_source.pipe_connections = {{position = position}, {position = position_2}}
Code: Select all
energy_source =
{
type = "fluid",
emissions = 0.1 / 6.5,
fluid_box =
{
base_area = 1,
height = 2,
base_level = -1,
pipe_connections =
{
{type = "input", position = {0, 1.5}}
},
pipe_covers = pipecoverspictures(),
pipe_picture = assembler2pipepictures(),
production_type = "input",
},
burns_fluid = true,
scale_fluid_usage = true,
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
}
}
}
Code: Select all
smoke
Code: Select all
emissions
Code: Select all
effectivity
Code: Select all
fluid_box
Code: Select all
burns_fluid
Code: Select all
scale_fluid_usage
Code: Select all
fluid_usage_per_tick
Code: Select all
maximum_temperature
Code: Select all
energy_source =
{
type = "fluid",
emissions = 0,
fluid_box =
{
base_area = 1,
height = 2,
base_level = -1,
pipe_connections =
{
{type = "input", position = {0, 1.5}}
},
pipe_covers = pipecoverspictures(),
pipe_picture = assembler2pipepictures(),
production_type = "input",
filter = "steam",
minimum_temperature = 100.0,
},
burns_fluid = false,
scale_fluid_usage = true,
maximum_temperature = 165,
smoke =
{
{
name = "light-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 = 10 / 32,
starting_vertical_speed = 0.08,
slow_down_factor = 1,
starting_frame_deviation = 60
}
},
}
Wait, so you would be able to use steam hotter than maximum_temperature ?if using colder steam, it will run at a slower speed, if using hotter steam and scale_fluid_usage = true, it will use less steam.Code: Select all
maximum_temperature
Yeah, that's the mod Klonan made. He occasionally edits the mod to make use of features as they're added to the game engine, so fluid burner was the previous new addition, and in the latest he makes use of fluid energy sources (not that I've seen the code of the latest version, he just thanked me for working on the code and told me he was going to use it.)BlueTemplar wrote: ↑Tue Mar 05, 2019 5:33 pm Oh, right, my bad, Klonan is likely the first that made a mod doing that :
https://mods.factorio.com/mod/KS_Power
Seems to go all the way back to 0.12 ?
(Perhaps not for the fluid burner though?)