Skip to content

Commit

Permalink
Version 0.1.0 - concept realized
Browse files Browse the repository at this point in the history
  • Loading branch information
oof2win2 committed Feb 19, 2021
0 parents commit 353b3aa
Show file tree
Hide file tree
Showing 7 changed files with 211 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---------------------------------------------------------------------------------------------------
Version: 0.1.0
Date: 19. 2. 2021
Features:
- Removes entity construction of belts, undergrounds and splitters
- Makes robots cheaper and the technology is researched from the beginning
8 changes: 8 additions & 0 deletions control.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
script.on_init(function ()
for index, force in pairs(game.forces) do
game.forces[index].technologies["construction-robotics"].researched = true
game.forces[index].technologies["logistic-robotics"].researched = true
game.forces[index].technologies["logistic-system"].researched = true
game.forces[index].technologies["power-armor"].researched = true
end
end)
30 changes: 30 additions & 0 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
for index, item in pairs(data.raw.item) do
if item.subgroup == "belt" then
local beltList = {"transport-belt", "underground-belt", "splitter"}
for i, catname in pairs(beltList) do
for i, it in pairs(data.raw[catname]) do
if it.name == item.place_result then
if type(it.localised_name) == "table" then
item.localised_name = it.localised_name
else if (it.localised_name) then
item.localised_name = { it.localised_name }
else
item.localised_name = { "entity-name." ..it.name }
end
end
end
end
item.place_result = nil
data.raw.item[index] = item
end
end
end
for index, item in pairs(data.raw["transport-belt"]) do
data.raw["transport-belt"][index].next_upgrade = nil
end
for index, item in pairs(data.raw["underground-belt"]) do
data.raw["underground-belt"][index].next_upgrade = nil
end
for index, item in pairs(data.raw["splitter"]) do
data.raw["splitter"][index].next_upgrade = nil
end
45 changes: 45 additions & 0 deletions data-updates.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
local function enableRecipes(name)
local r = data.raw["recipe"][name]
if r then
if r.expensive == nil and r.normal == nil then
r.enabled = true
return
end
if r.expensive then
r.expensive.enabled = true
end
if r.normal then
r.normal.enabled = true
end
end
end

enableRecipes("roboport")
enableRecipes("construction-robot")
enableRecipes("logistic-chest-passive-provider")
enableRecipes("logistic-chest-storage")

local robotRecipe = {
{"iron-plate", 1},
{"iron-gear-wheel", 1},
{"electronic-circuit", 1},
}

local chestRecipe = {
{"iron-plate", 3},
{"electronic-circuit", 1},
}

data.raw.recipe["construction-robot"].ingredients = robotRecipe
data.raw.recipe["logistic-robot"].ingredients = robotRecipe
data.raw.recipe["roboport"].ingredients = {
{"iron-plate", 25},
{"iron-gear-wheel", 10},
{"electronic-circuit", 10}
}

data.raw.recipe["logistic-chest-passive-provider"].ingredients = chestRecipe
data.raw.recipe["logistic-chest-storage"].ingredients = chestRecipe
data.raw.recipe["logistic-chest-active-provider"].ingredients = chestRecipe
data.raw.recipe["logistic-chest-requester"].ingredients = chestRecipe
data.raw.recipe["logistic-chest-buffer"].ingredients = chestRecipe
98 changes: 98 additions & 0 deletions data.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
data:extend({
--early logistics slots
{
type = "technology",
name = "early-character-logistic-slots",
icon_size = 128,
icon = "__base__/graphics/technology/logistic-robotics.png",
effects =
{
{
type = "character-logistic-requests",
modifier = true
},

},
unit = {
count = 20,
ingredients =
{
{"automation-science-pack", 1},
},
time = 15
},
order = "c-k-d",
},
--early trash slots
{
type = "technology",
name = "early-character-logistic-trash-slots",
icon_size = 128,
icon = "__base__/graphics/technology/logistic-robotics.png",
effects =
{
{
type = "character-logistic-trash-slots",
modifier = 6
},
},
unit = {
count = 20,
ingredients =
{
{"automation-science-pack", 1},
},
time = 15
},
order = "c-k-d",
},
--early worker speed
{
type = "technology",
name = "early-worker-robots-speed",
icon_size = 128,
icon = "__base__/graphics/technology/worker-robots-speed.png",
effects =
{
{
type = "worker-robot-speed",
modifier = 0.45
},

},
unit = {
count = 100,
ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
},
time = 30
},
order = "c-k-d",
},
--early worker cargo capacity
{
type = "technology",
name = "early-worker-robots-storage",
icon_size = 128,
icon = "__base__/graphics/technology/worker-robots-storage.png",
effects =
{
{
type = "worker-robot-storage",
modifier = 3
},
},
unit = {
count = 250,
ingredients =
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
},
time = 30
},
order = "c-k-d",
},
})
11 changes: 11 additions & 0 deletions info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "no-belts",
"version": "0.1.0",
"title": "No Belts",
"author": "oof2win2",
"description": "Disables the ability to place belts. Instead, you are able to use logistic robots for all of your needs",
"dependencies": [
"base >= 1.0.0"
],
"factorio_version": "1.1"
}
13 changes: 13 additions & 0 deletions locale/en/config.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[technology-name]
flying=Advanced flight
robotics=Advanced robotics
early-character-logistic-slots=Basic character logistic slots
early-character-logistic-trash-slots=Basic character logistic trash slots
early-worker-robots-storage=Basic worker robot cargo size
early-worker-robots-speed=Basic worker robot speed

[technology-description]
early-character-logistic-slots=Allows you to request items from the logistic network. The items will be delivered by logistic robots.
early-character-logistic-trash-slots=Allows you to send unwanted items to the logistic network. The items will be taken away by logistic robots.
early-worker-robots-storage=Increases the number of items that logistic and construction robots can carry at once.
early-worker-robots-speed=Increases the flying speed of logistic and construction robots.

0 comments on commit 353b3aa

Please sign in to comment.