adamo's gas boiler
55
gas-boiler/changelog.txt
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.1.0
|
||||||
|
Date: 2020-11-15
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
- Incremented to version 1.0.
|
||||||
|
|
||||||
|
Entities:
|
||||||
|
- Reduced fuel input fluid box to height 1.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.5
|
||||||
|
Date: 2020-02-03
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
- Incremented to version 18.
|
||||||
|
- Copied old assembler 1 graphics from 0.17
|
||||||
|
because they match the boiler's color.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.4
|
||||||
|
Date: 2019-11-26
|
||||||
|
|
||||||
|
Locale:
|
||||||
|
- Added Russian translations provided by Va7ya.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.3
|
||||||
|
Date: 2019-09-30
|
||||||
|
|
||||||
|
Graphics:
|
||||||
|
- Increased secondary draw orders on south-
|
||||||
|
facing fuel connection picture so it will
|
||||||
|
cover the working_light picture. I plan
|
||||||
|
to make a new working_light picture in
|
||||||
|
the long run.
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
- Fixed changelog.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.2
|
||||||
|
Date: 2019-09-05
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
- Fixed version number.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.1
|
||||||
|
Date: 2019-09-05
|
||||||
|
|
||||||
|
Prototypes:
|
||||||
|
- Created new gas-boiler prototype to replace
|
||||||
|
multiple fluid-powered boiler entities in my
|
||||||
|
other mods.
|
4
gas-boiler/data-updates.lua
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
require("factsheet")
|
||||||
|
if settings.startup["vanilla-fluid-fuel-values"].value then
|
||||||
|
apply_vanilla_fluid_fuel_stats()
|
||||||
|
end
|
182
gas-boiler/data.lua
Normal file
|
@ -0,0 +1,182 @@
|
||||||
|
require("factsheet")
|
||||||
|
gf_boiler_entity = util.table.deepcopy(data.raw.boiler.boiler)
|
||||||
|
gf_boiler_entity.name = "gas-boiler"
|
||||||
|
gf_boiler_entity.icon = "__gas-boiler__/graphics/icons/gas-boiler.png"
|
||||||
|
gf_boiler_entity.icon_size = 32
|
||||||
|
gf_boiler_entity.minable.result = "gas-boiler"
|
||||||
|
gf_boiler_entity.fast_replaceable_group = "boiler"
|
||||||
|
gf_boiler_entity.energy_source = {
|
||||||
|
type = "fluid",
|
||||||
|
fluid_box = {
|
||||||
|
base_area = 1,
|
||||||
|
height = 1,
|
||||||
|
base_level = -1,
|
||||||
|
pipe_covers = pipecoverspictures(),
|
||||||
|
pipe_picture = {
|
||||||
|
north = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."assembling-machine-1-pipe-N.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 35,
|
||||||
|
height = 18,
|
||||||
|
shift = util.by_pixel(2.5, 14),
|
||||||
|
hr_version = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."hr-assembling-machine-1-pipe-N.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 71,
|
||||||
|
height = 38,
|
||||||
|
shift = util.by_pixel(2.25, 13.5),
|
||||||
|
scale = 0.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
east = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."assembling-machine-1-pipe-E.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 20,
|
||||||
|
height = 38,
|
||||||
|
shift = util.by_pixel(-25, 1),
|
||||||
|
hr_version = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."hr-assembling-machine-1-pipe-E.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 42,
|
||||||
|
height = 76,
|
||||||
|
shift = util.by_pixel(-24.5, 1),
|
||||||
|
scale = 0.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
south = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."assembling-machine-1-pipe-S.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 44,
|
||||||
|
height = 31,
|
||||||
|
shift = util.by_pixel(0, -31.5),
|
||||||
|
hr_version = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."hr-assembling-machine-1-pipe-S.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 88,
|
||||||
|
height = 61,
|
||||||
|
shift = util.by_pixel(0, -31.25),
|
||||||
|
scale = 0.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
west = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."assembling-machine-1-pipe-W.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 19,
|
||||||
|
height = 37,
|
||||||
|
shift = util.by_pixel(25.5, 1.5),
|
||||||
|
hr_version = {
|
||||||
|
filename = "__gas-boiler__/graphics/entity/"
|
||||||
|
.."hr-assembling-machine-1-pipe-W.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 39,
|
||||||
|
height = 73,
|
||||||
|
shift = util.by_pixel(25.75, 1.25),
|
||||||
|
scale = 0.5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
pipe_connections = {
|
||||||
|
{type = "input", position = {0, 1.5}},
|
||||||
|
},
|
||||||
|
secondary_draw_orders = {
|
||||||
|
south = 32,
|
||||||
|
north = -1,
|
||||||
|
east = -1,
|
||||||
|
west = -1,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
burns_fluid = true,
|
||||||
|
scale_fluid_usage = true,
|
||||||
|
emissions_per_minute = 30,
|
||||||
|
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.3,
|
||||||
|
starting_frame_deviation = 0
|
||||||
|
}},
|
||||||
|
light_flicker = {
|
||||||
|
color = colors.gas_fire_glow,
|
||||||
|
minimum_light_size = 0.1,
|
||||||
|
light_intensity_to_size_coefficient = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gf_boiler_entity.fire_flicker_enabled = false
|
||||||
|
gf_boiler_entity.fire_glow_flicker_enabled = false
|
||||||
|
gf_boiler_entity.fire = {}
|
||||||
|
gf_boiler_entity.fire_glow.north.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"gas-boiler-N-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.south.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"gas-boiler-S-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.east.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"gas-boiler-E-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.west.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"gas-boiler-W-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.north.hr_version.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"hr-gas-boiler-N-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.south.hr_version.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"hr-gas-boiler-S-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.east.hr_version.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"hr-gas-boiler-E-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.west.hr_version.filename =
|
||||||
|
"__gas-boiler__/graphics/entity/"..
|
||||||
|
"hr-gas-boiler-W-light.png"
|
||||||
|
gf_boiler_entity.fire_glow.north.apply_runtime_tint = true
|
||||||
|
gf_boiler_entity.fire_glow.south.apply_runtime_tint = true
|
||||||
|
gf_boiler_entity.fire_glow.east.apply_runtime_tint = true
|
||||||
|
gf_boiler_entity.fire_glow.west.apply_runtime_tint = true
|
||||||
|
gf_boiler_entity.fire_glow.north.tint={r=1,g=0.6,b=0.6,a=0.4}
|
||||||
|
gf_boiler_entity.fire_glow.south.tint={r=1,g=0.6,b=0.6,a=0.4}
|
||||||
|
gf_boiler_entity.fire_glow.east.tint={r=1,g=0.6,b=0.6,a=0.4}
|
||||||
|
gf_boiler_entity.fire_glow.west.tint={r=1,g=0.6,b=0.6,a=0.4}
|
||||||
|
gf_boiler_entity.fire_glow.north.blend_mode = "additive-soft"
|
||||||
|
gf_boiler_entity.fire_glow.south.blend_mode = "additive-soft"
|
||||||
|
gf_boiler_entity.fire_glow.east.blend_mode = "additive-soft"
|
||||||
|
gf_boiler_entity.fire_glow.west.blend_mode = "additive-soft"
|
||||||
|
|
||||||
|
|
||||||
|
gf_boiler_item = util.table.deepcopy(data.raw.item.boiler)
|
||||||
|
gf_boiler_item.name = "gas-boiler"
|
||||||
|
gf_boiler_item.icon_size = 32
|
||||||
|
gf_boiler_item.icon = "__gas-boiler__/graphics/icons/gas-boiler.png"
|
||||||
|
gf_boiler_item.order = "b[steam-power]-b[gas-boiler]"
|
||||||
|
gf_boiler_item.place_result = "gas-boiler"
|
||||||
|
|
||||||
|
gf_boiler_recipe = {
|
||||||
|
type = "recipe",
|
||||||
|
name = "gas-boiler",
|
||||||
|
enabled = false,
|
||||||
|
ingredients = {{
|
||||||
|
"boiler",1
|
||||||
|
},{
|
||||||
|
"pump",1
|
||||||
|
}},
|
||||||
|
result = "gas-boiler"
|
||||||
|
}
|
||||||
|
|
||||||
|
data:extend({
|
||||||
|
gf_boiler_item,
|
||||||
|
gf_boiler_recipe,
|
||||||
|
gf_boiler_entity
|
||||||
|
})
|
||||||
|
add_recipe_to_tech(
|
||||||
|
"fluid-handling",
|
||||||
|
"gas-boiler"
|
||||||
|
)
|
3095
gas-boiler/factsheet.lua
Normal file
BIN
gas-boiler/graphics/entity/assembling-machine-1-pipe-E.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
gas-boiler/graphics/entity/assembling-machine-1-pipe-N.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
gas-boiler/graphics/entity/assembling-machine-1-pipe-S.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
gas-boiler/graphics/entity/assembling-machine-1-pipe-W.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
gas-boiler/graphics/entity/gas-boiler-E-light.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
gas-boiler/graphics/entity/gas-boiler-N-light.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
gas-boiler/graphics/entity/gas-boiler-S-light.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
gas-boiler/graphics/entity/gas-boiler-W-light.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
gas-boiler/graphics/entity/hr-assembling-machine-1-pipe-E.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
gas-boiler/graphics/entity/hr-assembling-machine-1-pipe-N.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
gas-boiler/graphics/entity/hr-assembling-machine-1-pipe-S.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
gas-boiler/graphics/entity/hr-assembling-machine-1-pipe-W.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
gas-boiler/graphics/entity/hr-gas-boiler-E-light.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
gas-boiler/graphics/entity/hr-gas-boiler-N-light.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
gas-boiler/graphics/entity/hr-gas-boiler-S-light.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
gas-boiler/graphics/entity/hr-gas-boiler-W-light.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
gas-boiler/graphics/icons/gas-boiler.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
11
gas-boiler/info.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"name": "gas-boiler",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"title": "Gas-fired boiler",
|
||||||
|
"author": "adamo",
|
||||||
|
"dependencies": [
|
||||||
|
"base"
|
||||||
|
],
|
||||||
|
"description": "Fluid mechanics need not apply.",
|
||||||
|
"factorio_version": "1.0"
|
||||||
|
}
|
13
gas-boiler/locale/en/base.cfg
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
gas-boiler=Gas-fired boiler
|
||||||
|
|
||||||
|
[entity-name]
|
||||||
|
gas-boiler=Gas-fired boiler
|
||||||
|
|
||||||
|
[entity-description]
|
||||||
|
gas-boiler=Burns fluids.
|
||||||
|
|
||||||
|
[mod-setting-name]
|
||||||
|
vanilla-fluid-fuel-values=Make vanilla fluids burnable
|
||||||
|
|
||||||
|
[mod-setting-description]
|
||||||
|
vanilla-fluid-fuel-values=Fuel_value from solid-fuel proportionally applied to vanilla petroleum fluids.
|
13
gas-boiler/locale/ru/base.cfg
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
gas-boiler=Бойлер на жидком топливе
|
||||||
|
|
||||||
|
[entity-name]
|
||||||
|
gas-boiler=Бойлер на жидком топливе
|
||||||
|
|
||||||
|
[entity-description]
|
||||||
|
gas-boiler=Сжигает нефть и нефтепродукты для генерации пара.
|
||||||
|
|
||||||
|
[mod-setting-name]
|
||||||
|
vanilla-fluid-fuel-values=Пропорциональность теплотворности
|
||||||
|
|
||||||
|
[mod-setting-description]
|
||||||
|
vanilla-fluid-fuel-values=Теплотворность жидкостей пропорциональна теплотворности твердого топлива.
|
18
gas-boiler/migrations/absorb_boilers.json
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"item":
|
||||||
|
[
|
||||||
|
["adamo-carbon-gas-fired-boiler","gas-boiler"],
|
||||||
|
["adamo-cinefaction-gas-fired-boiler","gas-boiler"]
|
||||||
|
],
|
||||||
|
"entity":
|
||||||
|
[
|
||||||
|
["adamo-carbon-gas-fired-boiler","gas-boiler"],
|
||||||
|
["adamo-cinefaction-gas-fired-boiler","gas-boiler"]
|
||||||
|
],
|
||||||
|
"recipe":
|
||||||
|
[
|
||||||
|
["adamo-carbon-gas-fired-boiler","gas-boiler"],
|
||||||
|
["adamo-cinefaction-gas-fired-boiler","gas-boiler"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
7
gas-boiler/settings.lua
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
data:extend({{
|
||||||
|
name = "vanilla-fluid-fuel-values",
|
||||||
|
type = "bool-setting",
|
||||||
|
setting_type = "startup",
|
||||||
|
default_value = false,
|
||||||
|
order = "a"
|
||||||
|
}})
|