Alrighty,
i got the whole production set. Just a small problem.
My new factory will produce my new liquid. It accepts the recipe but the output is always water. The water is 100degree, as wished.
What i did:
1. Add a new fluid:
Code: Select all
local potatoesoup =
{
type = "fluid",
name = "potatoesoup",
default_temperature = 100,
max_temperature = 100,
heat_capacity = "1KJ",
base_color = {r=0,74, g=0.74, b=0.3},
flow_color = {r=0.7, g=0.7, b=0.4},
icon = "__robotarmy__/graphics/icons/potatoesoup.png",
order = "a[fluid]-p[potatoesoup]",
pressure_to_speed_ratio = 0.4,
flow_to_energy_ratio = 0.59,
}
2. Add a recipe for the new fluid:
Code: Select all
{
type = "recipe",
name = "potatoe_soup",
energy_required = 1,
enabled = "true",
order = "b[fluid-chemistry]-f",
category = "chemistry",
ingredients =
{
{type="fluid", name="water", amount=60},
{type="item", name="potatoe", amount=5},
{type="item", name="coal", amount=1},
},
results =
{
{type="fluid", name="potatoesoup", amount=60, temperature = 100},
},
main_product= "",
icon = "__robotarmy__/graphics/icons/potatoe.png",
subgroup = "fluid-recipes"
},
3. Made a new factory:
Code: Select all
local kitchen_1 =
{
type = "assembling-machine",
name = "kitchen_1",
icon = "__base__/graphics/icons/assembling-machine-1.png",
flags = {"placeable-neutral", "placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "kitchen_1_item"},
max_health = 200,
corpse = "big-remnants",
dying_explosion = "medium-explosion",
resistances =
{
{
type = "fire",
percent = 70
}
},
fluid_boxes =
{
{
production_type = "input",
pipe_picture = assembler2pipepictures(),
pipe_covers = pipecoverspictures(),
base_area = 10,
base_level = -1,
pipe_connections = {{ type="input", position = {0, -5.8} }}
},
{
production_type = "output",
pipe_picture = assembler2pipepictures(),
pipe_covers = pipecoverspictures(),
base_area = 10,
base_level = 1,
pipe_connections = {{ type="output", position = {0, 5.5} }}
},
off_when_no_fluid_recipe = true
},
collision_box = {{-5.5, -5.5}, {5.5, 5.5}},
selection_box = {{-5.5, -5.5}, {5.5, 5.5}},
animation =
{
filename = "__robotarmy__/graphics/entity/kitchen/kitchen_1.png",
priority="high",
width = 650,
height = 550,
scale = 0.55,
frame_count = 1,
line_length = 1,
},
crafting_categories = {"chemistry"},
crafting_speed = 0.5,
energy_source =
{
type = "electric",
usage_priority = "secondary-input",
emissions = 0.05 / 1.5
},
energy_usage = "1kW",
ingredient_count = 5,
open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
working_sound =
{
sound = {
{
filename = "__base__/sound/assembling-machine-t1-1.ogg",
volume = 0.8
},
{
filename = "__base__/sound/assembling-machine-t1-2.ogg",
volume = 0.8
},
},
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
apparent_volume = 1.5,
}
}