From 35600822706fb211caea6b1f06a2d10579ed60df Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 27 Jan 2019 14:35:27 +0100 Subject: [PATCH] SmartLine Controller: Own node number to on/off command added to be able to cascade SmartLine Controllers --- README.md | 37 +++++++++++++++---------------------- releasenotes.md | 14 ++++++++++++++ smartline/icta/commands.lua | 4 ++-- 3 files changed, 31 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 4d52d92..3f68bad 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,5 @@ # TechPack V2.00 -## New in v2 (from players point of view) -- Almost all machines break after a certain amount of time (switch into the state 'defect') and have to be repaired. -- A Repair Kit is available to repair defect machines. -- A Forceload block (16x16x16) is added which keeps the corresponding area loaded and the machines operational as far as the player is logged in. -- The Quarry now uses LVM techniques to go down up to 100 meter -- Ladders, stairways, and bridges added for the machines (techpack_stairway) -- Industrial lamps -- Warehouse Boxes in steel, copper, and gold for your warehouse/stock (techpack_warehouse) - - -## New in v2 (from admins point of view) -- settingtypes introduced with the following settings: tubelib_max_num_forceload_blocks, tubelib_basalt_stone_enabled, tubelib_machine_aging_value -- the new mods 'techpack_stairway' and 'techpack_warehouse' have to be enabled -- TechPack depends now on the mod 'basic_materials' and 'tubelib2' (![GitHub](https://github.com/joe7575/tubelib2)) - - - TechPack, a Mining, Crafting, & Farming Modpack for Minetest. ![TechPack](https://github.com/joe7575/techpack/blob/master/screenshot.png) @@ -40,11 +23,6 @@ TechPack is a collection of following Mods: **A TechPack Tutorial is available as ![Wiki](https://github.com/joe7575/techpack/wiki)** -TechPack is a collection of mods for an automated mining, crafting, and farming. It is no replacement for Pipeworks, Mesecons, Technic, and Co., but it is a lightweight and simple to use alternative for servers with the focus on building (not only playing around with technique stuff). -If a player uses the full potential of TechPack, he can work on his building projects while TechPack is producing most of the necessary materials in the meantime. - - - TechPack provides: - lumber tubes to connect 2 nodes - a Pusher node to pull/push items through tubes @@ -166,4 +144,19 @@ tubelib_addons1 optional: unified_inventory - 2018-12-29 V2.00 * beta - 2019-01-12 V2.00 * release +## New in v2 (from players point of view) +- Almost all machines break after a certain amount of time (switch into the state 'defect') and have to be repaired. +- A Repair Kit is available to repair defect machines. +- A Forceload block (16x16x16) is added which keeps the corresponding area loaded and the machines operational as far as the player is logged in. +- The Quarry now uses LVM techniques to go down up to 100 meter +- Ladders, stairways, and bridges added for the machines (techpack_stairway) +- Industrial lamps +- Warehouse Boxes in steel, copper, and gold for your warehouse/stock (techpack_warehouse) + + +## New in v2 (from admins point of view) +- settingtypes introduced with the following settings: tubelib_max_num_forceload_blocks, tubelib_basalt_stone_enabled, tubelib_machine_aging_value +- the new mods 'techpack_stairway' and 'techpack_warehouse' have to be enabled +- TechPack depends now on the mod 'basic_materials' and 'tubelib2' (![GitHub](https://github.com/joe7575/tubelib2)) + See ![releasenotes.txt](https://github.com/joe7575/techpack/blob/master/releasenotes.md) for further information diff --git a/releasenotes.md b/releasenotes.md index 8210912..3cc35d3 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -2,6 +2,20 @@ +## V2.00.07 (2019-01-27) + +### Additions + +### Removals + +### Changes +- SmartLine Controller: Own node number to on/off command added to be able + to cascade SmartLine Controllers + +### Fixes + + + ## V2.00.06 (2019-01-22) ### Additions diff --git a/smartline/icta/commands.lua b/smartline/icta/commands.lua index 9e9eef9..5fcb90c 100644 --- a/smartline/icta/commands.lua +++ b/smartline/icta/commands.lua @@ -353,8 +353,8 @@ smartline.icta_register_action("switch", { return 'turn('..sl.fmt_number(data.number)..","..data.value..')' end, code = function(data, environ) - local s = 'tubelib.send_message("%s", "%s", nil, "%s", nil)' - return string.format(s, data.number, environ.owner, data.value) + local s = 'tubelib.send_message("%s", "%s", nil, "%s", "%s")' + return string.format(s, data.number, environ.owner, data.value, environ.number) end, })