From 18662feeeb5fdbd668f58b803a5edd5fb4ed899d Mon Sep 17 00:00:00 2001 From: Dysoch Date: Thu, 19 Mar 2015 11:15:10 +0100 Subject: [PATCH] removed old secondary modules --- Changelogs/SECONDARY-DyTech-Config.txt | 5 - Changelogs/SECONDARY-DyTech-Statistics.txt | 5 - SECONDARY-DyTech-Config/info.json | 9 -- SECONDARY-DyTech-Config_1.0.0.txt | 0 SECONDARY-DyTech-Statistics/control.lua | 177 --------------------- SECONDARY-DyTech-Statistics/info.json | 9 -- SECONDARY-DyTech-Statistics_1.0.0.txt | 0 7 files changed, 205 deletions(-) delete mode 100644 Changelogs/SECONDARY-DyTech-Config.txt delete mode 100644 Changelogs/SECONDARY-DyTech-Statistics.txt delete mode 100644 SECONDARY-DyTech-Config/info.json delete mode 100644 SECONDARY-DyTech-Config_1.0.0.txt delete mode 100644 SECONDARY-DyTech-Statistics/control.lua delete mode 100644 SECONDARY-DyTech-Statistics/info.json delete mode 100644 SECONDARY-DyTech-Statistics_1.0.0.txt diff --git a/Changelogs/SECONDARY-DyTech-Config.txt b/Changelogs/SECONDARY-DyTech-Config.txt deleted file mode 100644 index be29c6eb..00000000 --- a/Changelogs/SECONDARY-DyTech-Config.txt +++ /dev/null @@ -1,5 +0,0 @@ -[size=200]DyTech-Config[/size] - -[i][size=150][b]v1.0.0:[/b][/size][/i] -[list] -[*] Official Release.[/list] \ No newline at end of file diff --git a/Changelogs/SECONDARY-DyTech-Statistics.txt b/Changelogs/SECONDARY-DyTech-Statistics.txt deleted file mode 100644 index 134f1e51..00000000 --- a/Changelogs/SECONDARY-DyTech-Statistics.txt +++ /dev/null @@ -1,5 +0,0 @@ -[size=200]DyTech-Statistics[/size] - -[i][size=150][b]v1.0.0:[/b][/size][/i] -[list] -[*] Official Release.[/list] \ No newline at end of file diff --git a/SECONDARY-DyTech-Config/info.json b/SECONDARY-DyTech-Config/info.json deleted file mode 100644 index d3cd4b0a..00000000 --- a/SECONDARY-DyTech-Config/info.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name":"SECONDARY-DyTech-Config", - "author":"Dysoch", - "version":"1.0.0", - "title":"SECONDARY-DyTech-Config", - "homepage":"http://www.factorioforums.com/forum/viewforum.php?f=43", - "description":"This Secondary Module of DyTech holds all config options. This module can be used to change everything that is in the files.", - "dependencies": ["CORE-DyTech-Core >= 1.0.1"] -} \ No newline at end of file diff --git a/SECONDARY-DyTech-Config_1.0.0.txt b/SECONDARY-DyTech-Config_1.0.0.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/SECONDARY-DyTech-Statistics/control.lua b/SECONDARY-DyTech-Statistics/control.lua deleted file mode 100644 index 654e44f3..00000000 --- a/SECONDARY-DyTech-Statistics/control.lua +++ /dev/null @@ -1,177 +0,0 @@ -require "defines" - ---[[Debug Functions]]-- -debug_master = false -- Master switch for debugging, shows most things! -function debug(str) - if debug_master then - PlayerPrint(str) - end -end - -function PlayerPrint(message) - for _,player in pairs(game.players) do - player.print(message) - end -end - -game.oninit(function() - -end) - -game.onsave(function() - -end) - -game.onload(function() - -end) - -game.onevent(defines.events.onplayercrafteditem, function(event) - if not glob.CraftedItems then glob.CraftedItems = {} end - if not glob.CraftedItems[event.itemstack.name] then - glob.CraftedItems[event.itemstack.name] = event.itemstack.count - debug("No CraftedItems ("..tostring(event.itemstack.name)..")") - else - glob.CraftedItems[event.itemstack.name] = glob.CraftedItems[event.itemstack.name] + event.itemstack.count - debug("CraftedItems increased by "..tostring(event.itemstack.count).." ("..tostring(event.itemstack.name)..")") - end -end) - -game.onevent(defines.events.onplayermineditem, function(event) - if not glob.MinedItems then glob.MinedItems = {} end - if not glob.MinedItems[event.itemstack.name] then - glob.MinedItems[event.itemstack.name] = event.itemstack.count - debug("MinedItems not found".." ("..tostring(event.itemstack.name)..")") - else - glob.MinedItems[event.itemstack.name] = glob.MinedItems[event.itemstack.name] + event.itemstack.count - debug("MinedItems increased by "..tostring(event.itemstack.count).." ("..tostring(event.itemstack.name)..")") - end -end) - -game.onevent(defines.events.onrobotmined, function(event) - if not glob.RobotMinedItems then glob.RobotMinedItems = {} end - if not glob.RobotMinedItems[event.itemstack.name] then - glob.RobotMinedItems[event.itemstack.name] = event.itemstack.count - debug("RobotMinedItems not found".." ("..tostring(event.itemstack.name)..")") - else - glob.RobotMinedItems[event.itemstack.name] = glob.RobotMinedItems[event.itemstack.name] + event.itemstack.count - debug("RobotMinedItems increased by "..tostring(event.itemstack.count).." ("..tostring(event.itemstack.name)..")") - end -end) - -game.onevent(defines.events.onentitydied, function(event) - if not glob.EntityDied then glob.EntityDied = {} end - if not glob.EntityDied[event.entity.name] then - glob.EntityDied[event.entity.name] = 1 - debug("EntityDied not found".." ("..tostring(event.entity.name)..")") - else - glob.EntityDied[event.entity.name] = glob.EntityDied[event.entity.name] + 1 - debug("EntityDied increased by 1".." ("..tostring(event.entity.name)..")") - end -end) - -game.onevent(defines.events.onsectorscanned, function(event) - if not glob.SectorScanned then - glob.SectorScanned = 1 - else - glob.SectorScanned = glob.SectorScanned + 1 - end -end) - -game.onevent(defines.events.onmarkedfordeconstruction, function(event) - if not glob.MarkedForDeconstruction then glob.MarkedForDeconstruction = {} end - if not glob.MarkedForDeconstruction[event.entity.name] then - glob.MarkedForDeconstruction[event.entity.name] = 1 - debug("MarkedForDeconstruction not found ("..tostring(event.entity.name)..")") - else - glob.MarkedForDeconstruction[event.entity.name] = glob.MarkedForDeconstruction[event.entity.name] + 1 - debug("MarkedForDeconstruction increased by 1 ("..tostring(event.entity.name)..")") - end -end) - -game.onevent(defines.events.oncanceleddeconstruction, function(event) - if not glob.CanceledDeconstruction then glob.CanceledDeconstruction = {} end - if not glob.CanceledDeconstruction[event.entity.name] then - glob.CanceledDeconstruction[event.entity.name] = 1 - debug("CanceledDeconstruction not found ("..tostring(event.entity.name)..")") - else - glob.CanceledDeconstruction[event.entity.name] = glob.CanceledDeconstruction[event.entity.name] + 1 - debug("CanceledDeconstruction increased by 1 ("..tostring(event.entity.name)..")") - end -end) - -game.onevent(defines.events.onpickedupitem, function(event) - if not glob.PickedItems then glob.PickedItems = {} end - if not glob.PickedItems[event.itemstack.name] then - glob.PickedItems[event.itemstack.name] = event.itemstack.count - debug("PickedItems not found ("..tostring(event.itemstack.name)..")") - else - glob.PickedItems[event.itemstack.name] = glob.PickedItems[event.itemstack.name] + event.itemstack.count - debug("PickedItems increased by "..tostring(event.itemstack.count).." ("..tostring(event.itemstack.name)..")") - end -end) - -game.onevent(defines.events.ontick, function(event) - if not glob.timer then glob.timer={seconds=0, minutes=0, hours=0} end - if event.tick%60==0 then - glob.timer.seconds = glob.timer.seconds + 1 - end - if glob.timer.seconds==60 then - glob.timer.seconds = 0 - glob.timer.minutes = glob.timer.minutes + 1 - end - if glob.timer.minutes==60 then - glob.timer.minutes = 0 - glob.timer.hours = glob.timer.hours + 1 - end -end) - -game.onevent(defines.events.onbuiltentity, function(event) - if not glob.BuildEntity then glob.BuildEntity = {} end - if glob.BuildEntity[event.createdentity.name] then - glob.BuildEntity[event.createdentity.name] = glob.BuildEntity[event.createdentity.name] + 1 - debug("BuildEntity increased by 1 ("..tostring(event.createdentity.name)..")") - else - glob.BuildEntity[event.createdentity.name] = 1 - debug("BuildEntity not found ("..tostring(event.createdentity.name)..")") - end -end) - -game.onevent(defines.events.onrobotbuiltentity, function(event) - if not glob.RobotBuildEntity then glob.RobotBuildEntity = {} end - if glob.RobotBuildEntity[event.createdentity.name] then - glob.RobotBuildEntity[event.createdentity.name] = glob.RobotBuildEntity[event.createdentity.name] + 1 - debug("RobotBuildEntity increased by 1 ("..tostring(event.createdentity.name)..")") - else - glob.RobotBuildEntity[event.createdentity.name] = 1 - debug("RobotBuildEntity not found ("..tostring(event.createdentity.name)..")") - end -end) - -game.onevent(defines.events.onchunkgenerated, function(event) - if not glob.ChunkGenerated then - glob.ChunkGenerated = 1 - else - glob.ChunkGenerated = glob.ChunkGenerated + 1 - end - if debug_chunks then debug("Chunk Generated, chunks counter is now "..tostring(glob.ChunkGenerated)) end -end) - -remote.addinterface("DyTech-Statistics", -{ - ExportAll = function() - game.makefile("DyTech-Timer.txt", serpent.block(glob.timer)) - game.makefile("DyTech-ChunkGenerated.txt", serpent.block(glob.ChunkGenerated)) - game.makefile("DyTech-SectorScanned.txt", serpent.block(glob.SectorScanned)) - game.makefile("DyTech-CraftedItems.txt", serpent.block(glob.CraftedItems)) - game.makefile("DyTech-PickedItems.txt", serpent.block(glob.PickedItems)) - game.makefile("DyTech-MinedItems.txt", serpent.block(glob.MinedItems)) - game.makefile("DyTech-EntityDied.txt", serpent.block(glob.EntityDied)) - game.makefile("DyTech-BuildEntity.txt", serpent.block(glob.BuildEntity)) - game.makefile("DyTech-CanceledDeconstruction.txt", serpent.block(glob.CanceledDeconstruction)) - game.makefile("DyTech-MarkedForDeconstruction.txt", serpent.block(glob.MarkedForDeconstruction)) - game.makefile("DyTech-RobotBuildEntity.txt", serpent.block(glob.RobotBuildEntity)) - game.makefile("DyTech-RobotMinedItems.txt", serpent.block(glob.RobotMinedItems)) - PlayerPrint("You can find all relevant data in the script-output folder!") - end -}) \ No newline at end of file diff --git a/SECONDARY-DyTech-Statistics/info.json b/SECONDARY-DyTech-Statistics/info.json deleted file mode 100644 index 2f8b8978..00000000 --- a/SECONDARY-DyTech-Statistics/info.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name":"SECONDARY-DyTech-Statistics", - "author":"Dysoch", - "version":"1.0.0", - "title":"SECONDARY-DyTech-Statistics", - "homepage":"http://www.factorioforums.com/forum/viewforum.php?f=43", - "description":"This Secondary Module of DyTech holds all Statistics options.", - "dependencies": ["base"] -} \ No newline at end of file diff --git a/SECONDARY-DyTech-Statistics_1.0.0.txt b/SECONDARY-DyTech-Statistics_1.0.0.txt deleted file mode 100644 index e69de29b..00000000