df209ecfef
TA4 silo added minor changes and bugfixes on recipes and textures
236 lines
7.7 KiB
Lua
236 lines
7.7 KiB
Lua
|
|
if minetest.global_exists("tubelib") then
|
|
minetest.log("error", "[techage] Techage can't be used together with the mod tubelib!")
|
|
elseif minetest.global_exists("ironage") then
|
|
minetest.log("error", "[techage] Techage can't be used together with the mod ironage!")
|
|
elseif minetest.global_exists("techpack") then
|
|
minetest.log("error", "[techage] Techage can't be used together with the modpack techpack!")
|
|
elseif minetest.global_exists("tubelib2") and tubelib2.version < 1.6 then
|
|
minetest.log("error", "[techage] Techage requires tubelib2 version 1.6 or newer!")
|
|
else
|
|
techage = {
|
|
NodeDef = {}, -- node registration info
|
|
}
|
|
techage.max_num_forceload_blocks = tonumber(minetest.setting_get("techage_max_num_forceload_blocks")) or 24
|
|
techage.basalt_stone_enabled = minetest.setting_get("techage_basalt_stone_enabled") == "true"
|
|
techage.ore_rarity = tonumber(minetest.setting_get("techage_ore_rarity")) or 1
|
|
techage.modified_recipes_enabled = minetest.setting_get("techage_modified_recipes_enabled") == "true"
|
|
|
|
-- Load support for I18n.
|
|
techage.S = minetest.get_translator("techage")
|
|
|
|
-- Debugging via "techage.Debug.dbg(text)"
|
|
techage.Debug = {
|
|
dbg = function(text, ...)
|
|
local t = string.format("%.4f: ", minetest.get_us_time() / 1000000.0)
|
|
if type(text) ~= "string" then
|
|
text = dump(text)
|
|
end
|
|
print(t..text, unpack({...}))
|
|
end,
|
|
--con = true, -- consumer modell
|
|
--pwr = true, -- power distribution
|
|
--sts = true, -- status plots
|
|
--dbg2 = true,
|
|
--tst = true,
|
|
--bot = true -- Signs Bot
|
|
--slr = true,
|
|
}
|
|
|
|
-- Basis features
|
|
local MP = minetest.get_modpath("techage")
|
|
dofile(MP.."/basis/lib.lua") -- helper functions
|
|
dofile(MP.."/basis/gravel_lib.lua") -- ore probability
|
|
dofile(MP.."/basis/node_states.lua") -- state model
|
|
dofile(MP.."/basis/tubes.lua") -- tubelib replacement
|
|
dofile(MP.."/basis/command.lua") -- tubelib replacement
|
|
dofile(MP.."/basis/firebox_lib.lua") -- common firebox functions
|
|
dofile(MP.."/basis/mark.lua")
|
|
dofile(MP.."/basis/mark2.lua")
|
|
dofile(MP.."/basis/assemble.lua")
|
|
dofile(MP.."/basis/networks.lua")
|
|
dofile(MP.."/basis/recipe_lib.lua")
|
|
|
|
-- Main doc
|
|
dofile(MP.."/doc/manual_DE.lua")
|
|
--dofile(MP.."/doc/manual_EN.lua")
|
|
dofile(MP.."/doc/plans.lua")
|
|
dofile(MP.."/doc/items.lua")
|
|
dofile(MP.."/doc/guide.lua") -- construction guides
|
|
|
|
-- Power networks
|
|
dofile(MP.."/power/schedule.lua")
|
|
--dofile(MP.."/power/distribute.lua")
|
|
--dofile(MP.."/power/test.lua")
|
|
dofile(MP.."/power/power.lua")
|
|
dofile(MP.."/power/power2.lua")
|
|
dofile(MP.."/power/junction.lua")
|
|
dofile(MP.."/power/drive_axle.lua")
|
|
dofile(MP.."/power/steam_pipe.lua")
|
|
dofile(MP.."/power/electric_cable.lua")
|
|
dofile(MP.."/power/power_line.lua")
|
|
dofile(MP.."/power/junctionbox.lua")
|
|
dofile(MP.."/power/powerswitch.lua")
|
|
dofile(MP.."/power/protection.lua")
|
|
dofile(MP.."/power/ta4_cable.lua")
|
|
|
|
-- Iron Age
|
|
dofile(MP.."/iron_age/main.lua")
|
|
dofile(MP.."/iron_age/gravelsieve.lua")
|
|
dofile(MP.."/iron_age/hopper.lua")
|
|
dofile(MP.."/iron_age/hammer.lua")
|
|
dofile(MP.."/iron_age/lighter.lua")
|
|
dofile(MP.."/iron_age/charcoalpile.lua")
|
|
dofile(MP.."/iron_age/coalburner.lua")
|
|
dofile(MP.."/iron_age/meltingpot.lua")
|
|
if techage.modified_recipes_enabled then
|
|
dofile(MP.."/iron_age/tools.lua")
|
|
end
|
|
dofile(MP.."/iron_age/recipes.lua")
|
|
if minetest.global_exists("wielded_light") then
|
|
dofile(MP.."/iron_age/meridium.lua")
|
|
end
|
|
|
|
-- Steam Engine
|
|
dofile(MP.."/steam_engine/firebox.lua")
|
|
dofile(MP.."/steam_engine/boiler.lua")
|
|
dofile(MP.."/steam_engine/cylinder.lua")
|
|
dofile(MP.."/steam_engine/flywheel.lua")
|
|
dofile(MP.."/steam_engine/gearbox.lua")
|
|
|
|
-- Basic Machines
|
|
dofile(MP.."/basis/consumer.lua") -- consumer base model
|
|
dofile(MP.."/basic_machines/source.lua")
|
|
dofile(MP.."/basic_machines/pusher.lua")
|
|
dofile(MP.."/basic_machines/legacy_nodes.lua")
|
|
dofile(MP.."/basic_machines/grinder.lua")
|
|
dofile(MP.."/basic_machines/distributor.lua")
|
|
dofile(MP.."/basic_machines/gravelsieve.lua")
|
|
dofile(MP.."/basic_machines/gravelrinser.lua")
|
|
dofile(MP.."/basic_machines/chest.lua")
|
|
dofile(MP.."/basic_machines/autocrafter.lua")
|
|
dofile(MP.."/basic_machines/electronic_fab.lua")
|
|
dofile(MP.."/basic_machines/funnel.lua")
|
|
dofile(MP.."/basic_machines/liquidsampler.lua")
|
|
|
|
-- Liquids
|
|
dofile(MP.."/liquids/liquid_pipe.lua")
|
|
dofile(MP.."/liquids/liquid.lua")
|
|
dofile(MP.."/liquids/tank.lua")
|
|
dofile(MP.."/liquids/silo.lua")
|
|
dofile(MP.."/liquids/pump.lua")
|
|
dofile(MP.."/liquids/fuel_lib.lua")
|
|
|
|
-- Coal power station
|
|
dofile(MP.."/coal_power_station/firebox.lua")
|
|
dofile(MP.."/coal_power_station/boiler_base.lua")
|
|
dofile(MP.."/coal_power_station/boiler_top.lua")
|
|
dofile(MP.."/coal_power_station/generator.lua")
|
|
dofile(MP.."/coal_power_station/turbine.lua")
|
|
dofile(MP.."/coal_power_station/cooler.lua")
|
|
dofile(MP.."/coal_power_station/akkubox.lua")
|
|
dofile(MP.."/coal_power_station/power_terminal.lua")
|
|
|
|
-- Industrial Furnace
|
|
dofile(MP.."/furnace/firebox.lua")
|
|
dofile(MP.."/furnace/cooking.lua")
|
|
dofile(MP.."/furnace/furnace_top.lua")
|
|
dofile(MP.."/furnace/booster.lua")
|
|
dofile(MP.."/furnace/heater.lua")
|
|
dofile(MP.."/furnace/recipes.lua")
|
|
|
|
-- Tools
|
|
dofile(MP.."/tools/trowel.lua")
|
|
dofile(MP.."/tools/repairkit.lua")
|
|
dofile(MP.."/basic_machines/blackhole.lua")
|
|
dofile(MP.."/basic_machines/forceload.lua")
|
|
|
|
-- Lamps
|
|
dofile(MP.."/lamps/lib.lua")
|
|
dofile(MP.."/lamps/simplelamp.lua")
|
|
dofile(MP.."/lamps/streetlamp.lua")
|
|
dofile(MP.."/lamps/ceilinglamp.lua")
|
|
dofile(MP.."/lamps/industriallamp1.lua")
|
|
dofile(MP.."/lamps/industriallamp2.lua")
|
|
dofile(MP.."/lamps/industriallamp3.lua")
|
|
|
|
-- Oil
|
|
dofile(MP.."/oil/explore.lua")
|
|
dofile(MP.."/oil/tower.lua")
|
|
dofile(MP.."/oil/drillbox.lua")
|
|
dofile(MP.."/oil/pumpjack.lua")
|
|
dofile(MP.."/oil/generator.lua")
|
|
dofile(MP.."/oil/distiller.lua")
|
|
dofile(MP.."/oil/reboiler.lua")
|
|
dofile(MP.."/oil/gasflare.lua")
|
|
|
|
-- Logic
|
|
dofile(MP.."/logic/lib.lua")
|
|
dofile(MP.."/logic/terminal.lua")
|
|
dofile(MP.."/logic/button.lua")
|
|
dofile(MP.."/logic/detector.lua")
|
|
dofile(MP.."/logic/repeater.lua")
|
|
dofile(MP.."/logic/programmer.lua")
|
|
dofile(MP.."/logic/signallamp.lua")
|
|
dofile(MP.."/logic/sequencer.lua")
|
|
dofile(MP.."/logic/timer.lua")
|
|
dofile(MP.."/logic/lua_logic.lua")
|
|
dofile(MP.."/logic/node_detector.lua")
|
|
dofile(MP.."/logic/player_detector.lua")
|
|
dofile(MP.."/logic/cart_detector.lua")
|
|
dofile(MP.."/logic/gateblock.lua")
|
|
dofile(MP.."/logic/doorblock.lua")
|
|
|
|
-- Test
|
|
dofile(MP.."/recipe_checker.lua")
|
|
dofile(MP.."/.test/sink.lua")
|
|
dofile(MP.."/.test/source.lua")
|
|
--dofile(MP.."/.test/akku.lua")
|
|
--dofile(MP.."/.test/switch.lua")
|
|
|
|
-- Solar
|
|
dofile(MP.."/solar/minicell.lua")
|
|
dofile(MP.."/solar/solarcell.lua")
|
|
dofile(MP.."/solar/inverter.lua")
|
|
|
|
-- Wind
|
|
dofile(MP.."/wind_turbine/rotor.lua")
|
|
dofile(MP.."/wind_turbine/pillar.lua")
|
|
dofile(MP.."/wind_turbine/signallamp.lua")
|
|
|
|
-- TA4 Energy Storage
|
|
dofile(MP.."/energy_storage/heatexchanger.lua")
|
|
dofile(MP.."/energy_storage/generator.lua")
|
|
dofile(MP.."/energy_storage/turbine.lua")
|
|
dofile(MP.."/energy_storage/inlet.lua")
|
|
dofile(MP.."/energy_storage/nodes.lua")
|
|
|
|
-- Chemistry
|
|
dofile(MP.."/chemistry/ta4_reactor.lua")
|
|
dofile(MP.."/chemistry/ta4_stand.lua")
|
|
dofile(MP.."/chemistry/ta4_doser.lua")
|
|
|
|
-- Hydrogen
|
|
dofile(MP.."/hydrogen/hydrogen.lua")
|
|
dofile(MP.."/hydrogen/electrolyzer.lua")
|
|
dofile(MP.."/hydrogen/fuelcell.lua")
|
|
|
|
-- Items
|
|
dofile(MP.."/items/barrel.lua")
|
|
dofile(MP.."/items/baborium.lua")
|
|
dofile(MP.."/items/usmium.lua")
|
|
dofile(MP.."/items/lye.lua")
|
|
dofile(MP.."/items/oil.lua")
|
|
dofile(MP.."/items/petroleum.lua")
|
|
dofile(MP.."/items/bauxit.lua")
|
|
dofile(MP.."/items/silicon.lua")
|
|
dofile(MP.."/items/steelmat.lua")
|
|
dofile(MP.."/items/powder.lua")
|
|
dofile(MP.."/items/epoxy.lua")
|
|
dofile(MP.."/items/aluminium.lua")
|
|
dofile(MP.."/items/plastic.lua")
|
|
|
|
if techage.basalt_stone_enabled then
|
|
dofile(MP.."/items/basalt.lua")
|
|
end
|
|
end |