2019-03-02 14:24:48 +03:00
|
|
|
|
2019-04-28 17:04:45 +03:00
|
|
|
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!")
|
2019-11-03 01:39:10 +03:00
|
|
|
elseif minetest.global_exists("tubelib2") and tubelib2.version < 1.6 then
|
|
|
|
minetest.log("error", "[techage] Techage requires tubelib2 version 1.6 or newer!")
|
2019-04-28 17:04:45 +03:00
|
|
|
else
|
2019-07-02 22:33:12 +03:00
|
|
|
techage = {
|
|
|
|
NodeDef = {}, -- node registration info
|
|
|
|
}
|
2020-01-26 01:15:44 +03:00
|
|
|
techage.max_num_forceload_blocks = tonumber(minetest.settings:get("techage_max_num_forceload_blocks")) or 24
|
|
|
|
|
|
|
|
techage.basalt_stone_enabled = minetest.settings:get_bool("techage_basalt_stone_enabled") ~= false
|
|
|
|
techage.ore_rarity = tonumber(minetest.settings:get("techage_ore_rarity")) or 1
|
|
|
|
techage.modified_recipes_enabled = minetest.settings:get_bool("techage_modified_recipes_enabled") ~= false
|
2019-03-02 14:24:48 +03:00
|
|
|
|
2019-07-02 22:33:12 +03:00
|
|
|
-- Load support for I18n.
|
|
|
|
techage.S = minetest.get_translator("techage")
|
2019-08-17 14:33:46 +03:00
|
|
|
|
2019-04-28 17:04:45 +03:00
|
|
|
-- Basis features
|
2019-07-02 22:33:12 +03:00
|
|
|
local MP = minetest.get_modpath("techage")
|
2019-04-28 17:04:45 +03:00
|
|
|
dofile(MP.."/basis/lib.lua") -- helper functions
|
2019-04-30 23:45:28 +03:00
|
|
|
dofile(MP.."/basis/gravel_lib.lua") -- ore probability
|
2019-04-28 17:04:45 +03:00
|
|
|
dofile(MP.."/basis/node_states.lua") -- state model
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/basis/tubes.lua") -- tubes for item transport
|
|
|
|
dofile(MP.."/basis/command.lua") -- command API
|
2019-05-04 14:16:16 +03:00
|
|
|
dofile(MP.."/basis/firebox_lib.lua") -- common firebox functions
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/basis/boiler_lib.lua") -- common boiler functions
|
2019-05-27 22:12:17 +03:00
|
|
|
dofile(MP.."/basis/mark.lua")
|
2019-10-02 20:33:39 +03:00
|
|
|
dofile(MP.."/basis/mark2.lua")
|
2019-06-08 23:57:01 +03:00
|
|
|
dofile(MP.."/basis/assemble.lua")
|
2019-10-27 13:14:37 +03:00
|
|
|
dofile(MP.."/basis/networks.lua")
|
2019-11-10 23:08:37 +03:00
|
|
|
dofile(MP.."/basis/recipe_lib.lua")
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/basis/formspec_update.lua")
|
|
|
|
dofile(MP.."/basis/storage.lua")
|
2019-07-02 22:33:12 +03:00
|
|
|
|
|
|
|
-- Main doc
|
2019-09-26 23:32:37 +03:00
|
|
|
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
|
2019-04-28 22:34:21 +03:00
|
|
|
|
2019-04-28 17:04:45 +03:00
|
|
|
-- Power networks
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/power/node_api.lua")
|
2019-05-21 01:05:53 +03:00
|
|
|
dofile(MP.."/power/junction.lua")
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/power/distribution.lua")
|
|
|
|
dofile(MP.."/power/schedule.lua")
|
|
|
|
dofile(MP.."/power/formspecs.lua")
|
2019-04-28 17:04:45 +03:00
|
|
|
dofile(MP.."/power/drive_axle.lua")
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/power/gearbox.lua")
|
2019-04-28 17:04:45 +03:00
|
|
|
dofile(MP.."/power/steam_pipe.lua")
|
|
|
|
dofile(MP.."/power/electric_cable.lua")
|
2019-05-21 01:05:53 +03:00
|
|
|
dofile(MP.."/power/junctionbox.lua")
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/power/power_terminal.lua")
|
|
|
|
dofile(MP.."/power/powerswitchbox.lua")
|
2020-01-26 22:15:40 +03:00
|
|
|
dofile(MP.."/power/powerswitch.lua")
|
2019-08-31 02:35:46 +03:00
|
|
|
dofile(MP.."/power/protection.lua")
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/power/power_line.lua")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--dofile(MP.."/power/test.lua")
|
|
|
|
--dofile(MP.."/power/power.lua")
|
|
|
|
--dofile(MP.."/power/power2.lua")
|
|
|
|
--dofile(MP.."/power/junction.lua")
|
|
|
|
--dofile(MP.."/power/junctionbox.lua")
|
|
|
|
--dofile(MP.."/power/ta4_cable.lua")
|
2019-04-28 17:04:45 +03:00
|
|
|
|
|
|
|
-- Iron Age
|
|
|
|
dofile(MP.."/iron_age/main.lua")
|
|
|
|
dofile(MP.."/iron_age/gravelsieve.lua")
|
2019-05-01 13:01:24 +03:00
|
|
|
dofile(MP.."/iron_age/hopper.lua")
|
2019-04-28 17:04:45 +03:00
|
|
|
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")
|
2019-05-02 00:01:14 +03:00
|
|
|
|
2019-04-28 17:04:45 +03:00
|
|
|
-- Basic Machines
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/basic_machines/consumer.lua") -- consumer base model
|
2019-05-21 14:15:13 +03:00
|
|
|
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")
|
2019-08-29 22:43:00 +03:00
|
|
|
dofile(MP.."/basic_machines/funnel.lua")
|
2019-09-05 23:47:29 +03:00
|
|
|
dofile(MP.."/basic_machines/liquidsampler.lua")
|
2019-04-28 17:04:45 +03:00
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
-- -- Liquids
|
|
|
|
-- dofile(MP.."/liquids/liquid_pipe.lua")
|
|
|
|
-- dofile(MP.."/liquids/liquid.lua")
|
|
|
|
-- dofile(MP.."/liquids/liquid_lib.lua")
|
|
|
|
-- dofile(MP.."/liquids/tank.lua")
|
|
|
|
-- dofile(MP.."/liquids/silo.lua")
|
|
|
|
-- dofile(MP.."/liquids/pump.lua")
|
|
|
|
-- dofile(MP.."/liquids/fuel_lib.lua")
|
2019-10-27 13:14:37 +03:00
|
|
|
|
2019-04-28 17:04:45 +03:00
|
|
|
-- Coal power station
|
2019-05-21 17:37:05 +03:00
|
|
|
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")
|
2019-06-29 00:46:44 +03:00
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
-- -- 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")
|
2019-06-10 22:31:58 +03:00
|
|
|
|
2019-07-02 22:33:12 +03:00
|
|
|
-- Tools
|
|
|
|
dofile(MP.."/tools/trowel.lua")
|
|
|
|
dofile(MP.."/tools/repairkit.lua")
|
|
|
|
dofile(MP.."/basic_machines/blackhole.lua")
|
|
|
|
dofile(MP.."/basic_machines/forceload.lua")
|
|
|
|
|
2020-01-26 01:15:44 +03:00
|
|
|
-- -- 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/distiller.lua")
|
|
|
|
-- dofile(MP.."/oil/reboiler.lua")
|
|
|
|
-- dofile(MP.."/oil/gasflare.lua")
|
|
|
|
|
|
|
|
-- TA3 power based
|
|
|
|
--dofile(MP.."/ta3_power/tiny_generator.lua")
|
|
|
|
--dofile(MP.."/ta3_power/akkubox.lua")
|
2019-05-21 23:04:05 +03:00
|
|
|
|
2019-08-07 23:26:38 +03:00
|
|
|
-- Logic
|
2019-08-24 00:35:37 +03:00
|
|
|
dofile(MP.."/logic/lib.lua")
|
2019-08-22 21:22:52 +03:00
|
|
|
dofile(MP.."/logic/terminal.lua")
|
2019-08-24 00:35:37 +03:00
|
|
|
dofile(MP.."/logic/button.lua")
|
|
|
|
dofile(MP.."/logic/detector.lua")
|
|
|
|
dofile(MP.."/logic/repeater.lua")
|
|
|
|
dofile(MP.."/logic/programmer.lua")
|
2019-08-24 11:28:58 +03:00
|
|
|
dofile(MP.."/logic/signallamp.lua")
|
2019-08-24 15:12:33 +03:00
|
|
|
dofile(MP.."/logic/sequencer.lua")
|
|
|
|
dofile(MP.."/logic/timer.lua")
|
2019-08-28 23:47:53 +03:00
|
|
|
dofile(MP.."/logic/lua_logic.lua")
|
|
|
|
dofile(MP.."/logic/node_detector.lua")
|
|
|
|
dofile(MP.."/logic/player_detector.lua")
|
2019-08-29 22:43:00 +03:00
|
|
|
dofile(MP.."/logic/cart_detector.lua")
|
2019-11-17 02:08:10 +03:00
|
|
|
dofile(MP.."/logic/gateblock.lua")
|
|
|
|
dofile(MP.."/logic/doorblock.lua")
|
2019-08-07 23:26:38 +03:00
|
|
|
|
2019-06-15 17:14:46 +03:00
|
|
|
-- Test
|
|
|
|
dofile(MP.."/recipe_checker.lua")
|
2020-01-26 01:15:44 +03:00
|
|
|
dofile(MP.."/.test/sink.lua")
|
|
|
|
--dofile(MP.."/.test/source.lua")
|
|
|
|
--dofile(MP.."/.test/accu.lua")
|
2019-08-18 02:24:34 +03:00
|
|
|
|
|
|
|
-- Solar
|
2020-01-26 01:15:44 +03:00
|
|
|
-- 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/fuelcellstack.lua")
|
|
|
|
-- dofile(MP.."/hydrogen/electrolyzer.lua")
|
|
|
|
-- dofile(MP.."/hydrogen/fuelcell.lua")
|
|
|
|
-- dofile(MP.."/hydrogen/legacy.lua")
|
2019-11-17 02:08:10 +03:00
|
|
|
|
|
|
|
-- Items
|
2020-01-26 01:15:44 +03:00
|
|
|
-- dofile(MP.."/items/barrel.lua")
|
2019-11-17 02:08:10 +03:00
|
|
|
dofile(MP.."/items/baborium.lua")
|
|
|
|
dofile(MP.."/items/usmium.lua")
|
2020-01-26 01:15:44 +03:00
|
|
|
-- 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")
|
|
|
|
-- dofile(MP.."/items/hydrogen.lua")
|
|
|
|
|
|
|
|
-- if techage.basalt_stone_enabled then
|
|
|
|
-- dofile(MP.."/items/basalt.lua")
|
|
|
|
-- end
|
|
|
|
|
|
|
|
-- dofile(MP.."/power3/electric_cable.lua")
|
|
|
|
-- dofile(MP.."/power3/node_api.lua")
|
|
|
|
-- dofile(MP.."/power3/distribution.lua")
|
|
|
|
-- dofile(MP.."/power3/schedule.lua")
|
|
|
|
-- dofile(MP.."/power3/hud_debug.lua")
|
|
|
|
-- dofile(MP.."/power3/junctionbox.lua")
|
|
|
|
-- dofile(MP.."/power3/ele3_sink.lua")
|
|
|
|
-- dofile(MP.."/power3/ele3_source.lua")
|
|
|
|
-- dofile(MP.."/power3/accu.lua")
|
|
|
|
-- dofile(MP.."/power3/power_terminal.lua")
|
|
|
|
-- dofile(MP.."/power3/powerswitchbox.lua")
|
|
|
|
-- dofile(MP.."/power3/drive_axle.lua")
|
|
|
|
-- dofile(MP.."/power3/gearbox.lua")
|
|
|
|
-- dofile(MP.."/power3/axle_sink.lua")
|
|
|
|
-- dofile(MP.."/power3/axle_source.lua")
|
|
|
|
end
|