diff --git a/015AdvancedRadar_0.15.0.zip b/015AdvancedRadar_0.15.0.zip new file mode 100644 index 0000000..b4572f3 Binary files /dev/null and b/015AdvancedRadar_0.15.0.zip differ diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..db0b57a --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,30 @@ +015AdvancedRadar 0.15.0 is released under the MIT license. + +Informally, this means you can +do basically whatever with it you like, as long as you leave this file intact. + +The full legalese is below. + +015AdvancedRadar 0.15.0 is Copyright © 2017 Michael Cowgill (Church Organist), Malcolm Cooks and others. + +Acknowledgements +Thank you to Malcolm Cooks who programmed the original AdvancedRadar mod. +This port for Factorio 0.15.x is completely unchanged apart from minor stuff to make it compatible. + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..50204d0 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +015AdvancedRadar 0.15.0 by Michael Cowgill (ChurchOrganist) + +This is simply a port of Malcolm Cooks' AdvancedRadar mod for Factorio 0.15. +Malcolm's code is unchanged apart from some minor alterations to the locale files for compatibility with Factorio's 0.15.x format. + +This has been tested and appears to be working OK. + +Hope you enjoy it :) + +It is licensed under the MIT license, available in this package in the file LICENSE.md. + +Thank you to Malcolm Cooks for writing the original AdvancedRadar mod. + +For more information on this licence please visit: http://opensource.org/licenses/mit-license.html diff --git a/data.lua b/data.lua new file mode 100644 index 0000000..f7180dc --- /dev/null +++ b/data.lua @@ -0,0 +1,4 @@ +require("prototypes.item") +require("prototypes.recipe") +require("prototypes.entity") +require("prototypes.technology") \ No newline at end of file diff --git a/graphics/item_icon_advanced_radar.png b/graphics/item_icon_advanced_radar.png new file mode 100644 index 0000000..a8d056b Binary files /dev/null and b/graphics/item_icon_advanced_radar.png differ diff --git a/graphics/technology_icon_advanced_radar.png b/graphics/technology_icon_advanced_radar.png new file mode 100644 index 0000000..6f93b49 Binary files /dev/null and b/graphics/technology_icon_advanced_radar.png differ diff --git a/info.json b/info.json new file mode 100644 index 0000000..1f6e00b --- /dev/null +++ b/info.json @@ -0,0 +1,12 @@ +{ + "name": "015AdvancedRadar", + "version": "0.15.0", + "title": "Advanced Radar for Factorio 0.15", + "author": "Michael Cowgill", + "contact": "", + "homepage": "", + "description": "Port to 0.15 of Malcolm Cooks' AdvancedRadar mod. + Advanced radar with greater range, speed, and power consumption.", + "dependencies": ["base >= 0.15"], + "factorio_version": "0.15" +} \ No newline at end of file diff --git a/locale/en/base.cfg b/locale/en/base.cfg new file mode 100644 index 0000000..eb5007b --- /dev/null +++ b/locale/en/base.cfg @@ -0,0 +1,14 @@ +[item-name] +advanced-radar=Advanced Radar + +[item-description] +advanced-radar=Scans an area four times larger than basic radar at four times the speed. + +[entity-name] +advanced-radar=Advanced Radar + +[technology-name] +advanced-radar-tech=Advanced Radar + +[technology-description] +advanced-radar-tech=Unlocks advanced radar with greater range and speed. \ No newline at end of file diff --git a/prototypes/entity.lua b/prototypes/entity.lua new file mode 100644 index 0000000..5bd1a79 --- /dev/null +++ b/prototypes/entity.lua @@ -0,0 +1,53 @@ +data:extend({ + + { + type = "radar", + name = "advanced-radar", + icon = "__base__/graphics/icons/radar.png", + flags = {"placeable-player", "player-creation"}, + minable = {hardness = 0.2, mining_time = 0.5, result = "advanced-radar"}, + max_health = 150, + corpse = "big-remnants", + resistances = + { + { + type = "fire", + percent = 70 + } + }, + collision_box = {{-1.4, -1.4}, {1.4, 1.4}}, + selection_box = {{-1.5, -1.5}, {1.5, 1.5}}, + energy_per_sector = "10MJ", + max_distance_of_sector_revealed = 28, + max_distance_of_nearby_sector_revealed = 6, + energy_per_nearby_scan = "250kJ", + energy_source = + { + type = "electric", + usage_priority = "secondary-input" + }, + energy_usage = "1200kW", + pictures = + { + filename = "__base__/graphics/entity/radar/radar.png", + priority = "low", + width = 153, + height = 131, + apply_projection = false, + direction_count = 64, + line_length = 8, + shift = {0.875, -0.34375} + }, + vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 }, + working_sound = + { + sound = { + { + filename = "__base__/sound/radar.ogg" + } + }, + apparent_volume = 2, + } + } + + }) \ No newline at end of file diff --git a/prototypes/item.lua b/prototypes/item.lua new file mode 100644 index 0000000..ac5b571 --- /dev/null +++ b/prototypes/item.lua @@ -0,0 +1,14 @@ +data:extend({ + +{ + type = "item", + name = "advanced-radar", + icon = "__AdvancedRadar__/graphics/item_icon_advanced_radar.png", + flags = {"goes-to-quickbar"}, + subgroup = "defensive-structure", + order = "z[radar]-a[radar]", + place_result = "advanced-radar", + stack_size = 10 + } + + }) \ No newline at end of file diff --git a/prototypes/recipe.lua b/prototypes/recipe.lua new file mode 100644 index 0000000..33367dc --- /dev/null +++ b/prototypes/recipe.lua @@ -0,0 +1,18 @@ +data:extend({ + +{ + type = "recipe", + name = "advanced-radar", + enabled = false, + energy_required = 5, + ingredients = + { + {"electronic-circuit", 15}, + {"iron-gear-wheel", 5}, + {"iron-plate", 10} + }, + result = "advanced-radar", + requester_paste_multiplier = 4 + } + + }) \ No newline at end of file diff --git a/prototypes/technology.lua b/prototypes/technology.lua new file mode 100644 index 0000000..514de08 --- /dev/null +++ b/prototypes/technology.lua @@ -0,0 +1,28 @@ +data:extend({ + +{ + type = "technology", + name = "advanced-radar-tech", + icon = "__AdvancedRadar__/graphics/technology_icon_advanced_radar.png", + icon_size = 128, + effects = + { + { + type = "unlock-recipe", + recipe = "advanced-radar" + } + }, + prerequisites = {"military-2", "electronics"}, + unit = + { + count = 50, + ingredients = { + {"science-pack-1", 1}, + {"science-pack-2", 1} + }, + time = 30 + }, + order = "e-a-a" + } + + }) \ No newline at end of file