Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
Addition of files to commission the repository.
  • Loading branch information
ChurchOrganist committed Jul 27, 2017
1 parent 338fd55 commit 77e5f1a
Show file tree
Hide file tree
Showing 12 changed files with 187 additions and 0 deletions.
Binary file added 015AdvancedRadar_0.15.0.zip
Binary file not shown.
30 changes: 30 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions data.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require("prototypes.item")
require("prototypes.recipe")
require("prototypes.entity")
require("prototypes.technology")
Binary file added graphics/item_icon_advanced_radar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/technology_icon_advanced_radar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions info.json
Original file line number Diff line number Diff line change
@@ -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"
}
14 changes: 14 additions & 0 deletions locale/en/base.cfg
Original file line number Diff line number Diff line change
@@ -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.
53 changes: 53 additions & 0 deletions prototypes/entity.lua
Original file line number Diff line number Diff line change
@@ -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,
}
}

})
14 changes: 14 additions & 0 deletions prototypes/item.lua
Original file line number Diff line number Diff line change
@@ -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
}

})
18 changes: 18 additions & 0 deletions prototypes/recipe.lua
Original file line number Diff line number Diff line change
@@ -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
}

})
28 changes: 28 additions & 0 deletions prototypes/technology.lua
Original file line number Diff line number Diff line change
@@ -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"
}

})

0 comments on commit 77e5f1a

Please sign in to comment.