13 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
311639ee11 slmodules: cropswatcher: fix crash when using default farming mod.
farming.registered_plants table for farming_redo mod differs slightly from
default (vanilla) Minetest game farming mod. Redo adds 'crop' value and indexes
elements by full name ("farming:wheat") while vanilla one creates entries
with simple labels ("wheat") and does not provide 'crop' field.
This causes game to crash for vanilla farming addon with following error:

cropswatcher.lua:80: attempt to concatenate field 'crop' (a nil value)

Code has been updated to correctly handle either of farming mods.
This fixes issue #1 by neoh4x0r.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-07-09 16:32:30 +02:00
Michal Cieslakiewicz
80b2844d24 slmodules: cropswatcher: load area before scan.
CropsWatcher could return incomplete data if running on partially
loaded area. This patch ensures that whole field area is loaded
before scanning begins.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-06-03 09:41:55 +02:00
Michal Cieslakiewicz
4fc146cf57 slmodules: add optional dependency on digilines mod.
Digilines mod added as optional dependency for mod but it is
a must-have for Digilines Message Relay.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-21 18:58:30 +01:00
Michal Cieslakiewicz
cf70797ecd slmodules: Digilines Message Relay added.
Digilines Message Relay Chip is a simple low-level device that
interconnects Tubelib/SmartLine and Digilines networks. Chip forwards
text messages between Tubelib SaferLua Controllers and Mesecons Lua
Microcontrollers connected to Digilines bus.

Version changed to v2.7.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-21 18:43:38 +01:00
Michal Cieslakiewicz
3055531cbb Update modpack and mod configuration files for 5.0.0.
modpack.conf and mod.conf files have been expanded to contain
new information that follows modding rules introduced in Minetest
version 5.0.0. Old txt files are still present for compatibility
reasons.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-10 12:33:49 +01:00
Michal Cieslakiewicz
f00bf97b77 slmodules: cropswatcher: add extended status command.
Device registers new SaferLua command: $get_crops_status(NUM)
which returns 3 values: state (as for $get_status() function)
and 2 counters - total number of crops and how many are fully
grown.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-03 22:07:39 +01:00
Michal Cieslakiewicz
03814af39e slmodules: fix missing files in commit.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-27 14:52:34 +01:00
Michal Cieslakiewicz
128e8a783d slmodules: files reorganization, Crops Watcher added.
Crops Watcher device added. This scanner node is designed to help in farming
automation by providing info when crops in the area are ready for harvest.
All slmodules components have been moved into separate files.
Version changed to 2.6.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-27 12:40:55 +01:00
Michal Cieslakiewicz
23261a9574 slmodules: add AutoSieve Sensor.
AutoSieve Sensor is a read-only proxy between Tubelib messaging and
Automated Gravel Sieve, performing the same function that Furnace
Monitor does for Minetest standard furnace - with additional feature
of reading Sieve item counter.

Mod dependencies updated to include gravelsieve.

Modpack version changed to 2.3.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-16 21:12:38 +01:00
Michal Cieslakiewicz
315882b40c slmodules: add Digital Switch multi-state panel.
Digital Switch is a multi-state panel that provide SaferLua
Controller with configurable input (selectable values from 0
to 9).
Minor updates to Furnace Monitor: protection check when diging,
code reformatting.
Modpack version bump to v2.2.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-12 15:19:25 +01:00
Michal Cieslakiewicz
11e230339f slmodules: correctly migrate param2 orientation.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-11 11:25:27 +01:00
Michal Cieslakiewicz
883e5b7722 slmodules: fix wrong node parameter in swap_node.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-11 11:19:18 +01:00
Michal Cieslakiewicz
99a5c35fef furnacemonitor mod changed to slmodules.
furnacemonitor renamed to slmodules, this mod is intented
to include more smartline devices in the future so it is
more reasonable to keep them together.
Migration lbm action included to automatically convert
all old furnacemonitor nodes to new module name.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-11 11:07:11 +01:00