From 46fa805bfa921fb92d60073b42df8d17c924f720 Mon Sep 17 00:00:00 2001 From: npc-strider Date: Wed, 25 Jul 2018 22:38:14 +0800 Subject: [PATCH] forgot to add renamed dir --- Refinery_overhaul_0.1.0/data.lua | 4 + Refinery_overhaul_0.1.0/info.json | 10 + Refinery_overhaul_0.1.0/prototypes/entity.lua | 263 ++++++++++++++++++ Refinery_overhaul_0.1.0/prototypes/item.lua | 14 + Refinery_overhaul_0.1.0/prototypes/recipe.lua | 6 + .../prototypes/technology.lua | 6 + mod-list.json | 12 + 7 files changed, 315 insertions(+) create mode 100644 Refinery_overhaul_0.1.0/data.lua create mode 100644 Refinery_overhaul_0.1.0/info.json create mode 100644 Refinery_overhaul_0.1.0/prototypes/entity.lua create mode 100644 Refinery_overhaul_0.1.0/prototypes/item.lua create mode 100644 Refinery_overhaul_0.1.0/prototypes/recipe.lua create mode 100644 Refinery_overhaul_0.1.0/prototypes/technology.lua create mode 100644 mod-list.json diff --git a/Refinery_overhaul_0.1.0/data.lua b/Refinery_overhaul_0.1.0/data.lua new file mode 100644 index 0000000..733cf6d --- /dev/null +++ b/Refinery_overhaul_0.1.0/data.lua @@ -0,0 +1,4 @@ +require("prototypes.entity") +require("prototypes.item") +--require("prototypes.recipe") +--require("prototypes.technology") \ No newline at end of file diff --git a/Refinery_overhaul_0.1.0/info.json b/Refinery_overhaul_0.1.0/info.json new file mode 100644 index 0000000..9142c9d --- /dev/null +++ b/Refinery_overhaul_0.1.0/info.json @@ -0,0 +1,10 @@ +{ + "name": "Refinery_overhaul", + "version": "0.1.0", + "factorio_version": "0.16", + "title": "Oil Refinery Overhaul", + "author": "npc_strider(morley376)", + "contact": "", + "homepage": "http://steamcommunity.com/id/morley376", + "description": "Removes the oil-refinery entity and replaces it with an in-world method of constructing distileries" +} diff --git a/Refinery_overhaul_0.1.0/prototypes/entity.lua b/Refinery_overhaul_0.1.0/prototypes/entity.lua new file mode 100644 index 0000000..47f7c50 --- /dev/null +++ b/Refinery_overhaul_0.1.0/prototypes/entity.lua @@ -0,0 +1,263 @@ +data:extend( +{ + { + type = "assembling-machine", + name = "heat-test", + icon = "__base__/graphics/icons/chemical-plant.png", + icon_size = 32, + flags = {"placeable-neutral","placeable-player", "player-creation"}, + minable = {hardness = 0.2, mining_time = 0.5, result = "chemical-plant"}, + max_health = 300, + corpse = "big-remnants", + dying_explosion = "medium-explosion", + collision_box = {{-1.2, -1.2}, {1.2, 1.2}}, + selection_box = {{-1.5, -1.5}, {1.5, 1.5}}, + drawing_box = {{-1.5, -1.9}, {1.5, 1.5}}, + module_specification = + { + module_slots = 3 + }, + allowed_effects = {"consumption", "speed", "productivity", "pollution"}, + energy_usage = "210kW", + --[[energy_source = + { + type = "electric", + usage_priority = "secondary-input", + emissions = 0.03 / 3.5 + },]] + energy_source = + { + type = "heat", + max_temperature = 1000, + specific_heat = "1MJ", + max_transfer = "2GW", + connections = + { + { + position = {0, -1.2+0.25}, + direction = defines.direction.north + } + }, + pipe_covers = + + make_4way_animation_from_spritesheet( + { + filename = "__base__/graphics/entity/heat-exchanger/heatex-endings.png", + line_length = 4, + width = 32, + height = 32, + direction_count = 4, + hr_version = + { + filename = "__base__/graphics/entity/heat-exchanger/hr-heatex-endings.png", + line_length = 4, + width = 64, + height = 64, + direction_count = 4, + scale = 0.5 + } + }) + + }, + + animation = make_4way_animation_from_spritesheet({ layers = + { + { + filename = "__base__/graphics/entity/chemical-plant/chemical-plant.png", + width = 122, + height = 134, + frame_count = 1, + shift = util.by_pixel(-5, -4.5), + hr_version = + { + filename = "__base__/graphics/entity/chemical-plant/hr-chemical-plant.png", + width = 244, + height = 268, + frame_count = 1, + shift = util.by_pixel(-5, -4.5), + scale = 0.5 + } + }, + { + filename = "__base__/graphics/entity/chemical-plant/chemical-plant-shadow.png", + width = 175, + height = 110, + frame_count = 1, + shift = util.by_pixel(31.5, 11), + draw_as_shadow = true, + hr_version = + { + filename = "__base__/graphics/entity/chemical-plant/hr-chemical-plant-shadow.png", + width = 350, + height = 219, + frame_count = 1, + shift = util.by_pixel(31.5, 10.75), + draw_as_shadow = true, + scale = 0.5 + } + } + }}), + working_visualisations = + { + { + north_position = util.by_pixel(30, -24), + west_position = util.by_pixel(1, -49.5), + south_position = util.by_pixel(-30, -48), + east_position = util.by_pixel(-11, -1), + apply_recipe_tint = "primary", + animation = + { + filename = "__base__/graphics/entity/chemical-plant/boiling-green-patch.png", + frame_count = 32, + width = 15, + height = 10, + animation_speed = 0.5, + hr_version = + { + filename = "__base__/graphics/entity/chemical-plant/hr-boiling-green-patch.png", + frame_count = 32, + width = 30, + height = 20, + animation_speed = 0.5, + scale = 0.5 + } + } + }, + + { + north_position = util.by_pixel(30, -24), + west_position = util.by_pixel(1, -49.5), + south_position = util.by_pixel(-30, -48), + east_position = util.by_pixel(-11, -1), + apply_recipe_tint = "secondary", + animation = + { + filename = "__base__/graphics/entity/chemical-plant/boiling-green-patch-mask.png", + frame_count = 32, + width = 15, + height = 10, + animation_speed = 0.5, + hr_version = + { + filename = "__base__/graphics/entity/chemical-plant/hr-boiling-green-patch-mask.png", + frame_count = 32, + width = 30, + height = 20, + animation_speed = 0.5, + scale = 0.5 + } + } + }, + + + { + apply_recipe_tint = "tertiary", + north_position = {0, 0}, + west_position = {0, 0}, + south_position = {0, 0}, + east_position = {0, 0}, + north_animation = + { + filename = "__base__/graphics/entity/chemical-plant/boiling-window-green-patch.png", + frame_count = 1, + width = 87, + height = 60, + shift = util.by_pixel(0, -5), + hr_version = + { + filename = "__base__/graphics/entity/chemical-plant/hr-boiling-window-green-patch.png", + x = 0, + frame_count = 1, + width = 174, + height = 119, + shift = util.by_pixel(0, -5.25), + scale = 0.5 + } + }, + east_animation = + { + filename = "__base__/graphics/entity/chemical-plant/boiling-window-green-patch.png", + x = 87, + frame_count = 1, + width = 87, + height = 60, + shift = util.by_pixel(0, -5), + hr_version = + { + filename = "__base__/graphics/entity/chemical-plant/hr-boiling-window-green-patch.png", + x = 174, + frame_count = 1, + width = 174, + height = 119, + shift = util.by_pixel(0, -5.25), + scale = 0.5 + } + }, + south_animation = + { + filename = "__base__/graphics/entity/chemical-plant/boiling-window-green-patch.png", + x = 174, + frame_count = 1, + width = 87, + height = 60, + shift = util.by_pixel(0, -5), + hr_version = + { + filename = "__base__/graphics/entity/chemical-plant/hr-boiling-window-green-patch.png", + x = 348, + frame_count = 1, + width = 174, + height = 119, + shift = util.by_pixel(0, -5.25), + scale = 0.5 + } + } + } + }, + vehicle_impact_sound ={ filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 }, + working_sound = + { + sound = + { + { + filename = "__base__/sound/chemical-plant.ogg", + volume = 0.8 + } + }, + idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 }, + apparent_volume = 1.5 + }, + crafting_speed = 1.25, + ingredient_count = 4, + crafting_categories = {"chemistry"}, + fluid_boxes = + { + { + production_type = "input", + pipe_covers = pipecoverspictures(), + base_area = 10, + base_level = -1, + pipe_connections = {{ type="input", position = {-1, -2} }} + }, + { + production_type = "input", + pipe_covers = pipecoverspictures(), + base_area = 10, + base_level = -1, + pipe_connections = {{ type="input", position = {1, -2} }} + }, + { + production_type = "output", + pipe_covers = pipecoverspictures(), + base_level = 1, + pipe_connections = {{ position = {-1, 2} }} + }, + { + production_type = "output", + pipe_covers = pipecoverspictures(), + base_level = 1, + pipe_connections = {{ position = {1, 2} }} + } + } + }--, +}) \ No newline at end of file diff --git a/Refinery_overhaul_0.1.0/prototypes/item.lua b/Refinery_overhaul_0.1.0/prototypes/item.lua new file mode 100644 index 0000000..3a88862 --- /dev/null +++ b/Refinery_overhaul_0.1.0/prototypes/item.lua @@ -0,0 +1,14 @@ +data:extend( +{ + { + type = "item", + name = "heat-test", + icon = "__base__/graphics/icons/chemical-plant.png", + icon_size = 32, + flags = {"goes-to-quickbar"}, + subgroup = "production-machine", + order = "e[heat-test]", + place_result = "heat-test", + stack_size = 10 + } +}) \ No newline at end of file diff --git a/Refinery_overhaul_0.1.0/prototypes/recipe.lua b/Refinery_overhaul_0.1.0/prototypes/recipe.lua new file mode 100644 index 0000000..7a89db8 --- /dev/null +++ b/Refinery_overhaul_0.1.0/prototypes/recipe.lua @@ -0,0 +1,6 @@ +data:extend( +{ + { + } +} +) \ No newline at end of file diff --git a/Refinery_overhaul_0.1.0/prototypes/technology.lua b/Refinery_overhaul_0.1.0/prototypes/technology.lua new file mode 100644 index 0000000..7a89db8 --- /dev/null +++ b/Refinery_overhaul_0.1.0/prototypes/technology.lua @@ -0,0 +1,6 @@ +data:extend( +{ + { + } +} +) \ No newline at end of file diff --git a/mod-list.json b/mod-list.json new file mode 100644 index 0000000..bf9902a --- /dev/null +++ b/mod-list.json @@ -0,0 +1,12 @@ +{ + "mods": [ + { + "name": "base", + "enabled": true + }, + { + "name": "Refinery_overhaul", + "enabled": true + } + ] +}