Добавлены все обновления от сообщества, вплоть до #148
21
underground-energy-distribution/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 George Daniel Broughton
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
5
underground-energy-distribution/data-final-fixes.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
data.raw['recipe']["ued-large-db"].ingredients = {
|
||||
{"substation", 1},
|
||||
{"copper-plate", 20},
|
||||
{"steel-plate", 5},
|
||||
{"intermediate-structure-components", 3} }
|
||||
4
underground-energy-distribution/data.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
require("prototypes.small_db")
|
||||
require("prototypes.large_db")
|
||||
require("prototypes.long_distance_db")
|
||||
require("prototypes.tech")
|
||||
BIN
underground-energy-distribution/graphics/bg-icon.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
underground-energy-distribution/graphics/bg-pole.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
underground-energy-distribution/graphics/empty.png
Normal file
|
After Width: | Height: | Size: 116 B |
BIN
underground-energy-distribution/graphics/md-icon.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
underground-energy-distribution/graphics/md-pole.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
underground-energy-distribution/graphics/pole-shadow.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
underground-energy-distribution/graphics/sb-icon.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
underground-energy-distribution/graphics/sb-pole.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
13
underground-energy-distribution/info.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "underground-energy-distribution",
|
||||
"version": "1.10.61",
|
||||
"title": "Underground Energy Distribution",
|
||||
"author": "George Broughton",
|
||||
"contact": "https://github.com/GeorgeBroughton/underground-energy-distribution/issues",
|
||||
"homepage": "https://github.com/GeorgeBroughton/underground-energy-distribution",
|
||||
"factorio_version": "1.1",
|
||||
"description": "Bury all of your cables, and free up valuable factory floor space!",
|
||||
"dependencies": [
|
||||
"base >= 1.1"
|
||||
]
|
||||
}
|
||||
34
underground-energy-distribution/locale/cs/strings.cfg
Normal file
@@ -0,0 +1,34 @@
|
||||
[mod-name]
|
||||
underground-energy-distribution=UED - Podzemní distribuce energie
|
||||
|
||||
[mod-description]
|
||||
underground-energy-distribution=Pohřbte své kabely a uvolněte cenné místo na podlaze továrny!
|
||||
|
||||
[technology-name]
|
||||
underground-energy-distribution=Podzemní elektrická distribuce
|
||||
underground-energy-distribution-2=Podzemní elektrická distribuce - Rozšířený dosah
|
||||
|
||||
[technology-description]
|
||||
underground-energy-distribution=Začněte s malými a dlouhodobými distribučními deskami!
|
||||
underground-energy-distribution-2=Umístěte nové distribuční desky, které mají rozšířený dosah!
|
||||
|
||||
[entity-name]
|
||||
ued-small-db=Malá podzemní distribuční deska
|
||||
ued-long-distance-db=Dlouhodobá podzemní distribuční deska
|
||||
ued-large-db=Velká podzemní distribuční deska
|
||||
|
||||
[item-name]
|
||||
ued-small-db=Malá podzemní distribuční deska
|
||||
ued-long-distance-db=Dlouhodobá podzemní distribuční deska
|
||||
ued-large-db=Velká podzemní distribuční deska
|
||||
|
||||
[recipe-name]
|
||||
ued-small-db=Malá podzemní distribuční deska
|
||||
ued-long-distance-db=Dlouhodobá podzemní distribuční deska
|
||||
ued-large-db=Velká podzemní distribuční deska
|
||||
|
||||
[mod-setting-name]
|
||||
ued-settings-show-circuit=Zobrazit vodiče
|
||||
|
||||
[mod-setting-description]
|
||||
ued-settings-show-circuit=Vykreslit vodiče obvodové sítě
|
||||
34
underground-energy-distribution/locale/en/strings.cfg
Normal file
@@ -0,0 +1,34 @@
|
||||
[mod-name]
|
||||
underground-energy-distribution=UED - Underground Energy Distribution
|
||||
|
||||
[mod-description]
|
||||
underground-energy-distribution=Bury your cables, and free up valuable factory floor space!
|
||||
|
||||
[technology-name]
|
||||
underground-energy-distribution=Underground Electrical Distribution
|
||||
underground-energy-distribution-2=Underground Electrical Distribution - Extended Range
|
||||
|
||||
[technology-description]
|
||||
underground-energy-distribution=Start out with small and long distance distribution boards!
|
||||
underground-energy-distribution-2=Place new distribution boards that have extended range!
|
||||
|
||||
[entity-name]
|
||||
ued-small-db=Small Underground Distribution Board
|
||||
ued-long-distance-db=Long Distance Underground Distribution Board
|
||||
ued-large-db=Large Underground Distribution Board
|
||||
|
||||
[item-name]
|
||||
ued-small-db=Small Underground Distribution Board
|
||||
ued-long-distance-db=Long Distance Underground Distribution Board
|
||||
ued-large-db=Large Underground Distribution Board
|
||||
|
||||
[recipe-name]
|
||||
ued-small-db=Small Underground Distribution Board
|
||||
ued-long-distance-db=Long Distance Underground Distribution Board
|
||||
ued-large-db=Large Underground Distribution Board
|
||||
|
||||
[mod-setting-name]
|
||||
ued-settings-show-circuit=Show Wires
|
||||
|
||||
[mod-setting-description]
|
||||
ued-settings-show-circuit=Render circuit network wires
|
||||
34
underground-energy-distribution/locale/ru/strings.cfg
Normal file
@@ -0,0 +1,34 @@
|
||||
[mod-name]
|
||||
underground-energy-distribution=UED - Underground Energy Distribution
|
||||
|
||||
[mod-description]
|
||||
underground-energy-distribution=Bury your cables, and free up valuable factory floor space!
|
||||
|
||||
[technology-name]
|
||||
underground-energy-distribution=Подземное распределение электроэнергии
|
||||
underground-energy-distribution-2=Подземное распределение электроэнергии 2
|
||||
|
||||
[technology-description]
|
||||
underground-energy-distribution=Подземные электрощиты для подачи энергии. Сделайте красивую базу без проводов!
|
||||
underground-energy-distribution-2=Подземные электрощиты для подачи энергии. Сделайте красивую базу без проводов!
|
||||
|
||||
[entity-name]
|
||||
ued-small-db=Средний подземный электрощит
|
||||
ued-long-distance-db=Большой подземный электрощит
|
||||
ued-large-db=Огромный подземный электрощит
|
||||
|
||||
[item-name]
|
||||
ued-small-db=Средний подземный электрощит
|
||||
ued-long-distance-db=Большой щит подземный электрощит
|
||||
ued-large-db=Огромный подземный электрощит
|
||||
|
||||
[recipe-name]
|
||||
ued-small-db=Средний подземный электрощит
|
||||
ued-long-distance-db=Большой подземный электрощит
|
||||
ued-large-db=Огромный подземный электрощит
|
||||
|
||||
[mod-setting-name]
|
||||
ued-settings-show-circuit=Показывать провода
|
||||
|
||||
[mod-setting-description]
|
||||
ued-settings-show-circuit=Показывать провода для подземных электрощитов
|
||||
90
underground-energy-distribution/prototypes/large_db.lua
Normal file
@@ -0,0 +1,90 @@
|
||||
local large_db = table.deepcopy(data.raw["electric-pole"]["substation"])
|
||||
local integration_patch_render_layer = "decorative"
|
||||
|
||||
large_db.name = "ued-large-db"
|
||||
large_db.icon = "__underground-energy-distribution__/graphics/sb-icon.png"
|
||||
|
||||
-- large_db.icon_size = 3
|
||||
large_db.drawing_box = {{-1.5,-1.5},{1.5,1.5}}
|
||||
large_db.selection_box = {{-1.5,-1.5},{1.5,1.5}}
|
||||
large_db.map_generator_bounding_box = {{-1.5,-1.5},{1.5,1.5}}
|
||||
large_db.tile_height = 3
|
||||
large_db.tile_width = 3
|
||||
|
||||
large_db.minable = {mining_time = 0.5, result = "ued-large-db"}
|
||||
large_db.draw_copper_wires = false
|
||||
large_db.check_collision_with_entities = true
|
||||
large_db.supply_area_distance = 7.5
|
||||
large_db.maximum_wire_distance = 18
|
||||
large_db.draw_circuit_wires = settings.startup["ued-settings-show-circuit"].value
|
||||
|
||||
-- large_db.icon_mipmaps = 1
|
||||
large_db.integration_patch = {
|
||||
layers = {{
|
||||
filename = "__underground-energy-distribution__/graphics/sb-pole.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.3495,
|
||||
},{
|
||||
filename = "__underground-energy-distribution__/graphics/pole-shadow.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.3495,
|
||||
draw_as_shadow = true,
|
||||
}}
|
||||
}
|
||||
large_db.pictures = {
|
||||
layers = {{
|
||||
filename = "__underground-energy-distribution__/graphics/empty.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.3495,
|
||||
direction_count = 1,
|
||||
}}
|
||||
}
|
||||
|
||||
large_db.connection_points = {{
|
||||
shadow = {
|
||||
copper = util.by_pixel_hr(0, 0),
|
||||
red = util.by_pixel_hr(0, 0),
|
||||
green = util.by_pixel_hr(0, 0)
|
||||
},
|
||||
wire = {
|
||||
copper = util.by_pixel_hr(0, 0),
|
||||
red = util.by_pixel_hr(0, 0),
|
||||
green = util.by_pixel_hr(0, 0)
|
||||
}
|
||||
}}
|
||||
|
||||
large_db.collision_mask = {"doodad-layer"}
|
||||
--large_db.collision_mask = {"water-tile","colliding-with-tiles-only"}
|
||||
--large_db.collision_box = {{0,0},{0,0}}
|
||||
large_db.integration_patch_render_layer = integration_patch_render_layer
|
||||
--large_db.fast_replaceable_group = "substation-electric-pole"
|
||||
large_db.next_upgrade = nil
|
||||
|
||||
data:extend({{
|
||||
type = "item",
|
||||
name = "ued-large-db",
|
||||
icon = "__underground-energy-distribution__/graphics/sb-icon.png",
|
||||
icon_size = 64,
|
||||
subgroup = "energy-pipe-distribution",
|
||||
order = "a[energy]-d[substation]-b[ued-large-db]",
|
||||
place_result = "ued-large-db",
|
||||
stack_size = 50
|
||||
},{
|
||||
type = "recipe",
|
||||
name = "ued-large-db",
|
||||
enabled = "false",
|
||||
ingredients = {
|
||||
{"substation", 1},
|
||||
{"copper-plate", 20},
|
||||
{"steel-plate", 5}
|
||||
},
|
||||
result = "ued-large-db"
|
||||
},
|
||||
large_db
|
||||
})
|
||||
@@ -0,0 +1,91 @@
|
||||
local long_distance_db = table.deepcopy(data.raw["electric-pole"]["big-electric-pole"])
|
||||
local integration_patch_render_layer = "decorative"
|
||||
|
||||
long_distance_db.name = "ued-long-distance-db"
|
||||
long_distance_db.icon = "__underground-energy-distribution__/graphics/bg-icon.png"
|
||||
|
||||
-- long_distance_db.icon_size = 2
|
||||
long_distance_db.drawing_box = {{-1,-1},{1,1}}
|
||||
long_distance_db.selection_box = {{-1,-1},{1,1}}
|
||||
long_distance_db.map_generator_bounding_box = {{-1,-1},{1,1}}
|
||||
long_distance_db.tile_height = 2
|
||||
long_distance_db.tile_width = 2
|
||||
|
||||
long_distance_db.minable = {mining_time = 0.5, result = "ued-long-distance-db"}
|
||||
long_distance_db.draw_copper_wires = false
|
||||
long_distance_db.check_collision_with_entities = true
|
||||
long_distance_db.supply_area_distance = 2
|
||||
long_distance_db.maximum_wire_distance = 30
|
||||
long_distance_db.draw_circuit_wires = settings.startup["ued-settings-show-circuit"].value
|
||||
|
||||
-- long_distance_db.icon_mipmaps = 1
|
||||
long_distance_db.integration_patch = {
|
||||
layers = {{
|
||||
filename = "__underground-energy-distribution__/graphics/bg-pole.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.23,
|
||||
},{
|
||||
filename = "__underground-energy-distribution__/graphics/pole-shadow.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.23,
|
||||
draw_as_shadow = true,
|
||||
}}
|
||||
}
|
||||
long_distance_db.pictures = {
|
||||
layers = {{
|
||||
filename = "__underground-energy-distribution__/graphics/empty.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.23,
|
||||
direction_count = 1,
|
||||
}}
|
||||
}
|
||||
|
||||
long_distance_db.connection_points = {{
|
||||
shadow = {
|
||||
copper = util.by_pixel_hr(0, 0),
|
||||
red = util.by_pixel_hr(0, 0),
|
||||
green = util.by_pixel_hr(0, 0)
|
||||
},
|
||||
wire = {
|
||||
copper = util.by_pixel_hr(0, 0),
|
||||
red = util.by_pixel_hr(0, 0),
|
||||
green = util.by_pixel_hr(0, 0)
|
||||
}
|
||||
}}
|
||||
|
||||
long_distance_db.collision_mask = {"doodad-layer"}
|
||||
--long_distance_db.collision_mask = {"water-tile","colliding-with-tiles-only"}
|
||||
--long_distance_db.collision_box = {{0,0},{0,0}}
|
||||
long_distance_db.integration_patch_render_layer = integration_patch_render_layer
|
||||
--long_distance_db.fast_replaceable_group = "big-electric-pole"
|
||||
long_distance_db.next_upgrade = nil
|
||||
|
||||
data:extend({{
|
||||
type = "item",
|
||||
name = "ued-long-distance-db",
|
||||
icon = "__underground-energy-distribution__/graphics/bg-icon.png",
|
||||
icon_size = 64,
|
||||
subgroup = "energy-pipe-distribution",
|
||||
order = "a[energy]-c[big-electric-pole]-b[ued-long-distance-db]",
|
||||
place_result = "ued-long-distance-db",
|
||||
stack_size = 50
|
||||
},{
|
||||
type = "recipe",
|
||||
name = "ued-long-distance-db",
|
||||
enabled = "false",
|
||||
ingredients = {
|
||||
{"big-electric-pole", 1},
|
||||
{"electronic-circuit", 5},
|
||||
{"copper-plate", 15},
|
||||
{"steel-plate", 5}
|
||||
},
|
||||
result = "ued-long-distance-db"
|
||||
},
|
||||
long_distance_db
|
||||
})
|
||||
91
underground-energy-distribution/prototypes/small_db.lua
Normal file
@@ -0,0 +1,91 @@
|
||||
local small_db = table.deepcopy(data.raw["electric-pole"]["medium-electric-pole"])
|
||||
local integration_patch_render_layer = "decorative"
|
||||
|
||||
small_db.name = "ued-small-db"
|
||||
small_db.icon = "__underground-energy-distribution__/graphics/md-icon.png"
|
||||
|
||||
-- small_db.icon_size = 1
|
||||
small_db.drawing_box = {{-0.5,-0.5},{0.5,0.5}}
|
||||
small_db.selection_box = {{-0.5,-0.5},{0.5,0.5}}
|
||||
small_db.map_generator_bounding_box = {{-0.5,-0.5},{0.5,0.5}}
|
||||
small_db.tile_height = 1
|
||||
small_db.tile_width = 1
|
||||
|
||||
small_db.minable = {mining_time = 0.5,result = "ued-small-db"}
|
||||
small_db.draw_copper_wires = false
|
||||
small_db.check_collision_with_entities = true
|
||||
small_db.supply_area_distance = 3.5
|
||||
small_db.maximum_wire_distance = 9
|
||||
small_db.draw_circuit_wires = settings.startup["ued-settings-show-circuit"].value
|
||||
|
||||
-- small_db.icon_mipmaps = 1
|
||||
small_db.integration_patch = {
|
||||
layers = {{
|
||||
filename = "__underground-energy-distribution__/graphics/md-pole.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.122,
|
||||
},{
|
||||
filename = "__underground-energy-distribution__/graphics/pole-shadow.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.122,
|
||||
draw_as_shadow = true,
|
||||
}}
|
||||
}
|
||||
small_db.pictures = {
|
||||
layers = {{
|
||||
filename = "__underground-energy-distribution__/graphics/empty.png",
|
||||
priority = "low",
|
||||
width = 256,
|
||||
height = 256,
|
||||
scale = 0.122,
|
||||
direction_count = 1,
|
||||
}}
|
||||
}
|
||||
|
||||
small_db.connection_points = {{
|
||||
shadow = {
|
||||
copper = util.by_pixel_hr(0, 0),
|
||||
red = util.by_pixel_hr(0, 0),
|
||||
green = util.by_pixel_hr(0, 0)
|
||||
},
|
||||
wire = {
|
||||
copper = util.by_pixel_hr(0, 0),
|
||||
red = util.by_pixel_hr(0, 0),
|
||||
green = util.by_pixel_hr(0, 0)
|
||||
}
|
||||
}}
|
||||
|
||||
small_db.collision_mask = {"doodad-layer"}
|
||||
--small_db.collision_mask = {"water-tile","colliding-with-tiles-only"}
|
||||
--small_db.collision_box = {{0,0},{0,0}}
|
||||
small_db.integration_patch_render_layer = integration_patch_render_layer
|
||||
--small_db.fast_replaceable_group = "medium-electric-pole"
|
||||
small_db.next_upgrade = nil
|
||||
|
||||
data:extend({{
|
||||
type = "item",
|
||||
name = "ued-small-db",
|
||||
icon = "__underground-energy-distribution__/graphics/md-icon.png",
|
||||
icon_size = 64,
|
||||
subgroup = "energy-pipe-distribution",
|
||||
order = "a[energy]-b[medium-electric-pole]-b[ued-small-db]",
|
||||
place_result = "ued-small-db",
|
||||
stack_size = 50
|
||||
},{
|
||||
type = "recipe",
|
||||
name = "ued-small-db",
|
||||
enabled = "false",
|
||||
ingredients = {
|
||||
{"medium-electric-pole", 1},
|
||||
{"electronic-circuit", 2},
|
||||
{"copper-plate", 10},
|
||||
{"steel-plate", 5}
|
||||
},
|
||||
result = "ued-small-db"
|
||||
},
|
||||
small_db
|
||||
})
|
||||
39
underground-energy-distribution/prototypes/tech.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
data:extend({{
|
||||
type = "technology",
|
||||
name = "underground-energy-distribution",
|
||||
icon = "__underground-energy-distribution__/graphics/bg-pole.png",
|
||||
icon_size = 256,
|
||||
prerequisites = {"electric-energy-distribution-1"},
|
||||
effects = {
|
||||
{type = "unlock-recipe", recipe = "ued-small-db"},
|
||||
{type = "unlock-recipe", recipe = "ued-long-distance-db"}
|
||||
},
|
||||
unit = {
|
||||
count = 200,
|
||||
ingredients = {
|
||||
{"automation-science-pack", 1},
|
||||
{"logistic-science-pack", 1}},
|
||||
time = 30
|
||||
},
|
||||
order = "a-b"
|
||||
},{
|
||||
type = "technology",
|
||||
name = "underground-energy-distribution-2",
|
||||
icon = "__underground-energy-distribution__/graphics/sb-pole.png",
|
||||
icon_size = 256,
|
||||
prerequisites = {"underground-energy-distribution","electric-energy-distribution-2"},
|
||||
effects = {
|
||||
{type = "unlock-recipe", recipe = "ued-large-db"}
|
||||
},
|
||||
unit = {
|
||||
count = 200,
|
||||
ingredients = {
|
||||
{"automation-science-pack", 1},
|
||||
{"logistic-science-pack", 1},
|
||||
{"chemical-science-pack", 1}
|
||||
},
|
||||
time = 30
|
||||
},
|
||||
order = "a-b"
|
||||
}
|
||||
})
|
||||
8
underground-energy-distribution/settings.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
data:extend({
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "ued-settings-show-circuit",
|
||||
setting_type = "startup",
|
||||
default_value = false
|
||||
}
|
||||
})
|
||||
BIN
underground-energy-distribution/thumbnail.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |