diff --git a/017_science_0.0.1/data.lua b/017_science_0.0.1/data.lua new file mode 100644 index 0000000..e94e019 --- /dev/null +++ b/017_science_0.0.1/data.lua @@ -0,0 +1,7 @@ +require("recipe") + +table.insert(data.raw["technology"]["military-2"].effects, {type = "unlock-recipe",recipe = "17-military-science-pack"}) +table.insert(data.raw["technology"]["advanced-electronics"].effects, {type = "unlock-recipe",recipe = "17-chemical-science-pack"}) +table.insert(data.raw["technology"]["advanced-material-processing-2"].effects, {type = "unlock-recipe",recipe = "17-production-science-pack"}) +table.insert(data.raw["technology"]["advanced-electronics-2"].effects, {type = "unlock-recipe",recipe = "17-utility-science-pack"}) +table.insert(data.raw["technology"]["advanced-electronics-2"].effects, {type = "unlock-recipe",recipe = "low-density-structure"}) --LDS unlock for pre-rocket bases \ No newline at end of file diff --git a/017_science_0.0.1/fff-275-03-science-packs-no-names.png b/017_science_0.0.1/fff-275-03-science-packs-no-names.png new file mode 100644 index 0000000..1df8cda Binary files /dev/null and b/017_science_0.0.1/fff-275-03-science-packs-no-names.png differ diff --git a/017_science_0.0.1/graphics/icons/chemical.png b/017_science_0.0.1/graphics/icons/chemical.png new file mode 100644 index 0000000..1390c5d Binary files /dev/null and b/017_science_0.0.1/graphics/icons/chemical.png differ diff --git a/017_science_0.0.1/graphics/icons/military.png b/017_science_0.0.1/graphics/icons/military.png new file mode 100644 index 0000000..93cfa3a Binary files /dev/null and b/017_science_0.0.1/graphics/icons/military.png differ diff --git a/017_science_0.0.1/graphics/icons/production.png b/017_science_0.0.1/graphics/icons/production.png new file mode 100644 index 0000000..4e35c73 Binary files /dev/null and b/017_science_0.0.1/graphics/icons/production.png differ diff --git a/017_science_0.0.1/graphics/icons/utility.png b/017_science_0.0.1/graphics/icons/utility.png new file mode 100644 index 0000000..067dfa2 Binary files /dev/null and b/017_science_0.0.1/graphics/icons/utility.png differ diff --git a/017_science_0.0.1/info.json b/017_science_0.0.1/info.json new file mode 100644 index 0000000..e8e43a4 --- /dev/null +++ b/017_science_0.0.1/info.json @@ -0,0 +1,10 @@ +{ + "name": "017_science", + "version": "0.0.1", + "factorio_version": "0.16", + "title": "0.17 science conversion", + "author": "npc_strider(morley376)", + "contact": "", + "homepage": "http://steamcommunity.com/id/morley376", + "description": "Adds in the new science pack recipies, while keeping 0.16 recipes intact so that the player may update their base at their own pace. Also implements the 0.17 LDS recipe change, science pack names and icons. Does not revamp the tech tree." +} \ No newline at end of file diff --git a/017_science_0.0.1/locale/en/base.cfg b/017_science_0.0.1/locale/en/base.cfg new file mode 100644 index 0000000..8115da1 --- /dev/null +++ b/017_science_0.0.1/locale/en/base.cfg @@ -0,0 +1,5 @@ +[item-name] +science-pack-1=Automation science pack +science-pack-2=Logistics science pack +science-pack-3=Chemical science pack +high-tech-science-pack=Utility science pack \ No newline at end of file diff --git a/017_science_0.0.1/migrations/migrations.lua b/017_science_0.0.1/migrations/migrations.lua new file mode 100644 index 0000000..a5c0820 --- /dev/null +++ b/017_science_0.0.1/migrations/migrations.lua @@ -0,0 +1,23 @@ +for i, force in pairs(game.forces) do + force.reset_recipes() +end + +for i, force in pairs(game.forces) do + force.reset_technologies() +end + +for i, force in pairs(game.forces) do + if force.technologies["military-2"].researched then + force.recipes["17-military-science-pack"].enabled = true + end + if force.technologies["advanced-electronics"].researched then + force.recipes["17-chemical-science-pack"].enabled = true + end + if force.technologies["advanced-material-processing-2"].researched then + force.recipes["17-production-science-pack"].enabled = true + end + if force.technologies["advanced-electronics-2"].researched then + force.recipes["low-density-structure"].enabled = true + force.recipes["17-utility-science-pack"].enabled = true + end +end \ No newline at end of file diff --git a/017_science_0.0.1/recipe.lua b/017_science_0.0.1/recipe.lua new file mode 100644 index 0000000..b9837c6 --- /dev/null +++ b/017_science_0.0.1/recipe.lua @@ -0,0 +1,200 @@ +data:extend( +{ + --The old stuff + { + type = "recipe", + name = "science-pack-1", + energy_required = 5, + ingredients = + { + {"copper-plate", 1}, + {"iron-gear-wheel", 1} + }, + result = "science-pack-1" + }, + { + type = "recipe", + name = "science-pack-2", + energy_required = 6, + ingredients = + { + {"inserter", 1}, + {"transport-belt", 1} + }, + result = "science-pack-2" + }, + { + type = "recipe", + name = "science-pack-3", + enabled = false, + energy_required = 12, + ingredients = + { + {"advanced-circuit", 1}, + {"engine-unit", 1}, + {"electric-mining-drill", 1} + }, + result = "science-pack-3" + }, + { + type = "recipe", + name = "military-science-pack", + enabled = false, + energy_required = 10, + ingredients = + { + {"piercing-rounds-magazine", 1}, + {"grenade", 1}, + {"gun-turret", 1} + }, + result_count = 2, + result = "military-science-pack" + }, + { + type = "recipe", + name = "production-science-pack", + enabled = false, + energy_required = 14, + ingredients = + { + {"electric-engine-unit", 1}, + {"electric-furnace", 1} + }, + result_count = 2, + result = "production-science-pack" + }, + { + type = "recipe", + name = "high-tech-science-pack", + enabled = false, + energy_required = 14, + ingredients = + { + {"battery", 1}, + {"processing-unit", 3}, + {"speed-module", 1}, + {"copper-cable", 30} + }, + result_count = 2, + result = "high-tech-science-pack" + }, + + --The new stuff + -- { + -- type = "recipe", + -- name = "science-pack-1", + -- energy_required = 5, + -- ingredients = + -- { + -- {"copper-plate", 1}, + -- {"iron-gear-wheel", 1} + -- }, + -- result = "science-pack-1" + -- }, + -- { + -- type = "recipe", + -- name = "science-pack-2", + -- energy_required = 6, + -- ingredients = + -- { + -- {"inserter", 1}, + -- {"transport-belt", 1} + -- }, + -- result = "science-pack-2" + -- }, + { + type = "recipe", + name = "17-chemical-science-pack", --"science-pack-3" + enabled = false, + energy_required = 24, --12 + ingredients = + { + {"advanced-circuit", 3}, --3 + {"engine-unit", 2}, --1 + {"solid-fuel", 1} --{"electric-mining-drill", 1} + }, + icon = "__017_science__/graphics/icons/chemical.png", + icon_size = 64, + result = "science-pack-3" + }, + { + type = "recipe", + name = "17-military-science-pack", --"military-science-pack" + enabled = false, + energy_required = 10, + ingredients = + { + {"piercing-rounds-magazine", 1}, + {"grenade", 1}, + {"stone-wall", 2} --{"gun-turret", 1} + }, + icon = "__017_science__/graphics/icons/military.png", + icon_size = 64, + result_count = 2, + result = "military-science-pack" + }, + { + type = "recipe", + name = "17-production-science-pack", --"production-science-pack" + enabled = false, + energy_required = 21, --14 + ingredients = + { + {"rail", 30}, --{"electric-engine-unit", 1}, + {"electric-furnace", 1}, + {"productivity-module", 1} --(+) + }, + icon = "__017_science__/graphics/icons/production.png", + icon_size = 64, + result_count = 3, --2 + result = "production-science-pack" + }, + { + type = "recipe", + name = "17-utility-science-pack", --"high-tech-science-pack" + enabled = false, + energy_required = 21, --14 + ingredients = + { + --{"battery", 1}, + {"processing-unit", 2}, --3 + {"flying-robot-frame", 1}, --{"speed-module", 1}, + {"low-density-structure", 3} --{"copper-cable", 30} + }, + icon = "__017_science__/graphics/icons/utility.png", + icon_size = 64, + result_count = 3, + result = "high-tech-science-pack" + }, + + --LDS changes + { + type = "recipe", + name = "low-density-structure", + category = "crafting", + normal = + { + energy_required = 30, + enabled = false, + ingredients = + { + {"steel-plate", 2}, --10 + {"copper-plate", 20}, --5 + {"plastic-bar", 5} --5 + }, + result= "low-density-structure" + }, + expensive = + { + energy_required = 30, + enabled = false, + ingredients = + { + {"steel-plate", 4}, --10 + {"copper-plate", 20}, --10 + {"plastic-bar", 10} + }, + result= "low-density-structure" + } + } +}) \ No newline at end of file diff --git a/mod-list.json b/mod-list.json index 3472401..bc38b3a 100644 --- a/mod-list.json +++ b/mod-list.json @@ -5,7 +5,7 @@ "enabled": true }, { - "name": "0.17_science", + "name": "017_science", "enabled": true } ]