built on 25/10/2020 21:32:47

This commit is contained in:
Joachim Stolberg 2020-10-25 21:32:47 +01:00
parent 5bdb9d2560
commit baf25ad87c
275 changed files with 3042 additions and 645 deletions

View File

@ -6,6 +6,7 @@ All mods have the own README.txt. For further information please consult these f
This modpack includes: This modpack includes:
- techage: The main mod - techage: The main mod
- ta4_jetpack: A Jetpack for techage with hydrogen as fuel and TA4 recipe - ta4_jetpack: A Jetpack for techage with hydrogen as fuel and TA4 recipe
- ta4_paraglider: A Paraglider for techage with TA4 recipe
- autobahn: Street blocks and slopes with stripes for faster traveling (the only need of bitumen from techage) - autobahn: Street blocks and slopes with stripes for faster traveling (the only need of bitumen from techage)
- compost: The garden soil is needed for the TA4 LED Grow Light based flower bed - compost: The garden soil is needed for the TA4 LED Grow Light based flower bed
- signs_bot: For many automation tasks in TA3/TA4 like farming, mining, and item transportation - signs_bot: For many automation tasks in TA3/TA4 like farming, mining, and item transportation
@ -44,13 +45,22 @@ ta4_jetpack requires the modpack 3d_armor. 3d_armor is itself a modpack and can'
### History ### History
#### 2020-09-13 #### 2020-10-25
Updated Mods: Updated Mods:
- techage v0.25
- signs_bot
- minecart
#### 2020-09-13
Updated Mods:
- techage v0.23 - techage v0.23
- signs_bot - signs_bot
- minecart - minecart
#### 2020-08-08 #### 2020-08-08
Updated Mods: Updated Mods:
- autobahn - autobahn
- compost - compost
@ -105,6 +115,7 @@ Updates (see local readme files):
- tin ingot recipe bugfix - tin ingot recipe bugfix
- minecart v1.06 - minecart v1.06
- API changed and chat command added - API changed and chat command added
- signs_bot v1.02 - signs_bot v1.02

View File

@ -49,6 +49,14 @@ local function on_punch(pos, node, puncher)
if minecart.hopper_enabled then if minecart.hopper_enabled then
minetest.get_node_timer(pos):start(CYCLE_TIME) minetest.get_node_timer(pos):start(CYCLE_TIME)
end end
-- Optional Teleport function
if not minecart.teleport_enabled then return end
local route = minecart.get_route(P2S(pos))
if route and route.dest_pos and puncher and puncher:is_player() then
if not puncher:get_player_control()['sneak'] then
puncher:set_pos(S2P(route.dest_pos))
end
end
end end
minetest.register_node("minecart:buffer", { minetest.register_node("minecart:buffer", {

View File

@ -16,6 +16,7 @@ minecart = {}
minecart.version = 1.09 minecart.version = 1.09
minecart.hopper_enabled = minetest.settings:get_bool("minecart_hopper_enabled") ~= false minecart.hopper_enabled = minetest.settings:get_bool("minecart_hopper_enabled") ~= false
minecart.teleport_enabled = minetest.settings:get_bool("minecart_teleport_enabled") ~= false
print("minecart_hopper_enabled", dump(minetest.settings:get_bool("minecart_hopper_enabled"))) print("minecart_hopper_enabled", dump(minetest.settings:get_bool("minecart_hopper_enabled")))

View File

@ -42,10 +42,12 @@ end
local old_is_protected = minetest.is_protected local old_is_protected = minetest.is_protected
function minetest.is_protected(pos, name) function minetest.is_protected(pos, name)
local node = minetest.get_node(pos) if pos and name then
if IsNodeUnderObservation[node.name] and is_protected(pos, name, RANGE) then local node = minetest.get_node(pos)
return true if IsNodeUnderObservation[node.name] and is_protected(pos, name, RANGE) then
end return true
end
end
return old_is_protected(pos, name) return old_is_protected(pos, name)
end end

View File

@ -1,2 +1,3 @@
# If enabled, allows the complete automation of Minecarts by means of Hopper and station stop times. # If enabled, allows the complete automation of Minecarts by means of Hopper and station stop times.
minecart_hopper_enabled (Hopper enabled) bool true minecart_hopper_enabled (Hopper enabled) bool true
minecart_teleport_enabled (Teleport enabled) bool false

View File

@ -1,4 +1,4 @@
# Player Physics Design Pattern # Player Physics Access Control
To be able to control the access to player physics (like speed, gravity) and privs (like fast, fly) To be able to control the access to player physics (like speed, gravity) and privs (like fast, fly)
a common design pattern is used for the following mod-pack mods: a common design pattern is used for the following mod-pack mods:
@ -6,12 +6,13 @@ a common design pattern is used for the following mod-pack mods:
- autobahn (fast, speed) - autobahn (fast, speed)
- towercrane (fly, speed) - towercrane (fly, speed)
- ta4_jetpack (gravity, speed) - ta4_jetpack (gravity, speed)
- ta4_paraglider
- stamina (resets the gravity/speed cyclically) - stamina (resets the gravity/speed cyclically)
- 3d_armor (changes physics based on APi calls) - 3d_armor (changes physics based on APi calls)
All of these mods try to change the player physics, which is a common resource and should only be changed by one mod. All of these mods try to change the player physics, which is a common resource and should only be changed by one mod.
This lockout design pattern takes care that only one mod at a time is able to change physics or privs. This access control design pattern takes care that only one mod at a time is able to change physics or privs.
```lua ```lua
local function change_player_physics(player) local function change_player_physics(player)

View File

@ -167,4 +167,5 @@ optional: farming redo, node_io, doc, techage, minecart
- 2020-03-27 v1.01 * flower command and sign added - 2020-03-27 v1.01 * flower command and sign added
- 2020-03-30 v1.02 * Program flow control commands added - 2020-03-30 v1.02 * Program flow control commands added
- 2020-06-21 v1.03 * Interpreter bugfixes, node and crop sensors changed - 2020-06-21 v1.03 * Interpreter bugfixes, node and crop sensors changed
- 2020-10-01 v1.04 * Many improvements and bugfixes (Thanks toThomas-S)

View File

@ -189,7 +189,7 @@ local function reset_robot(pos, mem)
signs_bot.place_robot(mem.robot_pos, pos_below, mem.robot_param2) signs_bot.place_robot(mem.robot_pos, pos_below, mem.robot_param2)
end end
local function start_robot(base_pos) function signs_bot.start_robot(base_pos)
local mem = tubelib2.get_mem(base_pos) local mem = tubelib2.get_mem(base_pos)
mem.steps = nil mem.steps = nil
mem.script = "cond_move" mem.script = "cond_move"
@ -232,7 +232,7 @@ function signs_bot.stop_robot(base_pos, mem)
signs_bot.remove_robot(mem) signs_bot.remove_robot(mem)
else else
mem.signal_request = false mem.signal_request = false
start_robot(base_pos) signs_bot.start_robot(base_pos)
end end
end end
@ -250,7 +250,7 @@ end
local function signs_bot_on_signal(pos, node, signal) local function signs_bot_on_signal(pos, node, signal)
local mem = tubelib2.get_mem(pos) local mem = tubelib2.get_mem(pos)
if signal == "on" and not mem.running then if signal == "on" and not mem.running then
start_robot(pos) signs_bot.start_robot(pos)
elseif signal == "off" and mem.running then elseif signal == "off" and mem.running then
signs_bot.stop_robot(pos, mem) signs_bot.stop_robot(pos, mem)
-- else -- else
@ -289,7 +289,7 @@ local function on_receive_fields(pos, formname, fields, player)
elseif fields.back then elseif fields.back then
meta:set_string("formspec", formspec(pos, mem)) meta:set_string("formspec", formspec(pos, mem))
elseif fields.start then elseif fields.start then
start_robot(pos) signs_bot.start_robot(pos)
elseif fields.stop then elseif fields.stop then
signs_bot.stop_robot(pos, mem) signs_bot.stop_robot(pos, mem)
end end

View File

@ -45,12 +45,12 @@ local function planting(base_pos, mem, slot)
local plant = stack:get_name() local plant = stack:get_name()
if plant then if plant then
local item = signs_bot.FarmingSeed[plant] local item = signs_bot.FarmingSeed[plant]
if item and item.seed then if item then
if minetest.registered_nodes[plant] then if minetest.registered_nodes[item] then
local p2 = minetest.registered_nodes[plant].place_param2 or 1 local p2 = minetest.registered_nodes[item].place_param2 or 1
minetest.set_node(pos, {name = item.seed, param2 = p2}) minetest.set_node(pos, {name = item, param2 = p2})
else else
minetest.set_node(pos, {name = item.seed}) minetest.set_node(pos, {name = item})
end end
minetest.sound_play("default_place_node", {pos = pos, gain = 1.0}) minetest.sound_play("default_place_node", {pos = pos, gain = 1.0})
else else
@ -92,15 +92,12 @@ local function harvesting(base_pos, mem)
if pos and lib.not_protected(base_pos, pos) then if pos and lib.not_protected(base_pos, pos) then
local node = minetest.get_node_or_nil(pos) local node = minetest.get_node_or_nil(pos)
local item = signs_bot.FarmingCrop[node.name] if signs_bot.FarmingCrop[node.name] then
if item and item.inv_crop and item.inv_seed then
minetest.remove_node(pos) minetest.remove_node(pos)
bot_inv_put_item(base_pos, 0, ItemStack(item.inv_crop)) -- Do not cache the result of get_node_drops; it is a probabilistic function!
bot_inv_put_item(base_pos, 0, ItemStack(item.inv_seed)) local drops = minetest.get_node_drops(node.name)
if math.random(2) == 1 then for _,itemstring in ipairs(drops) do
bot_inv_put_item(base_pos, 0, ItemStack(item.inv_crop)) bot_inv_put_item(base_pos, 0, ItemStack(itemstring))
else
bot_inv_put_item(base_pos, 0, ItemStack(item.inv_seed))
end end
end end
end end

View File

@ -27,8 +27,13 @@ local bot_inv_take_item = signs_bot.bot_inv_take_item
local Flowers = {} local Flowers = {}
-- Special drop handling is necessary because of waterlily.
function signs_bot.register_flower(name) function signs_bot.register_flower(name)
Flowers[name] = true local drop = signs_bot.lib.is_simple_node({name = name})
if drop then
Flowers[name] = drop
end
end end
minetest.after(1, function() minetest.after(1, function()
@ -43,26 +48,16 @@ minetest.after(1, function()
end end
end) end)
local function soil_availabe(pos)
local node = minetest.get_node_or_nil(pos)
if node.name == "air" then
node = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
if node and minetest.get_item_group(node.name, "soil") >= 1 then
return true
end
end
return false
end
local function harvesting(base_pos, mem) local function harvesting(base_pos, mem)
local pos = mem.pos_tbl and mem.pos_tbl[mem.steps] local pos = mem.pos_tbl and mem.pos_tbl[mem.steps]
mem.steps = (mem.steps or 1) + 1 mem.steps = (mem.steps or 1) + 1
if pos and lib.not_protected(base_pos, pos) then if pos and lib.not_protected(base_pos, pos) then
local node = minetest.get_node_or_nil(pos) local node = minetest.get_node_or_nil(pos)
if Flowers[node.name] then local drop = Flowers[node.name]
if drop then
minetest.remove_node(pos) minetest.remove_node(pos)
bot_inv_put_item(base_pos, 0, ItemStack(node.name)) bot_inv_put_item(base_pos, 0, ItemStack(drop))
end end
end end
end end

View File

@ -34,9 +34,12 @@ local function swap_node(pos, name)
if node.name == name then if node.name == name then
return false return false
end end
node.name = name if string.sub(node.name, 1,21) == "signs_bot:crop_sensor" then
minetest.swap_node(pos, node) node.name = name
return true minetest.swap_node(pos, node)
return true
end
return false
end end
local function node_timer(pos) local function node_timer(pos)

View File

@ -229,10 +229,16 @@ function signs_bot.lib.after_dig_sign_node(pos, oldnode, oldmetadata, digger)
smeta:set_int("err_code", tonumber(oldmetadata.fields.err_code)) smeta:set_int("err_code", tonumber(oldmetadata.fields.err_code))
smeta:set_string("err_msg", oldmetadata.fields.err_msg or "") smeta:set_string("err_msg", oldmetadata.fields.err_msg or "")
end end
local inv = minetest.get_inventory({type="player", name=digger:get_player_name()}) local player_name = digger:get_player_name()
local left_over = inv:add_item("main", sign) -- See https://github.com/minetest/minetest/blob/34e3ede8eeb05e193e64ba3d055fc67959d87d86/doc/lua_api.txt#L6222
if left_over:get_count() > 0 then if player_name == "" then
minetest.add_item(pos, sign) minetest.add_item(pos, sign)
else
local inv = minetest.get_inventory({type="player", name=digger:get_player_name()})
local left_over = inv:add_item("main", sign)
if left_over:get_count() > 0 then
minetest.add_item(pos, sign)
end
end end
end end

View File

@ -34,9 +34,12 @@ local function swap_node(pos, name)
if node.name == name then if node.name == name then
return false return false
end end
node.name = name if string.sub(node.name, 1,21) == "signs_bot:node_sensor" then
minetest.swap_node(pos, node) node.name = name
return true minetest.swap_node(pos, node)
return true
end
return false
end end

View File

@ -17,16 +17,11 @@ signs_bot.FarmingCrop = {}
signs_bot.TreeSaplings = {} signs_bot.TreeSaplings = {}
-- inv_seed is the seed inventory name -- inv_seed is the seed inventory name
-- seed is what has to be placed on the ground (stage 1) -- plantlet is what has to be placed on the ground (stage 1)
function signs_bot.register_farming_seed(inv_seed, seed)
signs_bot.FarmingSeed[inv_seed] = {seed = seed}
end
-- crop is the farming crop in the final stage -- crop is the farming crop in the final stage
-- inv_crop is the the inventory item name of the crop result function signs_bot.register_farming_plant(inv_seed, plantlet, crop)
-- inv_seed is the the inventory item name of the seed result signs_bot.FarmingCrop[crop] = true
function signs_bot.register_farming_crop(crop, inv_crop, inv_seed) signs_bot.FarmingSeed[inv_seed] = plantlet
signs_bot.FarmingCrop[crop] = {inv_crop = inv_crop, inv_seed = inv_seed}
end end
-- inv_sapling is the sapling inventory name -- inv_sapling is the sapling inventory name
@ -36,78 +31,47 @@ function signs_bot.register_tree_saplings(inv_sapling, sapling, t1, t2)
signs_bot.TreeSaplings[inv_sapling] = {sapling = sapling, t1 = t1 or 300, t2 = t2 or 1500} signs_bot.TreeSaplings[inv_sapling] = {sapling = sapling, t1 = t1 or 300, t2 = t2 or 1500}
end end
local fs = signs_bot.register_farming_seed local fp = signs_bot.register_farming_plant
local fc = signs_bot.register_farming_crop
local ts = signs_bot.register_tree_saplings local ts = signs_bot.register_tree_saplings
if farming.mod ~= "redo" then if farming.mod ~= "redo" then
fs("farming:seed_wheat", "farming:wheat_1") fp("farming:seed_wheat", "farming:wheat_1", "farming:wheat_8")
fc("farming:wheat_8", "farming:wheat", "farming:seed_wheat") fp("farming:seed_cotton", "farming:cotton_1", "farming:cotton_8")
fs("farming:seed_cotton", "farming:cotton_1")
fc("farming:cotton_8", "farming:cotton", "farming:seed_cotton")
end end
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- Farming Redo -- Farming Redo
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
if farming.mod == "redo" then if farming.mod == "redo" then
fs("farming:seed_wheat", "farming:wheat_1") fp("farming:seed_wheat", "farming:wheat_1", "farming:wheat_8")
fc("farming:wheat_8", "farming:wheat", "farming:seed_wheat") fp("farming:seed_cotton", "farming:cotton_1", "farming:cotton_8")
fs("farming:seed_cotton", "farming:cotton_1") fp("farming:carrot", "farming:carrot_1", "farming:carrot_8")
fc("farming:cotton_8", "farming:cotton", "farming:seed_cotton") fp("farming:potato", "farming:potato_1", "farming:potato_4")
fs("farming:carrot", "farming:carrot_1") fp("farming:tomato", "farming:tomato_1", "farming:tomato_8")
fc("farming:carrot_8", "farming:carrot", "farming:carrot") fp("farming:cucumber", "farming:cucumber_1", "farming:cucumber_4")
fs("farming:potato", "farming:potato_1") fp("farming:corn", "farming:corn_1", "farming:corn_8")
fc("farming:potato_4", "farming:potato 2", "farming:potato") fp("farming:coffee_beans", "farming:coffee_1", "farming:coffee_5")
fs("farming:tomato", "farming:tomato_1") fp("farming:melon_slice", "farming:melon_1", "farming:melon_8")
fc("farming:tomato_8", "farming:tomato 2", "farming:tomato") fp("farming:pumpkin_slice", "farming:pumpkin_1", "farming:pumpkin_8")
fs("farming:cucumber", "farming:cucumber_1") fp("farming:raspberries", "farming:raspberry_1", "farming:raspberry_4")
fc("farming:cucumber_4", "farming:cucumber", "farming:cucumber") fp("farming:blueberries", "farming:blueberry_1", "farming:blueberry_4")
fs("farming:corn", "farming:corn_1") fp("farming:rhubarb", "farming:rhubarb_1", "farming:rhubarb_3")
fc("farming:corn_8", "farming:corn", "farming:corn") fp("farming:beans", "farming:beanpole_1", "farming:beanpole_5")
fs("farming:coffee_beans", "farming:coffee_1") fp("farming:grapes", "farming:grapes_1", "farming:grapes_8")
fc("farming:coffee_5", "farming:coffee_beans", "farming:coffee_beans") fp("farming:seed_barley", "farming:barley_1", "farming:barley_7")
fs("farming:melon_slice", "farming:melon_1") fp("farming:chili_pepper", "farming:chili_1", "farming:chili_8")
fc("farming:melon_8", "farming:melon_8", "farming:melon_slice") fp("farming:seed_hemp", "farming:hemp_1", "farming:hemp_8")
fs("farming:pumpkin_slice", "farming:pumpkin_1") fp("farming:seed_oat", "farming:oat_1", "farming:oat_8")
fc("farming:pumpkin_8", "farming:pumpkin_8", "farming:pumpkin_slice") fp("farming:seed_rye", "farming:rye_1", "farming:rye_8")
fs("farming:raspberries", "farming:raspberry_1") fp("farming:seed_rice", "farming:rice_1", "farming:rice_8")
fc("farming:raspberry_4", "farming:raspberries 2", "farming:raspberries") fp("farming:beetroot", "farming:beetroot_1", "farming:beetroot_5")
fs("farming:blueberries", "farming:blueberry_1") fp("farming:cocoa_beans", "farming:cocoa_1", "farming:cocoa_4")
fc("farming:blueberry_4", "farming:blueberries", "farming:blueberries") fp("farming:garlic_clove", "farming:garlic_1", "farming:garlic_5")
fs("farming:rhubarb", "farming:rhubarb_1") fp("farming:onion", "farming:onion_1", "farming:onion_5")
fc("farming:rhubarb_3", "farming:rhubarb", "farming:rhubarb") fp("farming:peas", "farming:pea_1", "farming:pea_5")
fs("farming:beans", "farming:beanpole_1") fp("farming:peppercorn", "farming:pepper_1", "farming:pepper_5")
fc("farming:beanpole_5", "farming:beans 2", "farming:beans") fp("farming:pineapple_top", "farming:pineapple_1", "farming:pineapple_8")
fs("farming:grapes", "farming:grapes_1")
fc("farming:grapes_8", "farming:grapes 2", "farming:grapes")
fs("farming:seed_barley", "farming:barley_1")
fc("farming:barley_7", "farming:barley", "farming:seed_barley")
fs("farming:chili_pepper", "farming:chili_1")
fc("farming:chili_8", "farming:chili_pepper", "farming:chili_pepper")
fs("farming:seed_hemp", "farming:hemp_1")
fc("farming:hemp_8", "farming:hemp_leaf", "farming:seed_hemp")
fs("farming:seed_oat", "farming:oat_1")
fc("farming:oat_8", "farming:oat", "farming:seed_oat")
fs("farming:seed_rye", "farming:rye_1")
fc("farming:rye_8", "farming:rye", "farming:seed_rye")
fs("farming:seed_rice", "farming:rice_1")
fc("farming:rice_8", "farming:rice", "farming:seed_rice")
fs("farming:beetroot", 'farming:beetroot_1')
fc('farming:beetroot_5', 'farming:beetroot', 'farming:beetroot')
fs("farming:cocoa_beans", 'farming:cocoa_1')
fc('farming:cocoa_4', 'farming:cocoa_beans', 'farming:cocoa_beans')
fs('farming:garlic_clove', 'farming:garlic_1')
fc('farming:garlic_5', 'farming:garlic', 'farming:garlic_clove')
fs('farming:onion', 'farming:onion_1')
fc('farming:onion_5', 'farming:onion', 'farming:onion')
fs('farming:peas', 'farming:pea_1')
fc('farming:pea_5', 'farming:pea_pod 2', 'farming:peas')
fs('farming:peppercorn', 'farming:pepper_1')
fc('farming:pepper_5', 'farming:pepper 2', 'farming:peppercorn')
fs('farming:pineapple', 'farming:pineapple_1')
fc('farming:pineapple_8', 'farming:pineapple', 'farming:pineapple')
end end
------------------------------------------------------------------------------- -------------------------------------------------------------------------------

View File

@ -86,6 +86,24 @@ if minetest.get_modpath("techage") then
end, end,
}) })
signs_bot.register_botcommand("send_cmnd", {
mod = "techage",
params = "<receiver> <command>",
num_param = 2,
description = S("Sends a techage command\nto a given node.\nReceiver is addressed by\nthe techage node number."),
check = function(address, command)
address = tonumber(address)
return address ~= nil and command ~= nil and command ~= ""
end,
cmnd = function(base_pos, mem, address, command)
address = tostring(tonumber(address))
local meta = minetest.get_meta(base_pos)
local number = meta:get_int("number") or 0
techage.send_multi(number, address, command)
return signs_bot.DONE
end,
})
-- Bot in the box -- Bot in the box
function signs_bot.while_charging(pos, mem) function signs_bot.while_charging(pos, mem)
@ -154,6 +172,14 @@ if minetest.get_modpath("techage") then
end end
elseif topic == "load" then elseif topic == "load" then
return signs_bot.percent_value(signs_bot.MAX_CAPA, mem.capa) return signs_bot.percent_value(signs_bot.MAX_CAPA, mem.capa)
elseif topic == "on" then
if not mem.running then
signs_bot.start_robot(pos)
end
elseif topic == "off" then
if mem.running then
signs_bot.stop_robot(pos, mem)
end
else else
return "unsupported" return "unsupported"
end end

View File

@ -525,3 +525,11 @@ minetest.register_craft({
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"} {"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"}
}, },
}) })
dofile(minetest.get_modpath("ta4_jetpack") .. "/manual_DE.lua")
dofile(minetest.get_modpath("ta4_jetpack") .. "/manual_EN.lua")
techage.add_manual_items({
ta4_jetpack = "ta4_jetpack.png",
ta4_jetpack_controller = 'ta4_jetpack_controller_inv.png'})

34
ta4_jetpack/manual.lua Normal file
View File

@ -0,0 +1,34 @@
techage.add_to_manual('DE', {
"1,TA4 Jetpack",
"2,Anleitung",
"2,Was du wissen solltest",
}, {
"Das Jetpack ist inspiriert vom Jetpack von spirit689 (https://github.com/spirit689/jetpack) und durch das historische Spiel Lunar Lander.\n"..
"\n"..
"\n"..
"\n",
" - TA4 Jetpack\\, Jetpack Controller und Trainingsmatte herstellen (craften)\n"..
" - Verwende die '3d_armor' Erweiterung des Spielermenüs\\, um das Jetpack auf deinem Rücken zu schnallen\n"..
" - Du kannst das Jetpack auftanken\\, indem du mit dem Controller und mit der linken Maustaste auf einen Wasserstofftanks klickst\n"..
" - Schalte den Controller mit der rechten Maustaste ein und überprüfe den Füllstand des Kraftstofftanks (der kleine farbige Balken unter dem Reglersymbol).\n"..
" - Verwende die Leertaste\\, um das Jetpack zu aktivieren und die WASD-Tasten\\, um die Richtung zu steuern\n"..
" - Vor dem ersten Flug solltest du einige Trainingsstarts und Landungen auf der Trainingsmatte durchführen\n (Das Jetpack ist etwas eigensinnig\\, es erfordert etwas Übung\\, das JetPack in der Luft zu halten.)\n"..
"\n"..
"\n"..
"\n",
" - 12 Einheiten Wasserstoff reichen für einen Flug von 6 Minuten\n"..
" - Maximal 5 Stapel von Gegenständen im Spieler-Inventar sind zulässig\\, einschließlich des Controllers\n(Sonst wärst du zu schwer :-)\n"..
" - Das Jetpack nutzt sich ab und kann für ca. 10 Flüge verwendet werden\n"..
" - Halte den Controller während des Fluges immer fest\\, sonst schaltet er sich aus :)\n"..
"\n"..
"\n"..
"\n",
}, {
"ta4_jetpack",
"ta4_jetpack_controller",
"ta4_jetpack_controller",
}, {
"",
"",
"",
})

34
ta4_jetpack/manual_DE.lua Normal file
View File

@ -0,0 +1,34 @@
techage.add_to_manual('DE', {
"1,TA4 Jetpack",
"2,Anleitung",
"2,Was du wissen solltest",
}, {
"Das Jetpack ist inspiriert vom Jetpack von spirit689 (https://github.com/spirit689/jetpack) und durch das historische Spiel Lunar Lander.\n"..
"\n"..
"\n"..
"\n",
" - TA4 Jetpack\\, Jetpack Controller und Trainingsmatte herstellen (craften)\n"..
" - Verwende die '3d_armor' Erweiterung des Spielermenüs\\, um das Jetpack auf deinem Rücken zu schnallen\n"..
" - Du kannst das Jetpack auftanken\\, indem du mit dem Controller und mit der linken Maustaste auf einen Wasserstofftanks klickst\n"..
" - Schalte den Controller mit der rechten Maustaste ein und überprüfe den Füllstand des Kraftstofftanks (der kleine farbige Balken unter dem Reglersymbol).\n"..
" - Verwende die Leertaste\\, um das Jetpack zu aktivieren und die WASD-Tasten\\, um die Richtung zu steuern\n"..
" - Vor dem ersten Flug solltest du einige Trainingsstarts und Landungen auf der Trainingsmatte durchführen\n (Das Jetpack ist etwas eigensinnig\\, es erfordert etwas Übung\\, das JetPack in der Luft zu halten.)\n"..
"\n"..
"\n"..
"\n",
" - 12 Einheiten Wasserstoff reichen für einen Flug von 6 Minuten\n"..
" - Maximal 5 Stapel von Gegenständen im Spieler-Inventar sind zulässig\\, einschließlich des Controllers\n(Sonst wärst du zu schwer :-)\n"..
" - Das Jetpack nutzt sich ab und kann für ca. 10 Flüge verwendet werden\n"..
" - Halte den Controller während des Fluges immer fest\\, sonst schaltet er sich aus :)\n"..
"\n"..
"\n"..
"\n",
}, {
"ta4_jetpack",
"ta4_jetpack_controller",
"ta4_jetpack_controller",
}, {
"",
"",
"",
})

29
ta4_jetpack/manual_DE.md Normal file
View File

@ -0,0 +1,29 @@
# TA4 Jetpack
Das Jetpack ist inspiriert vom Jetpack von spirit689 (https://github.com/spirit689/jetpack) und durch das historische Spiel Lunar Lander.
[ta4_jetpack|image]
## Anleitung
- TA4 Jetpack, Jetpack Controller und Trainingsmatte herstellen (craften)
- Verwende die '3d_armor' Erweiterung des Spielermenüs, um das Jetpack auf deinem Rücken zu schnallen
- Du kannst das Jetpack auftanken, indem du mit dem Controller und mit der linken Maustaste auf einen Wasserstofftanks klickst
- Schalte den Controller mit der rechten Maustaste ein und überprüfe den Füllstand des Kraftstofftanks (der kleine farbige Balken unter dem Reglersymbol).
- Verwende die Leertaste, um das Jetpack zu aktivieren und die WASD-Tasten, um die Richtung zu steuern
- Vor dem ersten Flug solltest du einige Trainingsstarts und Landungen auf der Trainingsmatte durchführen
(Das Jetpack ist etwas eigensinnig, es erfordert etwas Übung, das JetPack in der Luft zu halten.)
[ta4_jetpack_controller|image]
## Was du wissen solltest
- 12 Einheiten Wasserstoff reichen für einen Flug von 6 Minuten
- Maximal 5 Stapel von Gegenständen im Spieler-Inventar sind zulässig, einschließlich des Controllers
(Sonst wärst du zu schwer :-)
- Das Jetpack nutzt sich ab und kann für ca. 10 Flüge verwendet werden
- Halte den Controller während des Fluges immer fest, sonst schaltet er sich aus :)
[ta4_jetpack_controller|image]

35
ta4_jetpack/manual_EN.lua Normal file
View File

@ -0,0 +1,35 @@
techage.add_to_manual('EN', {
"1,TA4 Jetpack",
"2,Instructions",
"2,Important to know",
}, {
"The Jetpack is inspired by the jetpack from spirit689 (https://github.com/spirit689/jetpack)\n"..
"and by the historical game Lunar Lander.\n"..
"\n"..
"\n"..
"\n",
" - Craft TA4 Jetpack\\, Jetpack Controller and Training Mat\n"..
" - Use the armor extension (3d_armor) of the player menu to strap the Jetpack on your back\n"..
" - You can refuel the jetpack by left-clicking with the controller on a hydrogen tank\n"..
" - Turn the controller on by right-click and check the fuel tank level (the small colored bar below the controller icon)\n"..
" - Use the space bar to activate the Jetpack and the WASD keys to control the direction\n"..
" - Before your first flight you should do some training starts and landings on the Training Mat \n(The Jetpack is a bit stubborn\\, it takes some practice to keep the JetPack in the air)\n"..
"\n"..
"\n"..
"\n",
" - 12 units of hydrogen are sufficient for a flight of 6 minutes\n"..
" - Maximum 5 items stacks in your inventory are allowed including the controller.\nOtherwise you would be too heavy :-)\n"..
" - The Jetpack also wears out and can be used for approximately 10 flights\n"..
" - Always hold the controller tight during the flight\\, otherwise it will switch off :)\n"..
"\n"..
"\n"..
"\n",
}, {
"ta4_jetpack",
"ta4_jetpack_controller",
"ta4_jetpack_controller",
}, {
"",
"",
"",
})

30
ta4_jetpack/manual_EN.md Normal file
View File

@ -0,0 +1,30 @@
# TA4 Jetpack
The Jetpack is inspired by the jetpack from spirit689 (https://github.com/spirit689/jetpack)
and by the historical game Lunar Lander.
[ta4_jetpack|image]
## Instructions
- Craft TA4 Jetpack, Jetpack Controller and Training Mat
- Use the armor extension (3d_armor) of the player menu to strap the Jetpack on your back
- You can refuel the jetpack by left-clicking with the controller on a hydrogen tank
- Turn the controller on by right-click and check the fuel tank level (the small colored bar below the controller icon)
- Use the space bar to activate the Jetpack and the WASD keys to control the direction
- Before your first flight you should do some training starts and landings on the Training Mat
(The Jetpack is a bit stubborn, it takes some practice to keep the JetPack in the air)
[ta4_jetpack_controller|image]
## Important to know
- 12 units of hydrogen are sufficient for a flight of 6 minutes
- Maximum 5 items stacks in your inventory are allowed including the controller.
Otherwise you would be too heavy :-)
- The Jetpack also wears out and can be used for approximately 10 flights
- Always hold the controller tight during the flight, otherwise it will switch off :)
[ta4_jetpack_controller|image]

199
ta4_jetpack/markdown2lua.py Normal file
View File

@ -0,0 +1,199 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import mistune # install v0.8.4 with: pip install mistune
__version__ = "1.0"
class WikiLinkInlineLexer(mistune.InlineLexer):
def enable_wiki_link(self):
# add wiki_link rules
self.rules.wiki_link = re.compile(
r'\[' # [
r'([\s\S]+?\|[\s\S]+?)' # name| img-type
r'\](?!\])' # ]
)
# Add wiki_link parser to default rules
# you can insert it some place you like
# but place matters, maybe 3 is not good
self.default_rules.insert(3, 'wiki_link')
def output_wiki_link(self, m):
text = m.group(1)
name, itype = text.split('|')
# you can create an custom render
# you can also return the html if you like
return self.renderer.wiki_link(name, itype)
class MarkdownToLua(mistune.Renderer):
def __init__(self, *args, **kwargs):
mistune.Renderer.__init__(self, *args, **kwargs)
self.item_name = ""
self.plan_table = ""
self.is_first_header = True
self.text_chunck = []
self.lTitle = []
self.lText = []
self.lItemName = []
self.lPlanTable = []
print("Markdown-to-Lua v%s" % __version__)
def m2l_formspec_escape(self, text):
text = text.replace("\\", "")
text = text.replace("[", "\\\\[")
text = text.replace("]", "\\\\]")
text = text.replace(";", "\\\\;")
text = text.replace(",", "\\\\,")
text = text.replace('"', '\\"')
text = text.replace('\n', '\\n')
return text
def m2l_add_last_paragraph(self):
"""
Used to add a text block before the next header or at the end of the document
"""
self.lText.append(self.text_chunck)
self.text_chunck = []
self.lItemName.append(self.item_name)
self.item_name = ""
self.lPlanTable.append(self.plan_table)
self.plan_table = ""
##
## Block Level
##
def block_code(self, code, lang):
text = self.m2l_formspec_escape(code.strip())
lines = text.split("\n")
lines = [" " + item for item in lines]
self.text_chunck.extend(lines)
self.text_chunck.append("")
return ""
def header(self, text, level, raw=None):
if not self.is_first_header:
self.m2l_add_last_paragraph()
self.is_first_header = False
self.lTitle.append("%u,%s" % (level, self.m2l_formspec_escape(text)))
return ""
def hrule(self):
self.text_chunck.append("\n----------------------------------------------------\n")
return ""
def paragraph(self, text):
lines = text.split("\\n") + [""]
self.text_chunck.extend(lines)
return ""
def list(self, body, ordered=True):
lines = body.split("\n")
self.text_chunck.extend(lines)
return ""
def list_item(self, text):
return " - %s\n" % text.strip()
##
## Span Level
##
def emphasis(self, text):
return "*%s*" % self.m2l_formspec_escape(text)
def double_emphasis(self, text):
return "*%s*" % self.m2l_formspec_escape(text)
def codespan(self, text):
return "'%s'" % self.m2l_formspec_escape(text)
def text(self, text):
return self.m2l_formspec_escape(text)
def link(self, link, title, content):
"""
Used for plans and images:
[myimage](/image/)
[myplan](/plan/)
"""
if link == "/image/":
self.item_name = content
elif link == "/plan/":
self.plan_table = content
return ""
def wiki_link(self, name, itype):
"""
Used for plans and images:
[myimage|image]
[myplan|plan]
"""
if itype == "image":
self.item_name = name
elif itype == "plan":
self.plan_table = name
return ""
def autolink(self, link, is_email=False):
return link
def linebreak(self):
return "\\n"
def newline(self):
return "\\n"
def inline_html(self, text):
#print(text)
pass
def parse_md_file(self, src_name):
print(" - Read MD file '%s'" % src_name)
inline = WikiLinkInlineLexer(self)
# enable the feature
inline.enable_wiki_link()
md = mistune.Markdown(renderer=self, inline=inline)
md.renderer.src_name = src_name
md.render(open(src_name, 'r').read())
md.renderer.m2l_add_last_paragraph()
def lua_table(self, lData):
lOut = []
lOut.append("{")
for line in lData:
lOut.append(' "%s",' % line)
lOut.append("}")
return "\n".join(lOut)
def lua_text_table(self, lData):
lOut = []
lOut.append("{")
for lines in lData:
for line in lines[:-1]:
line = line.replace('<br>', '\\n')
lOut.append(' "%s\\n"..' % line)
if len(lines) > 0:
lOut.append(' "%s\\n",' % lines[-1])
else:
lOut.append(' "",')
lOut.append("}")
return "\n".join(lOut)
def gen_lua_file(self, dest_name, language="EN"):
print(" - Write Lua file '%s'" % dest_name)
lOut = []
s = ", ".join([self.lua_table(self.lTitle),
self.lua_text_table(self.lText),
self.lua_table(self.lItemName),
self.lua_table(self.lPlanTable)])
open(dest_name, "w").write("techage.add_to_manual('%s', %s)\n" % (language, s))
print("done.")
m2l = MarkdownToLua()
m2l.parse_md_file("./manual_EN.md")
m2l.gen_lua_file("./manual_EN.lua", "EN")
m2l = MarkdownToLua()
m2l.parse_md_file("./manual_DE.md")
m2l.gen_lua_file("./manual_DE.lua", "DE")

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

674
ta4_paraglider/LICENSE.txt Normal file
View File

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

28
ta4_paraglider/README.md Normal file
View File

@ -0,0 +1,28 @@
# Techage Paraglider [ta4_paraglider]
**A Paraglider for techage with TA4 recipe**
![screenshot](https://github.com/joe7575/ta4_paraglider/blob/main/screenshot.png)
This mod is based on the work from m492
(https://forum.minetest.net/viewtopic.php?t=24639)
### Instruction
Jump from a hill and use the paraglider to start the flight.
W = increases speed
S = decreases speed
D = right turn
A = left turn
### License
Copyright (C) 2020 m492, Joachim Stolberg
Code: GNU GPL version 3. See LICENSE.txt
Textures: CC BY-SA 3.0

80
ta4_paraglider/i18n.py Executable file
View File

@ -0,0 +1,80 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Script to generate the template file and update the translation files.
#
# Copyright (C) 2019 Joachim Stolberg
# LGPLv2.1+
#
# Copy the script into the mod root folder and adapt the last code lines to you needs.
from __future__ import print_function
import os, fnmatch, re, shutil
pattern_lua = re.compile(r'[ \.=^\t]S\("(.+?)"\)', re.DOTALL)
pattern_tr = re.compile(r'(.+?[^@])=(.+)')
def gen_template(templ_file, lkeyStrings):
lOut = []
lkeyStrings.sort()
for s in lkeyStrings:
lOut.append("%s=" % s)
open(templ_file, "wt").write("\n".join(lOut))
def read_lua_file_strings(lua_file):
lOut = []
text = open(lua_file).read()
for s in pattern_lua.findall(text):
s = re.sub(r'"\.\.\s+"', "", s)
s = re.sub("@[^@=n]", "@@", s)
s = s.replace("\n", "@n")
s = s.replace("\\n", "@n")
s = s.replace("=", "@=")
lOut.append(s)
return lOut
def inport_tr_file(tr_file):
dOut = {}
if os.path.exists(tr_file):
for line in open(tr_file, "r").readlines():
s = line.strip()
if s == "" or s[0] == "#":
continue
match = pattern_tr.match(s)
if match:
dOut[match.group(1)] = match.group(2)
return dOut
def generate_template(templ_file):
lOut = []
for root, dirs, files in os.walk('./'):
for name in files:
if fnmatch.fnmatch(name, "*.lua"):
fname = os.path.join(root, name)
found = read_lua_file_strings(fname)
print(fname, len(found))
lOut.extend(found)
lOut = list(set(lOut))
lOut.sort()
gen_template(templ_file, lOut)
return lOut
def update_tr_file(lNew, mod_name, tr_file):
lOut = ["# textdomain: %s\n" % mod_name]
if os.path.exists(tr_file):
shutil.copyfile(tr_file, tr_file+".old")
dOld = inport_tr_file(tr_file)
for key in lNew:
val = dOld.get(key, "")
lOut.append("%s=%s" % (key, val))
lOut.append("##### not used anymore #####")
for key in dOld:
if key not in lNew:
lOut.append("%s=%s" % (key, dOld[key]))
open(tr_file, "w").write("\n".join(lOut))
data = generate_template("./locale/template.txt")
update_tr_file(data, "ta4_paraglider", "./locale/ta4_paraglider.de.tr")
print("Done.\n")

199
ta4_paraglider/init.lua Normal file
View File

@ -0,0 +1,199 @@
--
-- Paraglider mod for repixture
-- By m492
-- Modified for Techage by joe7575
--
--
local S = minetest.get_translator("ta4_paraglider")
local function set_player_yaw(self, player, yaw)
local offs = (yaw - self.yaw) % (2 * math.pi)
if offs > math.pi then
offs = offs - (2 * math.pi)
elseif offs < -math.pi then
offs = offs + (2 * math.pi)
end
self.yaw = self.yaw + offs
player:set_look_horizontal(self.yaw)
end
minetest.register_tool(
"ta4_paraglider:paraglider", {
description = S("Paraglider"),
inventory_image = "ta4_paraglider_inventory.png",
wield_image = "ta4_paraglider_inventory.png",
stack_max = 1,
on_activate = function(self)
self.object:set_armor_groups({immortal=1})
end,
on_use = function(itemstack, player, pointed_thing)
local name = player:get_player_name()
local pos = player:get_pos()
local node_under = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
if default.player_attached[name] then
return
end
-- Player physics acces control, according to:
-- https://github.com/joe7575/techage_modepack/blob/master/player_physics_design_pattern.md
local pmeta = player:get_meta()
if pmeta:get_int("player_physics_locked") ~= 0 then
return
end
pmeta:set_int("player_physics_locked", 1)
if node_under.name == "air" then
-- Spawn paraglider
pos.y = pos.y + 3
local obj = minetest.add_entity(pos, "ta4_paraglider:entity")
obj:set_velocity(
{
x = 0,
y = math.min(0, player:get_player_velocity().y),
z = 0
})
player:set_attach(obj, "", {x = 0, y = -8, z = 0}, {x = 0, y = 0, z = 0})
obj:set_yaw(player:get_look_horizontal())
local entity = obj:get_luaentity()
entity.attached = name
entity.yaw = player:get_look_horizontal()
default.player_attached[player:get_player_name()] = true
itemstack:add_wear(65536/30)
return itemstack
else
minetest.chat_send_player(name,
minetest.colorize("#FFFF00", S("First jump from a hill and then use the paraglider")))
end
end,
})
minetest.register_entity(
"ta4_paraglider:entity",
{
visual = "mesh",
mesh = "ta4_paraglider.b3d",
textures = {"ta4_paraglider_mesh.png"},
physical = false,
pointable = false,
automatic_face_movement_dir = -90,
attached = nil,
on_step = function(self, dtime)
local pos = self.object:get_pos()
local yaw = self.object:get_yaw()
local node_under = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
if self.attached ~= nil then
local player = minetest.get_player_by_name(self.attached)
local controls = player:get_player_control()
local hspeed = 5.0
local vspeed = -1
self.idle = (self.idle or 1) - 1
if controls.up then
vspeed = -3
hspeed = 8
player:set_look_vertical(math.tan(-vspeed / hspeed))
set_player_yaw(self, player, yaw)
self.idle = 1
elseif controls.down then
vspeed = -0.25
hspeed = 2
player:set_look_vertical(math.tan(-vspeed / hspeed))
set_player_yaw(self, player, yaw)
self.idle = 1
end
if controls.right then
yaw = yaw - math.pi / 96
vspeed = -2
hspeed = 4
player:set_look_vertical(math.tan(-vspeed / hspeed))
set_player_yaw(self, player, yaw)
self.idle = 1
elseif controls.left then
yaw = yaw + math.pi / 96
vspeed = -2
hspeed = 4
player:set_look_vertical(math.tan(-vspeed / hspeed))
set_player_yaw(self, player, yaw)
self.idle = 1
end
if self.idle == 0 then
player:set_look_vertical(math.tan(-vspeed / hspeed))
set_player_yaw(self, player, yaw)
end
self.object:set_yaw(yaw)
local vel = vector.multiply(minetest.yaw_to_dir(yaw), hspeed)
vel.y = vspeed
self.object:set_velocity(vel)
if node_under.name ~= "air" then
default.player_attached[self.attached] = false
local player = minetest.get_player_by_name(self.attached)
player:get_meta():set_int("player_physics_locked", 0)
end
else
self.object:remove()
return
end
if node_under.name ~= "air" then
if self.attached ~= nil then
default.player_attached[self.attached] = false
self.object:set_detach()
local player = minetest.get_player_by_name(self.attached)
player:get_meta():set_int("player_physics_locked", 0)
end
self.object:remove()
end
end
})
local function restore_player(player)
local name = player:get_player_name()
if name and default.player_attached[name] then
default.player_attached[name] = false
player:get_meta():set_int("player_physics_locked", 0)
end
end
minetest.register_on_joinplayer(function(player)
restore_player(player)
end)
minetest.register_on_respawnplayer(function(player)
player:get_meta():set_int("player_physics_locked", 0)
end)
minetest.register_on_leaveplayer(function(player)
restore_player(player)
end)
minetest.register_on_dieplayer(function(player)
player:get_meta():set_int("player_physics_locked", 0)
end)
minetest.register_craft({
output = "ta4_paraglider:paraglider",
recipe = {
{"", "techage:canister_epoxy", ""},
{"wool:green", "techage:ta4_carbon_fiber", "wool:black"},
{"", "", ""}
},
replacements = {
{"techage:canister_epoxy", "techage:ta3_canister_empty"},
},
})

View File

@ -0,0 +1,5 @@
# textdomain: ta4_paraglider
First jump from a hill and then use the paraglider=Springe zuerst von einem Berg und nutze dann den Paraglider
Paraglider=Paraglider
##### not used anymore #####

View File

@ -0,0 +1,2 @@
First jump from a hill and then use the paraglider=
Paraglider=

3
ta4_paraglider/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = ta4_paraglider
depends = techage,default
description = Techage Paraglider Mod

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

View File

@ -0,0 +1,16 @@
import os, fnmatch
print ">>> Convert"
for filename in os.listdir("./"):
if fnmatch.fnmatch(filename, "*.png"):
print(filename)
os.system("pngquant --skip-if-larger --quality=8-32 --output ./%s.new ./%s" % (filename, filename))
print "\n>>> Copy"
for filename in os.listdir("./"):
if fnmatch.fnmatch(filename, "*.new"):
print(filename)
os.remove("./" + filename[:-4])
os.rename("./" + filename, "./" + filename[:-4])

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

View File

@ -1,5 +1,5 @@
GNU GENERAL PUBLIC LICENSE GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies Everyone is permitted to copy and distribute verbatim copies
@ -7,17 +7,15 @@
Preamble Preamble
The GNU General Public License is a free, copyleft license for The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works. software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast, to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the software for all its users.
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you price. Our General Public Licenses are designed to make sure that you
@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things. free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you Developers that use our General Public Licenses protect your rights
these rights or asking you to surrender the rights. Therefore, you have with two steps: (1) assert copyright on the software, and (2) offer
certain responsibilities if you distribute copies of the software, or if you this License which gives you legal permission to copy, distribute
you modify it: responsibilities to respect the freedom of others. and/or modify the software.
For example, if you distribute copies of such a program, whether A secondary benefit of defending all users' freedom is that
gratis or for a fee, you must pass on to the recipients the same improvements made in alternate versions of the program, if they
freedoms that you received. You must make sure that they, too, receive receive widespread use, become available for other developers to
or can get the source code. And you must show them these terms so they incorporate. Many developers of free software are heartened and
know their rights. encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
Developers that use the GNU GPL protect your rights with two steps: The GNU Affero General Public License is designed specifically to
(1) assert copyright on the software, and (2) offer you this License ensure that, in such cases, the modified source code becomes available
giving you legal permission to copy, distribute and/or modify it. to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
For the developers' and authors' protection, the GPL clearly explains An older license, called the Affero General Public License and
that there is no warranty for this free software. For both users' and published by Affero, was designed to accomplish similar goals. This is
authors' sake, the GPL requires that modified versions be marked as a different license, not a version of the Affero GPL, but Affero has
changed, so that their problems will not be attributed erroneously to released a new version of the Affero GPL which permits relicensing under
authors of previous versions. this license.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and The precise terms and conditions for copying, distribution and
modification follow. modification follow.
@ -72,7 +60,7 @@ modification follow.
0. Definitions. 0. Definitions.
"This License" refers to version 3 of the GNU General Public License. "This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks. works, such as semiconductor masks.
@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program. License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License. 13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work, License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License, but the work with which it is combined will remain governed by version
section 13, concerning interaction through a network will apply to the 3 of the GNU General Public License.
combination as such.
14. Revised Versions of this License. 14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will the GNU Affero General Public License from time to time. Such new versions
be similar in spirit to the present version, but may differ in detail to will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns. address new problems or concerns.
Each version is given a distinguishing version number. If the Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation. by the Free Software Foundation.
If the Program specifies that a proxy can decide which future If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you public statement of acceptance of a version permanently authorizes you
to choose that version for the Program. to choose that version for the Program.
@ -635,40 +633,30 @@ the "copyright" line and a pointer to where the full notice is found.
Copyright (C) <year> <name of author> Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU Affero General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail. Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short If your software can interact with users remotely through a computer
notice like this when it starts in an interactive mode: network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
<program> Copyright (C) <year> <name of author> interface could display a "Source" link that leads users to an archive
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. of the code. There are many ways you could offer source, and different
This is free software, and you are welcome to redistribute it solutions will be better for different programs; see section 13 for the
under certain conditions; type `show c' for details. specific requirements.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school, You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary. if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>. <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

View File

@ -28,7 +28,7 @@ In contrast to TechPack, the resources are more limited and it is much more diff
### License ### License
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
Code: Licensed under the GNU GPL version 3 or later. See LICENSE.txt Code: Licensed under the GNU AGPL version 3 or later. See LICENSE.txt
Textures: CC BY-SA 3.0 Textures: CC BY-SA 3.0
Many thanks to Thomas-S for his contributions Many thanks to Thomas-S for his contributions
@ -77,6 +77,31 @@ Available worlds will be converted to 'lsqlite3', but there is no way back, so:
### History ### History
**2020-10-20 V0.24**
- Pull request #27: Liquid Tanks: Add protection support (from Thomas-S)
- Pull request #28: Quarry: Improve digging behaviour (from Thomas-S)
- Pull request #29: Distributor: Keep metadata (from Thomas-S)
- Pull request #30: TA4: Add Liquid Filter (from Thomas-S)
- Pull request #31: Fix chest crash (from Thomas-S)
- Pull request #32: Fix Filter Sink Bug (from Thomas-S)
- Pull request #33: Add TA4 High Performance Distributor (from Thomas-S)
- Pull request #34: Add TA4 High Performance Distributor to Hopper (from Thomas-S)
- Pull request #35: Fixed Gravel Sieve bug (from CosmicConveyor)
- Fix doorcontroller and ta4 doser bugs
- Add check for wind turbine areas
- Fix translation errors
- QSG: Add power consumptions and fix manual bug
- Add load command to the controller battery
- TA4 silo: Add load command
- silo/tank: Add second return value for load command
- Liquid Pumps: Fix issue with undetected pipe connection gaps
- Shrink PGN files
- Fix ta4 chest bugs
- Fix ta4 chest and ta3 firebox issues
- Remove repairkit recipe
- Switched to AGPL license
- API added for ingame manual
**2020-09-13 V0.23** **2020-09-13 V0.23**
- Pull request #26: Digtron Battery: Fix duplication bug (from Thomas-S) - Pull request #26: Digtron Battery: Fix duplication bug (from Thomas-S)
- Improve ta4 sensor box - Improve ta4 sensor box

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
The autocrafter is derived from pipeworks: The autocrafter is derived from pipeworks:
@ -28,6 +28,13 @@ local STANDBY_TICKS = 3
local COUNTDOWN_TICKS = 4 local COUNTDOWN_TICKS = 4
local CYCLE_TIME = 4 local CYCLE_TIME = 4
local UncraftableItems = {}
-- Add all nodes/items which should not be crafted with the autocrafter
function techage.register_uncraftable_items(item_name)
UncraftableItems[item_name] = true
end
local function formspec(self, pos, nvm) local function formspec(self, pos, nvm)
return "size[8,9.2]".. return "size[8,9.2]"..
default.gui_bg.. default.gui_bg..
@ -71,6 +78,12 @@ local function get_craft(pos, inventory, hash)
local recipe = inventory:get_list("recipe") local recipe = inventory:get_list("recipe")
local output, decremented_input = minetest.get_craft_result( local output, decremented_input = minetest.get_craft_result(
{method = "normal", width = 3, items = recipe}) {method = "normal", width = 3, items = recipe})
-- check if registered item
if UncraftableItems[output.item:get_name()] then
output.item = ItemStack()
end
craft = {recipe = recipe, consumption = count_index(recipe), craft = {recipe = recipe, consumption = count_index(recipe),
output = output, decremented_input = decremented_input} output = output, decremented_input = decremented_input}
autocrafterCache[hash] = craft autocrafterCache[hash] = craft

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
All items and liquids disappear. All items and liquids disappear.

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3/TA4 Chest TA2/TA3/TA4 Chest
@ -304,8 +304,10 @@ techage.register_node({"techage:chest_ta4"}, {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local inv = meta:get_inventory() local inv = meta:get_inventory()
local mem = techage.get_mem(pos) local mem = techage.get_mem(pos)
mem.filter = mem.filter or mConf.item_filter(pos, 50) mem.filter = mem.filter or mConf.item_filter(pos, 50)
mem.chest_configured = mem.chest_configured or #mem.filter["unconfigured"] < 50 mem.chest_configured = mem.chest_configured or
not mem.filter["unconfigured"] or #mem.filter["unconfigured"] < 50
if inv:is_empty("main") then if inv:is_empty("main") then
return nil return nil
@ -335,8 +337,10 @@ techage.register_node({"techage:chest_ta4"}, {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local inv = meta:get_inventory() local inv = meta:get_inventory()
local mem = techage.get_mem(pos) local mem = techage.get_mem(pos)
mem.filter = mem.filter or mConf.item_filter(pos, 50) mem.filter = mem.filter or mConf.item_filter(pos, 50)
mem.chest_configured = mem.chest_configured or #mem.filter["unconfigured"] < 50 mem.chest_configured = mem.chest_configured or
not mem.filter["unconfigured"] or #mem.filter["unconfigured"] < 50
if mem.chest_configured then if mem.chest_configured then
local name = item:get_name() local name = item:get_name()
@ -350,8 +354,10 @@ techage.register_node({"techage:chest_ta4"}, {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local inv = meta:get_inventory() local inv = meta:get_inventory()
local mem = techage.get_mem(pos) local mem = techage.get_mem(pos)
mem.filter = mem.filter or mConf.item_filter(pos, 50) mem.filter = mem.filter or mConf.item_filter(pos, 50)
mem.chest_configured = mem.chest_configured or #mem.filter["unconfigured"] < 50 mem.chest_configured = mem.chest_configured or
not mem.filter["unconfigured"] or #mem.filter["unconfigured"] < 50
if mem.chest_configured then if mem.chest_configured then
local name = item:get_name() local name = item:get_name()

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Consumer node basis functionality. Consumer node basis functionality.

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3/TA4 Distributor TA2/TA3/TA4 Distributor
@ -99,17 +99,17 @@ local function get_filter_settings(pos)
return FilterCache[hash].ItemFilter, FilterCache[hash].OpenPorts return FilterCache[hash].ItemFilter, FilterCache[hash].OpenPorts
end end
local function blocking_checkbox(pos, filter) local function blocking_checkbox(pos, filter, is_hp)
local cnt = 0 local cnt = 0
local _, open_ports = get_filter_settings(pos) local _, open_ports = get_filter_settings(pos)
local fs_pos = is_hp and "0.25,5" or "3,3.9"
for _,val in ipairs(filter) do for _,val in ipairs(filter) do
if val then cnt = cnt + 1 end if val then cnt = cnt + 1 end
end end
if cnt > 1 and #open_ports > 0 then if cnt > 1 and #open_ports > 0 then
local blocking = M(pos):get_int("blocking") == 1 and "true" or "false" local blocking = M(pos):get_int("blocking") == 1 and "true" or "false"
return "checkbox[3,3.9;blocking;"..S("blocking mode")..";"..blocking.."]".. return "checkbox["..fs_pos..";blocking;"..S("blocking mode")..";"..blocking.."]"..
"tooltip[3,3.9;1,1;"..S("Block configured items for open ports")..";#0C3D32;#FFFFFF]" "tooltip["..fs_pos..";1,1;"..S("Block configured items for open ports")..";#0C3D32;#FFFFFF]"
else else
M(pos):set_int("blocking", 0) -- disable blocking M(pos):set_int("blocking", 0) -- disable blocking
end end
@ -118,32 +118,57 @@ end
local function formspec(self, pos, nvm) local function formspec(self, pos, nvm)
local filter = minetest.deserialize(M(pos):get_string("filter")) or {false,false,false,false} local filter = minetest.deserialize(M(pos):get_string("filter")) or {false,false,false,false}
local blocking = blocking_checkbox(pos, filter) local is_hp = nvm.high_performance == true
return "size[10.5,8.5]".. local blocking = blocking_checkbox(pos, filter, is_hp)
default.gui_bg..
default.gui_bg_img.. if is_hp then
default.gui_slots.. return "size[10.5,9.5]"..
"list[context;src;0,0;2,4;]".. "box[0.25,-0.1;9.6,1.1;#005500]"..
blocking.. "label[0.6,0.2;"..S("Input").."]"..
"image[2,1.5;1,1;techage_form_arrow.png]".. "list[context;src;1.75,0;8,1;]"..
"image_button[0,4.8;1,1;"..self:get_state_button_image(nvm)..";state_button;]".. blocking..
"tooltip[0,4.8;1,1;"..self:get_state_tooltip(nvm).."]".. "image_button[0.25,5.8;1,1;"..self:get_state_button_image(nvm)..";state_button;]"..
"checkbox[3,0;filter1;On;"..dump(filter[1]).."]".. "tooltip[0.25,5.8;1,1;"..self:get_state_tooltip(nvm).."]"..
"checkbox[3,1;filter2;On;"..dump(filter[2]).."]".. "checkbox[0.25,1.2;filter1;On;"..dump(filter[1]).."]"..
"checkbox[3,2;filter3;On;"..dump(filter[3]).."]".. "checkbox[0.25,2.2;filter2;On;"..dump(filter[2]).."]"..
"checkbox[3,3;filter4;On;"..dump(filter[4]).."]".. "checkbox[0.25,3.2;filter3;On;"..dump(filter[3]).."]"..
"image[4,0;0.3,1;techage_inv_red.png]".. "checkbox[0.25,4.2;filter4;On;"..dump(filter[4]).."]"..
"image[4,1;0.3,1;techage_inv_green.png]".. "image[1.25,1.2;0.3,1;techage_inv_red.png]"..
"image[4,2;0.3,1;techage_inv_blue.png]".. "image[1.25,2.2;0.3,1;techage_inv_green.png]"..
"image[4,3;0.3,1;techage_inv_yellow.png]".. "image[1.25,3.2;0.3,1;techage_inv_blue.png]"..
"list[context;red;4.5,0;6,1;]".. "image[1.25,4.2;0.3,1;techage_inv_yellow.png]"..
"list[context;green;4.5,1;6,1;]".. "list[context;red;1.75,1.2;8,1;]"..
"list[context;blue;4.5,2;6,1;]".. "list[context;green;1.75,2.2;8,1;]"..
"list[context;yellow;4.5,3;6,1;]".. "list[context;blue;1.75,3.2;8,1;]"..
"list[current_player;main;1.25,4.8;8,4;]".. "list[context;yellow;1.75,4.2;8,1;]"..
"listring[context;src]".. "list[current_player;main;1.75,5.8;8,4;]"..
"listring[current_player;main]".. "listring[context;src]"..
default.get_hotbar_bg(1.25,4.8) "listring[current_player;main]"..
default.get_hotbar_bg(1.75,5.8)
else
return "size[10.5,8.5]"..
"list[context;src;0,0;2,4;]"..
blocking..
"image[2,1.5;1,1;techage_form_arrow.png]"..
"image_button[0,4.8;1,1;"..self:get_state_button_image(nvm)..";state_button;]"..
"tooltip[0,4.8;1,1;"..self:get_state_tooltip(nvm).."]"..
"checkbox[3,0;filter1;On;"..dump(filter[1]).."]"..
"checkbox[3,1;filter2;On;"..dump(filter[2]).."]"..
"checkbox[3,2;filter3;On;"..dump(filter[3]).."]"..
"checkbox[3,3;filter4;On;"..dump(filter[4]).."]"..
"image[4,0;0.3,1;techage_inv_red.png]"..
"image[4,1;0.3,1;techage_inv_green.png]"..
"image[4,2;0.3,1;techage_inv_blue.png]"..
"image[4,3;0.3,1;techage_inv_yellow.png]"..
"list[context;red;4.5,0;6,1;]"..
"list[context;green;4.5,1;6,1;]"..
"list[context;blue;4.5,2;6,1;]"..
"list[context;yellow;4.5,3;6,1;]"..
"list[current_player;main;1.25,4.8;8,4;]"..
"listring[context;src]"..
"listring[current_player;main]"..
default.get_hotbar_bg(1.25,4.8)
end
end end
local function allow_metadata_inventory_put(pos, listname, index, stack, player) local function allow_metadata_inventory_put(pos, listname, index, stack, player)
@ -219,6 +244,7 @@ local function push_item(pos, filter, itemstack, num_items, nvm)
local idx = 1 local idx = 1
local num_pushed = 0 local num_pushed = 0
local num_ports = #filter local num_ports = #filter
num_ports = techage.in_range(num_ports, 1, 4)
local randidx = permIdx[num_ports][math.random(1, #permIdx[num_ports])] local randidx = permIdx[num_ports][math.random(1, #permIdx[num_ports])]
local amount = math.floor(math.max((num_items + 1) / num_ports, 1)) local amount = math.floor(math.max((num_items + 1) / num_ports, 1))
local num_of_trials = 0 local num_of_trials = 0
@ -356,36 +382,40 @@ local function can_dig(pos, player)
return inv:is_empty("src") return inv:is_empty("src")
end end
local tiles = {} local get_tiles = function(is_hp)
-- '#' will be replaced by the stage number local variant = is_hp and "_hp" or ""
-- '{power}' will be replaced by the power PNG local tiles = {}
tiles.pas = { -- '#' will be replaced by the stage number
-- up, down, right, left, back, front -- '{power}' will be replaced by the power PNG
"techage_filling_ta#.png^techage_appl_distri.png^techage_frame_ta#_top.png^techage_appl_color_top.png", tiles.pas = {
"techage_filling_ta#.png^techage_frame_ta#.png", -- up, down, right, left, back, front
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_yellow.png", "techage_filling_ta#.png^techage_appl_distri.png^techage_frame_ta#_top"..variant..".png^techage_appl_color_top.png",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_green.png", "techage_filling_ta#.png^techage_frame_ta#_top"..variant..".png^(techage_appl_color_top.png^[transformFY)",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_red.png", "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_yellow.png",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_blue.png", "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_green.png",
} "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_red.png",
tiles.act = { "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_blue.png",
-- up, down, right, left, back, front }
{ tiles.act = {
image = "techage_filling4_ta#.png^techage_appl_distri4.png^techage_frame4_ta#_top.png^techage_appl_color_top4.png", -- up, down, right, left, back, front
backface_culling = false, {
animation = { image = "techage_filling4_ta#.png^techage_appl_distri4.png^techage_frame4_ta#_top"..variant..".png^techage_appl_color_top4.png",
type = "vertical_frames", backface_culling = false,
aspect_w = 32, animation = {
aspect_h = 32, type = "vertical_frames",
length = 1.0, aspect_w = 32,
aspect_h = 32,
length = 1.0,
},
}, },
}, "techage_filling_ta#.png^techage_frame_ta#_top"..variant..".png^(techage_appl_color_top.png^[transformFY)",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_color_top.png", "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_yellow.png",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_yellow.png", "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_green.png",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_green.png", "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_red.png",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_red.png", "techage_filling_ta#.png^techage_frame_ta#"..variant..".png^techage_appl_distri_blue.png",
"techage_filling_ta#.png^techage_frame_ta#.png^techage_appl_distri_blue.png", }
} return tiles
end
local tubing = { local tubing = {
on_pull_item = function(pos, in_dir, num) on_pull_item = function(pos, in_dir, num)
@ -418,57 +448,87 @@ local tubing = {
end, end,
} }
local node_name_ta2, node_name_ta3, node_name_ta4 = local def = {
techage.register_consumer("distributor", S("Distributor"), tiles, { cycle_time = CYCLE_TIME,
cycle_time = CYCLE_TIME, standby_ticks = STANDBY_TICKS,
standby_ticks = STANDBY_TICKS, formspec = formspec,
formspec = formspec, tubing = tubing,
tubing = tubing, after_place_node = function(pos, placer)
after_place_node = function(pos, placer) local meta = M(pos)
local meta = M(pos) local filter = {false,false,false,false}
local filter = {false,false,false,false} meta:set_string("filter", minetest.serialize(filter))
meta:set_string("filter", minetest.serialize(filter)) local inv = meta:get_inventory()
local inv = meta:get_inventory() inv:set_size('src', 8)
inv:set_size('src', 8) inv:set_size('yellow', 6)
inv:set_size('yellow', 6) inv:set_size('green', 6)
inv:set_size('green', 6) inv:set_size('red', 6)
inv:set_size('red', 6) inv:set_size('blue', 6)
inv:set_size('blue', 6) end,
end, can_dig = can_dig,
can_dig = can_dig, node_timer = keep_running,
node_timer = keep_running, on_receive_fields = on_receive_fields,
on_receive_fields = on_receive_fields, allow_metadata_inventory_put = allow_metadata_inventory_put,
allow_metadata_inventory_put = allow_metadata_inventory_put, allow_metadata_inventory_move = allow_metadata_inventory_move,
allow_metadata_inventory_move = allow_metadata_inventory_move, allow_metadata_inventory_take = allow_metadata_inventory_take,
allow_metadata_inventory_take = allow_metadata_inventory_take, tubelib2_on_update2 = tubelib2_on_update2,
tubelib2_on_update2 = tubelib2_on_update2,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list) on_metadata_inventory_move = function(pos, from_list, from_index, to_list)
if from_list ~= "src" or to_list ~= "src" then if from_list ~= "src" or to_list ~= "src" then
filter_settings(pos) filter_settings(pos)
local nvm = techage.get_nvm(pos) local nvm = techage.get_nvm(pos)
M(pos):set_string("formspec", formspec(CRD(pos).State, pos, nvm)) M(pos):set_string("formspec", formspec(CRD(pos).State, pos, nvm))
end end
end, end,
on_metadata_inventory_put = function(pos, listname) on_metadata_inventory_put = function(pos, listname)
if listname ~= "src" then if listname ~= "src" then
filter_settings(pos) filter_settings(pos)
local nvm = techage.get_nvm(pos) local nvm = techage.get_nvm(pos)
M(pos):set_string("formspec", formspec(CRD(pos).State, pos, nvm)) M(pos):set_string("formspec", formspec(CRD(pos).State, pos, nvm))
end end
end, end,
on_metadata_inventory_take = function(pos, listname) on_metadata_inventory_take = function(pos, listname)
if listname ~= "src" then if listname ~= "src" then
filter_settings(pos) filter_settings(pos)
local nvm = techage.get_nvm(pos) local nvm = techage.get_nvm(pos)
M(pos):set_string("formspec", formspec(CRD(pos).State, pos, nvm)) M(pos):set_string("formspec", formspec(CRD(pos).State, pos, nvm))
end end
end, end,
groups = {choppy=2, cracky=2, crumbly=2}, groups = {choppy=2, cracky=2, crumbly=2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
num_items = {0,4,12,24}, num_items = {0,4,12,24},
}) }
local node_name_ta2, node_name_ta3, node_name_ta4 = techage.register_consumer(
"distributor",
S("Distributor"),
get_tiles(false),
def
)
local hp_def = table.copy(def)
hp_def.after_place_node = function(pos, placer)
local meta = M(pos)
local nvm = techage.get_nvm(pos)
nvm.high_performance = true
local filter = {false,false,false,false}
meta:set_string("filter", minetest.serialize(filter))
local inv = meta:get_inventory()
inv:set_size('src', 8)
inv:set_size('yellow', 8)
inv:set_size('green', 8)
inv:set_size('red', 8)
inv:set_size('blue', 8)
end
hp_def.num_items = {0,0,0,36}
local _, _, node_name_ta4_hp = techage.register_consumer(
"high_performance_distributor", S("High Performance Distributor"),
get_tiles(true),
hp_def,
{false, false, false, true}
)
minetest.register_craft({ minetest.register_craft({
output = node_name_ta2.." 2", output = node_name_ta2.." 2",
@ -496,3 +556,12 @@ minetest.register_craft({
{"", "techage:ta4_wlanchip", ""}, {"", "techage:ta4_wlanchip", ""},
}, },
}) })
minetest.register_craft({
output = node_name_ta4_hp,
recipe = {
{node_name_ta4, "default:copper_ingot"},
{"default:mese_crystal_fragment", node_name_ta4},
},
})

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3/TA4 Electronic Fab TA2/TA3/TA4 Electronic Fab

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Forceload block Forceload block

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2 Gravel Rinser, washing sieved gravel to find more ores TA2 Gravel Rinser, washing sieved gravel to find more ores

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3/TA4 Gravel Sieve, sieving gravel to find ores TA2/TA3/TA4 Gravel Sieve, sieving gravel to find ores
@ -75,20 +75,22 @@ end
local function sieving(pos, crd, nvm, inv) local function sieving(pos, crd, nvm, inv)
local src, dst local src, dst
if inv:contains_item("src", ItemStack("techage:basalt_gravel")) then for i = 1, crd.num_items do
dst, src = get_random_basalt_ore(), ItemStack("techage:basalt_gravel") if inv:contains_item("src", ItemStack("techage:basalt_gravel")) then
elseif inv:contains_item("src", ItemStack("default:gravel")) then dst, src = get_random_basalt_ore(), ItemStack("techage:basalt_gravel")
dst, src = get_random_gravel_ore(), ItemStack("default:gravel") elseif inv:contains_item("src", ItemStack("default:gravel")) then
else dst, src = get_random_gravel_ore(), ItemStack("default:gravel")
crd.State:idle(pos, nvm) else
return crd.State:idle(pos, nvm)
return
end
if not inv:room_for_item("dst", dst) then
crd.State:idle(pos, nvm)
return
end
inv:add_item("dst", dst)
inv:remove_item("src", src)
end end
if not inv:room_for_item("dst", dst) then
crd.State:idle(pos, nvm)
return
end
inv:add_item("dst", dst)
inv:remove_item("src", src)
crd.State:keep_running(pos, nvm, COUNTDOWN_TICKS) crd.State:keep_running(pos, nvm, COUNTDOWN_TICKS)
end end

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3/TA4 Grinder, grinding Cobble/Basalt to Gravel TA2/TA3/TA4 Grinder, grinding Cobble/Basalt to Gravel

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Tube support for default chests and furnace Tube support for default chests and furnace

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3 Bucket based Liquid Sampler TA2/TA3 Bucket based Liquid Sampler

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Tube support for digtron and protector chests Tube support for digtron and protector chests

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3/TA4 Pusher TA2/TA3/TA4 Pusher

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Quarry machine to dig stones and other ground blocks. Quarry machine to dig stones and other ground blocks.

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA2/TA3/TA4 Power Test Source TA2/TA3/TA4 Power Test Source

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA4 8x2000 Chest TA4 8x2000 Chest

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA4 Injector TA4 Injector

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Assemble routines Assemble routines

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Boiler common functions Boiler common functions

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Basis functions for inter-node communication Basis functions for inter-node communication

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Configured inventory lib Configured inventory lib
@ -25,7 +25,7 @@ function inv_lib.preassigned_stacks(pos, xsize, ysize)
local item_name = inv:get_stack("conf", idx):get_name() local item_name = inv:get_stack("conf", idx):get_name()
if item_name ~= "" then if item_name ~= "" then
local x = (idx - 1) % xsize local x = (idx - 1) % xsize
local y = math.floor(idx / xsize) local y = math.floor((idx - 1) / xsize)
tbl[#tbl+1] = "item_image["..x..","..y..";1,1;"..item_name.."]" tbl[#tbl+1] = "item_image["..x..","..y..";1,1;"..item_name.."]"
end end
end end
@ -76,7 +76,7 @@ function inv_lib.allow_conf_inv_move(pos, from_list, from_index, to_list, to_ind
end end
function inv_lib.put_items(pos, inv, listname, item, stacks, idx) function inv_lib.put_items(pos, inv, listname, item, stacks, idx)
for _, i in ipairs(stacks) do for _, i in ipairs(stacks or {}) do
if not idx or idx == i then if not idx or idx == i then
local stack = inv:get_stack(listname, i) local stack = inv:get_stack(listname, i)
if stack:item_fits(item) then if stack:item_fits(item) then

View File

@ -6,7 +6,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
Copyright (C) 2020 Thomas S. Copyright (C) 2020 Thomas S.
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Fake Player Fake Player

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Firebox basic functions Firebox basic functions

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Keep only one formspec active per player Keep only one formspec active per player

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Oil fuel burning lib Oil fuel burning lib
@ -16,7 +16,6 @@ local S2P = minetest.string_to_pos
local P2S = minetest.pos_to_string local P2S = minetest.pos_to_string
local M = minetest.get_meta local M = minetest.get_meta
local S = techage.S local S = techage.S
local LQD = function(pos) return (minetest.registered_nodes[techage.get_node_lvm(pos).name] or {}).liquid end
local Pipe = techage.LiquidPipe local Pipe = techage.LiquidPipe
local liquid = techage.liquid local liquid = techage.liquid
local ValidOilFuels = techage.firebox.ValidOilFuels local ValidOilFuels = techage.firebox.ValidOilFuels
@ -120,11 +119,14 @@ function techage.fuel.on_punch(pos, node, puncher, pointed_thing)
local ldef = liquid.get_liquid_def(wielded_item) local ldef = liquid.get_liquid_def(wielded_item)
if ldef and ValidOilFuels[ldef.inv_item] then if ldef and ValidOilFuels[ldef.inv_item] then
local new_item = liquid.empty_on_punch(pos, nvm, wielded_item, item_count) local lqd = (minetest.registered_nodes[node.name] or {}).liquid
if new_item then if not lqd.fuel_cat or ValidOilFuels[ldef.inv_item] <= lqd.fuel_cat then
puncher:set_wielded_item(new_item) local new_item = liquid.empty_on_punch(pos, nvm, wielded_item, item_count)
M(pos):set_string("formspec", techage.fuel.formspec(pos, nvm)) if new_item then
mem.blocking_time = techage.SystemTime + BLOCKING_TIME puncher:set_wielded_item(new_item)
M(pos):set_string("formspec", techage.fuel.formspec(pos, nvm))
mem.blocking_time = techage.SystemTime + BLOCKING_TIME
end
end end
end end
end end

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Gravel Sieve basis functions Gravel Sieve basis functions

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Helper functions Helper functions
@ -126,6 +126,14 @@ function techage.is_primary_node(pos, dir)
return param2 ~= 0 return param2 ~= 0
end end
function techage.is_air_like(name)
local ndef = minetest.registered_nodes[name]
if ndef and ndef.buildable_to then
return true
end
return false
end
-- returns true, if node can be dug, otherwise false -- returns true, if node can be dug, otherwise false
function techage.can_node_dig(node, ndef) function techage.can_node_dig(node, ndef)
if RegisteredNodesToBeDug[node.name] then if RegisteredNodesToBeDug[node.name] then

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Liquid lib Liquid lib
@ -55,7 +55,9 @@ techage.liquid.recv_message = {
on_recv_message = function(pos, src, topic, payload) on_recv_message = function(pos, src, topic, payload)
if topic == "load" then if topic == "load" then
local nvm = techage.get_nvm(pos) local nvm = techage.get_nvm(pos)
return techage.power.percent(LQD(pos).capa, (nvm.liquid and nvm.liquid.amount) or 0) nvm.liquid = nvm.liquid or {}
nvm.liquid.amount = nvm.liquid.amount or 0
return techage.power.percent(LQD(pos).capa, nvm.liquid.amount), nvm.liquid.amount
elseif topic == "size" then elseif topic == "size" then
return LQD(pos).capa return LQD(pos).capa
else else

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
mark.lua: mark.lua:

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
mark.lua: mark.lua:

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Networks - the connection of tubelib2 tube/pipe/cable lines to networks Networks - the connection of tubelib2 tube/pipe/cable lines to networks

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
A state model/class for TechAge nodes. A state model/class for TechAge nodes.

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Data storage system for node related volatile and non-volatile data. Data storage system for node related volatile and non-volatile data.

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Storage backend for node related data as node metadata Storage backend for node related data as node metadata

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Storage backend for node related data via sqlite database Storage backend for node related data via sqlite database

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Storage backend for node number mapping via sqlite database Storage backend for node number mapping via sqlite database

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Storage backend for node number mapping via mod storage Storage backend for node number mapping via mod storage

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Recipe lib for formspecs Recipe lib for formspecs

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Tube wall entry Tube wall entry

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Tubes based on tubelib2 Tubes based on tubelib2

View File

@ -5,7 +5,7 @@
Copyright (C) 2020 Joachim Stolberg Copyright (C) 2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Tubes in TA4 design based on tubelib2 Tubes in TA4 design based on tubelib2

View File

@ -0,0 +1,84 @@
--[[
TechAge
=======
Copyright (C) 2019-2020 Joachim Stolberg
AGPL v3
See LICENSE.txt for more information
Wind turbine helper function
]]--
local S = techage.S
local P = minetest.string_to_pos
local M = minetest.get_meta
local function chat_message(player_name, msg)
if player_name then
minetest.chat_send_player(player_name, S("[TA4 Wind Turbine]").." "..msg)
end
end
-- num_turbines is the mx number of valid wind turbines. In the case of a tool
-- it should be 0, in case of the rotor: 1
function techage.valid_place_for_windturbine(pos, player_name, num_turbines)
local pos1, pos2, num
-- Check if occean (only for tool)
if num_turbines == 0 and pos.y ~= 1 then
chat_message(player_name, S("This is not the surface of the ocean!"))
return false
end
local node = minetest.get_node(pos)
if num_turbines == 0 and node.name ~= "default:water_source" then
chat_message(player_name, S("This is no ocean water!"))
return false
end
local data = minetest.get_biome_data({x=pos.x, y=-2, z=pos.z})
if data then
local name = minetest.get_biome_name(data.biome)
if not string.find(name, "ocean") then
chat_message(player_name, S("This is a "..name.." biome and no ocean!"))
return false
end
end
-- check the space over ocean
pos1 = {x=pos.x-20, y=2, z=pos.z-20}
pos2 = {x=pos.x+20, y=22, z=pos.z+20}
num = #minetest.find_nodes_in_area(pos1, pos2, {"air", "ignore"})
if num < (41 * 41 * 21 * 0.9) then
techage.mark_region(player_name, pos1, pos2, "")
chat_message(player_name,
S("Here is not enough wind (A free air space of 41x41x21 m is necessary)!"))
return false
end
-- Check for water surface (occean)
pos1 = {x=pos.x-20, y=1, z=pos.z-20}
pos2 = {x=pos.x+20, y=1, z=pos.z+20}
num = #minetest.find_nodes_in_area(pos1, pos2,
{"default:water_source", "default:water_flowing", "ignore"})
print(num, (41 * 41 * 0.9))
if num < (41*41 * 0.8) then
techage.mark_region(player_name, pos1, pos2, "")
chat_message(player_name, S("Here is not enough water (41x41 m)!"))
return false
end
-- Check for next wind turbine
pos1 = {x=pos.x-13, y=2, z=pos.z-13}
pos2 = {x=pos.x+13, y=22, z=pos.z+13}
num = #minetest.find_nodes_in_area(pos1, pos2, {"techage:ta4_wind_turbine"})
if num > num_turbines then
techage.mark_region(player_name, pos1, pos2, "")
chat_message(player_name, S("The next wind turbines is too close!"))
return false
end
if num_turbines == 0 then
chat_message(player_name, minetest.pos_to_string(pos).." "..
S("is a suitable place for a wind turbine!"))
end
return true
end

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Chest Cart TA3 Chest Cart

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Tank Cart TA3 Tank Cart

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA4 Doser TA4 Doser
@ -153,6 +153,15 @@ local State = techage.NodeStates:new({
stop_node = stop_node, stop_node = stop_node,
}) })
local function untake(recipe, pos, liquids)
for _,item in pairs(recipe.input) do
if item.name ~= "" then
local outdir = liquids[item.name] or reload_liquids(pos)[item.name]
liquid.untake(pos, outdir, item.name, item.num)
end
end
end
local function dosing(pos, nvm, elapsed) local function dosing(pos, nvm, elapsed)
-- trigger reactor (power) -- trigger reactor (power)
if not reactor_cmnd(pos, "power") then if not reactor_cmnd(pos, "power") then
@ -215,6 +224,7 @@ local function dosing(pos, nvm, elapsed)
name = recipe.output.name, name = recipe.output.name,
amount = recipe.output.num}) amount = recipe.output.num})
if not leftover or (tonumber(leftover) or 1) > 0 then if not leftover or (tonumber(leftover) or 1) > 0 then
untake(recipe, pos, liquids)
State:blocked(pos, nvm) State:blocked(pos, nvm)
reactor_cmnd(pos, "stop") reactor_cmnd(pos, "stop")
return return
@ -224,6 +234,7 @@ local function dosing(pos, nvm, elapsed)
name = recipe.waste.name, name = recipe.waste.name,
amount = recipe.waste.num}) amount = recipe.waste.num})
if not leftover or (tonumber(leftover) or 1) > 0 then if not leftover or (tonumber(leftover) or 1) > 0 then
untake(recipe, pos, liquids)
State:blocked(pos, nvm) State:blocked(pos, nvm)
reactor_cmnd(pos, "stop") reactor_cmnd(pos, "stop")
return return
@ -292,6 +303,7 @@ minetest.register_node("techage:ta4_doser", {
after_dig_node = function(pos, oldnode, oldmetadata, digger) after_dig_node = function(pos, oldnode, oldmetadata, digger)
techage.remove_node(pos, oldnode, oldmetadata) techage.remove_node(pos, oldnode, oldmetadata)
Pipe:after_dig_node(pos) Pipe:after_dig_node(pos)
liquid.after_dig_pump(pos)
techage.del_mem(pos) techage.del_mem(pos)
end, end,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

View File

@ -0,0 +1,224 @@
--[[
TechAge
=======
Copyright (C) 2019-2020 Joachim Stolberg
Copyright (C) 2020 Thomas S.
AGPL v3
See LICENSE.txt for more information
TA4 Liquid Filter
]]--
-- For now, the Red Mud -> Lye/Desert Cobble recipe is hardcoded.
-- If necessary, this can be adjusted later.
local M = minetest.get_meta
local networks = techage.networks
local S = techage.S
local Pipe = techage.LiquidPipe
local liquid = techage.liquid
-- Checks if the filter structure is ok and returns the amount of gravel
local function checkStructure(pos)
local pos1_outer = {x=pos.x-2,y=pos.y-7,z=pos.z-2}
local pos2_outer = {x=pos.x+2,y=pos.y,z=pos.z+2}
local pos1_inner = {x=pos.x-1,y=pos.y-1,z=pos.z-1}
local pos2_inner = {x=pos.x+1,y=pos.y-7,z=pos.z+1}
local pos1_top = {x=pos.x-1,y=pos.y,z=pos.z-1}
local pos2_top = {x=pos.x+1,y=pos.y,z=pos.z+1}
local pos1_bottom = {x=pos.x-2,y=pos.y-8,z=pos.z-2}
local pos2_bottom = {x=pos.x+2,y=pos.y-8,z=pos.z+2}
local gravel = minetest.find_nodes_in_area(pos1_inner, pos2_inner, {"default:gravel"})
local _, inner = minetest.find_nodes_in_area(pos1_inner, pos2_inner, {
"default:desert_cobble"
})
if #gravel + (inner["default:desert_cobble"] or 0) ~= 63 then -- 7x3x3=63
return false, gravel
end
local _, outer = minetest.find_nodes_in_area(pos1_outer, pos2_outer, {
"basic_materials:concrete_block",
"default:obsidian_glass"
})
-- + 4x7=28 (corners)
-- + 5x5-3x3=16 (top ring)
-- ------------------------------
-- = 44 (total concrete)
if outer["basic_materials:concrete_block"] ~= 44 then
return false, gravel
end
if outer["default:obsidian_glass"] ~= 84 then -- 4x7x3=84
return false, gravel
end
local _,top = minetest.find_nodes_in_area(pos1_top, pos2_top, {"air"})
if top["air"] ~= 8 then
return false, gravel
end
local _,bottom = minetest.find_nodes_in_area(pos1_bottom, pos2_bottom, {
"basic_materials:concrete_block",
"techage:ta3_pipe_wall_entry"
})
if bottom["basic_materials:concrete_block"] ~= 22 or bottom["techage:ta3_pipe_wall_entry"] ~= 2 then
return false, gravel
end
if minetest.get_node({x=pos.x,y=pos.y-8,z=pos.z}).name ~= "techage:ta4_liquid_filter_sink" then
return false, gravel
end
return true, gravel
end
minetest.register_node("techage:ta4_liquid_filter_filler", {
description = S("TA4 Liquid Filter Filler"),
tiles = {
-- up, down, right, left, back, front
"basic_materials_concrete_block.png^techage_gaspipe_hole.png",
"basic_materials_concrete_block.png^techage_liquid_filter_filler_bottom.png",
"basic_materials_concrete_block.png^techage_liquid_filter_filler.png",
},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-6/8, -0.5, -6/8, 6/8, -0.25, 6/8},
{-7/16, -0.25, -7/16, 7/16, 0, 7/16},
{-1/8, 0, -1/8, 1/8, 13/32, 1/8},
{-2/8, 13/32, -2/8, 2/8, 0.5, 2/8},
},
},
after_place_node = function(pos)
Pipe:after_place_node(pos)
end,
tubelib2_on_update2 = function(pos, dir, tlib2, node)
liquid.update_network(pos)
end,
after_dig_node = function(pos, oldnode, oldmetadata, digger)
Pipe:after_dig_node(pos)
liquid.after_dig_pump(pos)
techage.del_mem(pos)
end,
paramtype = "light",
paramtype2 = "facedir",
on_rotate = screwdriver.disallow,
groups = {cracky=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
liquid = {
capa = 1,
peek = function(...) return nil end,
put = function(pos, indir, name, amount)
local structure_ok, gravel = checkStructure(pos)
if name ~= "techage:redmud" then
return amount
end
if not structure_ok then
return amount
end
if #gravel < 33 then
return amount
end
if math.random() < 0.5 then
local out_pos = {x=pos.x,y=pos.y-8,z=pos.z}
local leftover = liquid.put(out_pos, networks.side_to_outdir(out_pos, "R"), "techage:lye", 1)
if leftover > 0 then
return amount
end
else
minetest.swap_node(gravel[math.random(#gravel)], {name = "default:desert_cobble"})
end
return amount - 1
end,
take = function(...) return 0 end,
untake = function(pos, outdir, name, amount, player_name)
return amount
end,
},
networks = {
pipe2 = {
sides = {U = 1}, -- Pipe connection sides
ntype = "tank",
},
},
})
minetest.register_node("techage:ta4_liquid_filter_sink", {
description = S("TA4 Liquid Filter Sink"),
tiles = {
-- up, down, right, left, back, front
"basic_materials_concrete_block.png^techage_appl_arrow.png",
"basic_materials_concrete_block.png",
"basic_materials_concrete_block.png^techage_appl_hole_pipe.png",
"basic_materials_concrete_block.png",
"basic_materials_concrete_block.png",
"basic_materials_concrete_block.png",
},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 3/16, 0.5},
{-0.5, 3/16, -0.5, 0.5, 5/16, -0.25},
{0.25, 3/16, -0.5, 0.5, 5/16, 0.5},
{-0.5, 3/16, 0.25, 0.5, 5/16, 0.5},
{-0.5, 3/16, -0.5, -0.25, 5/16, 0.5}
},
},
after_place_node = function(pos)
Pipe:after_place_node(pos)
end,
tubelib2_on_update2 = function(pos, dir, tlib2, node)
liquid.update_network(pos)
end,
after_dig_node = function(pos, oldnode, oldmetadata, digger)
Pipe:after_dig_node(pos)
end,
paramtype = "light",
paramtype2 = "facedir",
on_rotate = screwdriver.disallow,
groups = {cracky=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
networks = {
pipe2 = {
sides = {R = 1}, -- Pipe connection sides
ntype = "pump",
},
},
})
Pipe:add_secondary_node_names({"techage:ta4_liquid_filter_filler", "techage:ta4_liquid_filter_sink"})
minetest.register_craft({
output = 'techage:ta4_liquid_filter_filler',
recipe = {
{'', 'techage:ta3_pipeS', ''},
{'basic_materials:concrete_block', 'basic_materials:concrete_block', 'basic_materials:concrete_block'},
{'', 'default:steel_ingot', ''},
}
})
minetest.register_craft({
output = 'techage:ta4_liquid_filter_sink 2',
recipe = {
{'basic_materials:concrete_block', '', 'basic_materials:concrete_block'},
{'basic_materials:concrete_block', 'techage:ta3_pipeS', 'techage:ta3_pipeS'},
{'basic_materials:concrete_block', 'basic_materials:concrete_block', 'basic_materials:concrete_block'},
}
})

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA4 Reactor TA4 Reactor

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA4 Reactor Stand and Base TA4 Reactor Stand and Base
@ -117,6 +117,7 @@ minetest.register_node("techage:ta4_reactor_stand", {
after_dig_node = function(pos, oldnode) after_dig_node = function(pos, oldnode)
Pipe:after_dig_node(pos) Pipe:after_dig_node(pos)
Cable:after_dig_node(pos) Cable:after_dig_node(pos)
liquid.after_dig_pump(pos)
techage.del_mem(pos) techage.del_mem(pos)
end, end,

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Coal Power Station Boiler Base TA3 Coal Power Station Boiler Base

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Coal Power Station Boiler Top TA3 Coal Power Station Boiler Top

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Cooler TA3 Cooler

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Coal Power Station Firebox TA3 Coal Power Station Firebox

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Power Station Generator TA3 Power Station Generator

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Coal Power Station Firebox TA3 Coal Power Station Firebox

View File

@ -5,7 +5,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA3 Power Station Turbine TA3 Power Station Turbine

View File

@ -6,7 +6,7 @@
Copyright (C) 2019-2020 Joachim Stolberg Copyright (C) 2019-2020 Joachim Stolberg
Copyright (C) 2020 Thomas S. Copyright (C) 2020 Thomas S.
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
Electricity powered battery for Digtron Electricity powered battery for Digtron

View File

@ -27,7 +27,7 @@ end
-- formspec images -- formspec images
local function plan(images) local function plan(images)
local tbl = {} local tbl = {}
if images == "none" then return "label[1,3;"..S("No plan available") end if images == "none" then return "label[1,3;"..S("No plan available") .."]" end
for y=1,#images do for y=1,#images do
for x=1,#images[1] do for x=1,#images[1] do
local item = images[y][x] or false local item = images[y][x] or false
@ -70,7 +70,7 @@ local function formspec_help(meta, manual)
bttn = "image[9.3,1;2,2;"..item.."]" bttn = "image[9.3,1;2,2;"..item.."]"
end end
else else
bttn = "" bttn = box
end end
return "size[11,10]".. return "size[11,10]"..
default.gui_bg.. default.gui_bg..

View File

@ -5,7 +5,7 @@
Copyright (C) 2019 Joachim Stolberg Copyright (C) 2019 Joachim Stolberg
GPL v3 AGPL v3
See LICENSE.txt for more information See LICENSE.txt for more information
TA Items Table TA Items Table
@ -161,6 +161,7 @@ techage.Items = {
ta4_collector = "techage:ta4_collector", ta4_collector = "techage:ta4_collector",
ta4_pusher = "techage:ta4_pusher_pas", ta4_pusher = "techage:ta4_pusher_pas",
ta4_distributor = "techage:ta4_distributor_pas", ta4_distributor = "techage:ta4_distributor_pas",
ta4_high_performance_distributor = "techage:ta4_high_performance_distributor_pas",
ta4_gravelsieve = "techage:ta4_gravelsieve_pas", ta4_gravelsieve = "techage:ta4_gravelsieve_pas",
ta4_grinder = "techage:ta4_grinder_pas", ta4_grinder = "techage:ta4_grinder_pas",
ta4_detector = "techage:ta4_detector_off", ta4_detector = "techage:ta4_detector_off",
@ -172,5 +173,12 @@ techage.Items = {
ta4_quarry = "techage:ta4_quarry_pas", ta4_quarry = "techage:ta4_quarry_pas",
ta4_electronicfab = "techage:ta4_electronic_fab_pas", ta4_electronicfab = "techage:ta4_electronic_fab_pas",
ta4_injector = "techage:ta4_injector_pas", ta4_injector = "techage:ta4_injector_pas",
ta4_liquid_filter = "techage_ta4_filter.png",
--ta4_ "", --ta4_ "",
} }
function techage.add_manual_items(table_with_items)
for name, tbl in pairs(table_with_items) do
techage.Items[name] = tbl
end
end

View File

@ -170,6 +170,10 @@ techage.manual_DE.aTitel = {
"3,TA4 LED Pflanzenlampe / TA4 LED Grow Light", "3,TA4 LED Pflanzenlampe / TA4 LED Grow Light",
"3,TA4 LED Straßenlampe / TA4 LED Street Lamp", "3,TA4 LED Straßenlampe / TA4 LED Street Lamp",
"3,TA4 LED Industrielampe / TA4 LED Industrial Lamp", "3,TA4 LED Industrielampe / TA4 LED Industrial Lamp",
"2,TA4 Flüssigkeitsfilter",
"3,Fundament-Ebene",
"3,Schotter-Ebene",
"3,Einfüll-Ebene",
"2,Weitere TA4 Blöcke", "2,Weitere TA4 Blöcke",
"3,TA4 Tank / TA4 Tank", "3,TA4 Tank / TA4 Tank",
"3,TA4 Pumpe / TA4 Pump", "3,TA4 Pumpe / TA4 Pump",
@ -180,6 +184,7 @@ techage.manual_DE.aTitel = {
"3,TA4 Kiste / TA4 Chest", "3,TA4 Kiste / TA4 Chest",
"3,TA4 8x2000 Kiste / TA4 8x2000 Chest", "3,TA4 8x2000 Kiste / TA4 8x2000 Chest",
"3,TA4 Verteiler / Distributor", "3,TA4 Verteiler / Distributor",
"3,TA4 Hochleistungs-Verteiler / High Performance Distributor",
"3,TA4 Kiessieb / Gravel Sieve", "3,TA4 Kiessieb / Gravel Sieve",
"3,TA4 Mühle / Grinder", "3,TA4 Mühle / Grinder",
"3,TA4 Steinbrecher / Quarry", "3,TA4 Steinbrecher / Quarry",
@ -747,7 +752,7 @@ techage.manual_DE.aText = {
"Wird auf den Button der Ölbohrkiste geklickt\\, wird über der Kiste ein Bohrturm errichtet. Dies dauert einige Sekunden.\n".. "Wird auf den Button der Ölbohrkiste geklickt\\, wird über der Kiste ein Bohrturm errichtet. Dies dauert einige Sekunden.\n"..
"Die Ölbohrkiste hat 4 Seiten\\, bei IN muss das Bohrgestänge über Schieber angeliefert und bei OUT muss das Bohrmaterial abtransportiert werden. Über eine der anderen zwei Seiten muss die Ölbohrkiste mit Strom versorgt werden.\n".. "Die Ölbohrkiste hat 4 Seiten\\, bei IN muss das Bohrgestänge über Schieber angeliefert und bei OUT muss das Bohrmaterial abtransportiert werden. Über eine der anderen zwei Seiten muss die Ölbohrkiste mit Strom versorgt werden.\n"..
"\n".. "\n"..
"Die Ölbohrkiste bohrt bis zum Ölfeld (1 Meter in 16 s) und benötigt dazu 10 ku Strom.\n".. "Die Ölbohrkiste bohrt bis zum Ölfeld (1 Meter in 16 s) und benötigt dazu 16 ku Strom.\n"..
"Wurde das Ölfeld erreicht\\, kann der Bohrturm abgebaut und die Kiste entfernt werden.\n".. "Wurde das Ölfeld erreicht\\, kann der Bohrturm abgebaut und die Kiste entfernt werden.\n"..
"\n".. "\n"..
"\n".. "\n"..
@ -1402,6 +1407,31 @@ techage.manual_DE.aText = {
"\n".. "\n"..
"\n".. "\n"..
"\n", "\n",
"Im Flüssigkeitsfilter wird Rotschlamm gefiltert.\n"..
"Dabei entsteht entweder Lauge\\, welche unten in einem Tank gesammelt werden kann oder Wüstenkopfsteinpflaster\\, welches sich im Filter absetzt.\n"..
"Wenn der Filter zu sehr verstopft ist\\, muss er geleert und neu befüllt werden.\n"..
"Der Filter besteht aus einer Fundament-Ebene\\, auf der 7 identische Filterschichten platziert werden. \n"..
"Ganz oben befindet sich die Einfüllebene.\n"..
"\n"..
"\n"..
"\n",
"Der Aufbau dieser Ebene kann dem Plan entnommen werden.\n"..
"\n"..
"Im Tank wird die Lauge gesammelt.\n"..
"\n"..
"\n"..
"\n",
"Diese Ebene muss so wie im Plan gezeigt mit Schotter befüllt werden.\n"..
"Insgesamt müssen sieben Lagen Schotter übereinander liegen.\n"..
"Dabei wird mit der Zeit der Filter verunreinigt\\, sodass das Füllmaterial erneuert werden muss.\n"..
"\n"..
"\n"..
"\n",
"Diese Ebene dient zum Befüllen des Filters mit Rotschlamm.\n"..
"In den Einfüllstutzen muss Rotschlamm mittels einer Pumpe geleitet werden.\n"..
"\n"..
"\n"..
"\n",
"", "",
"Siehe TA3 Tank.\n".. "Siehe TA3 Tank.\n"..
"\n".. "\n"..
@ -1476,6 +1506,12 @@ techage.manual_DE.aText = {
"\n".. "\n"..
"\n".. "\n"..
"\n", "\n",
"Die Funktion entspricht dem normalen TA4 Verteiler\\, mit zwei Unterschieden:\n"..
"Die Verarbeitungsleistung beträgt 36 Items alle 4 s\\, sofern auf allen Seiten TA4 Röhren verwendet werden. Anderenfalls sind es nur 18 Items alle 4 s.\n"..
"Außerdem können pro Ausgang bis zu 8 Items konfiguriert werden.\n"..
"\n"..
"\n"..
"\n",
"Die Funktion entspricht der von TA2.\n".. "Die Funktion entspricht der von TA2.\n"..
"Die Verarbeitungsleistung beträgt 4 Items alle 4 s. Der Block benötigt 5 ku Strom.\n".. "Die Verarbeitungsleistung beträgt 4 Items alle 4 s. Der Block benötigt 5 ku Strom.\n"..
"\n".. "\n"..
@ -1678,6 +1714,10 @@ techage.manual_DE.aItemName = {
"ta4_growlight", "ta4_growlight",
"ta4_streetlamp", "ta4_streetlamp",
"ta4_industriallamp", "ta4_industriallamp",
"ta4_liquid_filter",
"",
"",
"",
"", "",
"ta4_tank", "ta4_tank",
"ta4_pump", "ta4_pump",
@ -1688,6 +1728,7 @@ techage.manual_DE.aItemName = {
"ta4_chest", "ta4_chest",
"ta4_8x2000_chest", "ta4_8x2000_chest",
"ta4_distributor", "ta4_distributor",
"ta4_high_performance_distributor",
"ta4_gravelsieve", "ta4_gravelsieve",
"ta4_grinder", "ta4_grinder",
"ta4_quarry", "ta4_quarry",
@ -1866,6 +1907,11 @@ techage.manual_DE.aPlanTable = {
"", "",
"", "",
"", "",
"ta4_liquid_filter_base",
"ta4_liquid_filter_gravel",
"ta4_liquid_filter_top",
"",
"",
"", "",
"", "",
"", "",

Some files were not shown because too many files have changed in this diff Show More