local modUtil = require "merk_modutil_1" local modSettingsDefinition = { areaPerIndustry = { type = "number", order = 1, default = 0.0, min = 0.0, max = 1000000000.0, name = _("areaPerIndustry"), description = _("areaPerIndustryDescription") } } function data() return { info = { minorVersion = 7, severityAdd = "NONE", severityRemove = "NONE", name = _("name"), description = _("description"), tags = { "Script Mod", "Industry" }, authors = { { name = "dirkels", role = "CREATOR", tfnetId = 27185 } }, visible = true }, settings = modSettingsDefinition, categories = {}, options = {}, runFn = function(settings) -- load user configurable settings modUtil.userSettings.create("dirkels_only_raw_material_industries", modSettingsDefinition) local modSettings = modUtil.userSettings.get("dirkels_only_raw_material_industries") if modSettings.areaPerIndustry > 0.0 then game.config.world.areaPerIndustry = modSettings.areaPerIndustry end -- enable manual placing off industry game.config.industryButton = true -- turn on skipOnInit option for non raw material industries addFileFilter("construction", function(fileName, data) local skip = data.skipOnInit; if string.find(fileName, "industry") then -- vanilla game if string.find(fileName, "construction_material.con") then skip = true end if string.find(fileName, "chemical_plant.con") then skip = true end if string.find(fileName, "machines_factory.con") then skip = true end if string.find(fileName, "goods_factory.con") then skip = true end if string.find(fileName, "oil_refinery.con") then skip = true end if string.find(fileName, "food_processing_plant.con") then skip = true end if string.find(fileName, "saw_mill.con") then skip = true end if string.find(fileName, "steel_mill.con") then skip = true end -- New Industrie 2.4.2 mod if string.find(fileName, "Power_plant.con") then skip = true end if string.find(fileName, "Landfill.con") then skip = true end if string.find(fileName, "Cement_factory.con") then skip = true end if string.find(fileName, "Distillery_plant.con") then skip = true end if string.find(fileName, "Fertilizer_factory.con") then skip = true end if string.find(fileName, "Paper_mill.con") then skip = true end if string.find(fileName, "Textile_factory.con") then skip = true end -- New Industrie 2.5 mod if string.find(fileName, "Aluminum_mill.con") then skip = true end -- Post Mod BETA von nown if string.find(fileName, "post.con") then skip = true end -- Christmas Industry if string.find(fileName, "snowball_potashworks.con") then skip = true end if string.find(fileName, "snowball_glassblowingworkshop.con") then skip = true end -- Industry DLC (ver 1.3) if string.find(fileName, "Big_international_harbor.con") then skip = true end if string.find(fileName, "Fish_factory.con") then skip = true end if string.find(fileName, "Product_base_new.con") then skip = true end if string.find(fileName, "Product_base_old.con") then skip = true end if string.find(fileName, "Product_base_old.con") then skip = true end if string.find(fileName, "Small_international_harbor.con") then skip = true end data.skipOnInit = skip end if string.find(fileName, "commerce") then -- New Industrie 2.4.2 mod if string.find(fileName, "Raceway.con") then skip = true end data.skipOnInit = skip end return true end) end, } end