150 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
b30cff939c biogasmachines: active tray color box adjusted for 5.0.0.
Version 5.0.0 apparently modified inventory box so height value
0.9 for color background area in active tray was too big. Changed
to 0.88 which looks ok now.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-09 19:24:36 +01:00
Michal Cieslakiewicz
846cf32a5d Module presence checks now use minetest.global_exists().
minetest.get_modpath() and generic Lua global variable checks
changed to minetest.global_exists() function for all mods
in modpack.

This is the first change after moving modpack development from
Minetest version 0.4.17.1 to 5.0.0.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-09 19:12:46 +01:00
Michal Cieslakiewicz
5ce4b0b2fb README.md reformatted, version updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-03-03 22:17:14 +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
ca5c7b8601 biogasmachines: tank: fix medium tank side texture.
Removed artifact 4x4 screw bitmap from middle of texture.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-22 18:32:40 +01:00
Michal Cieslakiewicz
095821a9e7 biogasmachines: add Biogas Tank.
Biogas Tank is a dedicated storage for Biogas units. It comes in
3 sizes: Small (2 slots), Medium (32 slots) and Large (72 slots).
It supports Tubelib stack pulling and status query (like HighPerf
Chest). In addition, storage tank provides both visual indication
and infotext information about current capacity usage.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-22 18:24:38 +01:00
Michal Cieslakiewicz
823a1dcf7e biogasmachines: add Biogas Torch.
Biogas Torch comes in 4 variations, depending on handle material:
steel, tin, copper and bronze. It is a replacement for standard
coal torch with additional snow and ice melting feature.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-19 13:12:23 +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
c4d8b46a25 biogasmachines: make infotext shorter.
Remove "Tubelib" string from infotext, we all know that these are
Tubelib devices. Keep this information in node description though
so searching in updated inventory managers shows these as Tubelib
items.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-15 17:46:01 +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
91a933cc9a README.md updated with slmodules mod information.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-11 11:37:42 +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
Michal Cieslakiewicz
2792a98455 biogasmachines: change tube to v2 in crafting recipes.
'tubelib:tube1' changed to 'tubelib:tubeS' in all crafting recipes.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-11 10:20:00 +01:00
Michal Cieslakiewicz
4e99b884c4 Dependencies updated for furnacemonitor and slprogtools.
Added tubelib2 as a hard dependency for above mods.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-03 16:44:46 +01:00
Michal Cieslakiewicz
372c2f46f2 slprogtools: Tubelib v2 adaptation, minor changes.
Both programmers support new 'func' tab in SaferLua Controller.
Empty data fields are really zero-length now instead of set to "--".

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-03 16:04:16 +01:00
Michal Cieslakiewicz
6ec6fda0e5 furnacemonitor: Tubelib v2 adaptation, minor changes.
States reported updated to Tubelib v2. Minor code cleanup.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-01 18:52:30 +01:00
Michal Cieslakiewicz
728e443364 biogasmachines: minor code cleanup in function.
fuel_countdown_to_halt() function has been ported from Compactor
to remaining BiogasMachines consuming fuel - variable replaced
with direct metadata function call.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-01 17:36:57 +01:00
Michal Cieslakiewicz
2201310971 biogasmachines: keep_running call unified to default value.
Call to keep_running() function from Tubelib2 API now always
uses default value of 1 regardless of machine type and actual
number of processed items. This has been ported from Compactor
to other BiogasMachines.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-02-01 17:27:01 +01:00
Michal Cieslakiewicz
874b7c207c README.md and TODO files updated.
Biogasmachines descriptions changed in README.md.
Modpack version set to 2.0.
Tasks in TODO file updated as well.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-31 23:14:00 +01:00
Michal Cieslakiewicz
ab24a65114 biogasmachines: compactor: Tubelib v2 adaptation, logic improvements.
Code updated to make machine fully compatible with Tubelib2 framework.

Major changes:

* supports Tubelib2 by using NodeStates class and new metadata
* BLOCKED state introduced when no space left in output tray
* set to FAULT when Biogas tank is empty
* on_punch diagnostics removed
* processing logic updated (fuel and ice checks reorganized,
  desired_state metadata introduced, improved state transition logic)

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-31 22:51:27 +01:00
Michal Cieslakiewicz
9ea6941042 biogasmachines: jetfurnace: Tubelib v2 adaptation, improvements, bugfix.
JetFurnace code has been derived from new gasfurnace so all new logic
and bugfixes are also implemented here.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-30 12:25:42 +01:00
Michal Cieslakiewicz
8538acca26 biogasmachines: gasfurnace: minor adjustment to state logic.
Both Freezer and Gasifier transit from standby to blocked through running
state. Although Biogas Furnace is capable of direct standby->blocked
transition, adapt its behaviour to other Biogas machines.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-29 23:02:39 +01:00
Michal Cieslakiewicz
d3dfd92d46 biogasmachines: freezer: processing logic improvements, bugfix.
Processing logic adapted from updated gasfurnace code (minus fuel).
Fixed checking for space in output tray for items with extra leftover
material (coal).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-29 22:41:30 +01:00
Michal Cieslakiewicz
922a3fd6c7 biogasmachines: gasfurnace: minor typos fixed.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-29 18:27:40 +01:00
Michal Cieslakiewicz
d9f5201781 biogasmachines: gasfurnace: output space check improved.
More universal approach ported from freezer to check for output space.
Loop is used instead of fixed indices.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-29 18:24:29 +01:00
Michal Cieslakiewicz
3f877dde28 biogasmachines: freezer: processing logic improvements, bugfix.
Processing logic ported from updated gasfurnace code.
Fixed checking for space in output tray for water in buckets.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-29 18:04:30 +01:00
Michal Cieslakiewicz
60429b5818 biogasmachines: gasfurnace: Tubelib v2 adaptation, improvements, bugfix.
Code updated to make machine fully compatible with Tubelib2 framework.

    Major changes:

    * supports Tubelib2 by using NodeStates class and new metadata
    * BLOCKED state introduced when no space left in output tray
    * set to FAULT when Biogas tank is empty
    * on_punch diagnostics removed
    * processing logic updated (fuel checks reorganized, desired_state
      metadata introduced, improved state transition logic)

    Fixed:

    * proper checking for space in output tray for items with vessels

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-29 15:36:54 +01:00
Michal Cieslakiewicz
bcc22670d7 biogasmachines: gasifier: make code compatible with Tubelib v2.
Code updated to make machine fully compatible with Tubelib2 framework.

    Major changes:

    * supports Tubelib2 by using NodeStates class and new metadata
    * BLOCKED state introduced when no space left in output tray
    * on_punch diagnostics removed

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-26 20:44:50 +01:00
Michal Cieslakiewicz
dc01c6cd0d biogasmachines: freezer: make code compatible with Tubelib v2.
Code updated to make machine fully compatible with Tubelib2 framework.

Major changes:

* supports Tubelib2 by using NodeStates class and new metadata
* BLOCKED state introduced when no space left in output tray
* set to FAULT when Biogas tank is empty
* on_punch diagnostics removed

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-26 15:54:41 +01:00
Michal Cieslakiewicz
300ef43afa biogasmachines: get rid of public is_member_of() function.
biogasmachines.is_member_of() function replaced with sparse arrays.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2019-01-15 19:24:09 +01:00
Michal Cieslakiewicz
1c89cb59f0 README.md: modpack version changed to 1.0.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-20 18:29:56 +01:00
Michal Cieslakiewicz
1bde1a18b1 biogasmachines: gasifier: update hint display.
Changing hint bar recipe updates help image in source inventory as well
(ported from compactor).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-15 10:04:02 +01:00
Michal Cieslakiewicz
083910a8a3 biogasmachines: compactor crafting recipe changed.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-15 09:51:21 +01:00
Michal Cieslakiewicz
8d1546ea2e biogasmachines: screenshot updated.
Compactor put in picture.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-14 23:43:43 +01:00
Michal Cieslakiewicz
9a94184d5e biogasmachines: compactor logic improved.
Standby/resume logic fixed when one of working trays is empty
while machine is power-cycled.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-14 23:38:34 +01:00
Michal Cieslakiewicz
7259b8d816 README.md and TODO files updated. Version set to 1.0rc1.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-14 21:42:58 +01:00
Michal Cieslakiewicz
a95947d928 biogasmachines: gasifier unified_inventory registration rewritten.
Unified_Inventory recipe registration code splitted: type is registered
before adding default recipes via API; recipe registration moved to
API function so it gets called every time function successfully runs
(ported from compactor.lua).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-14 21:35:58 +01:00
Michal Cieslakiewicz
e72ffe28ad biogasmachines: compactor machine added.
Compactor machine compresses material using Biogas as fuel
and Ice cubes as coolant. Recipes are added using public
API function.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-14 21:26:29 +01:00
Michal Cieslakiewicz
64f469f4c4 biogasmachines: remove artifact function call.
During code replication from base freezer.lua to other Biogas Machines
in on_punch() callback a unnecessary call to biogasmachines.is_pipe_with_water()
function has been overlooked and left over. This commit removes that call
for gasifier and furnaces.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-13 15:25:30 +01:00
Michal Cieslakiewicz
6395a46a45 slprogtools: copier label sound changed to click.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-08 13:29:12 +01:00
Michal Cieslakiewicz
f37967b5dc slprogtools: moreores can be used to craft copier.
Crafting recipe for Memory Copier can contain silver instead of gold
if moreores mod is installed.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-08 12:07:06 +01:00
Michal Cieslakiewicz
8dc681157b slprogtools: custom label for copier added.
Memory Copier description can now be changed via formspec the same
way books are titled. Setting empty label resets name to default text.
TODO and README.md updated. Modpack version changed to 0.92.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-07 23:20:48 +01:00
Michal Cieslakiewicz
c41fbd41f4 slprogtools: read-only flag for memory copier added.
Memory Copier dongle can now be write-protected.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-07 17:48:26 +01:00
Michal Cieslakiewicz
959a0a42fa biogasmachines: gasfurnace: delay for autoshutdown added.
Backported from Jet Furnace. When no fuel, device waits for some time
(the same value as for standby) before it shuts down automatically.
This timeout allows fuel to reach device in more complicated Tubelib
machineries.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-04 13:26:56 +01:00
Michal Cieslakiewicz
921426e22a README.md: modpack version changed to 0.9.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-03 16:33:17 +01:00
Michal Cieslakiewicz
3e9996a6e2 biogasmachines: gas jet upgraded furnace added.
Jet Furnace that is 2 times faster than standard version in both item cooking
time and Biogas consumption. Additionally it supports stack pulling from output
tray (can be paired with High Perf Pusher) and longer auto-poweroff delay
(to allow fuel to reach device before it automatically shuts down).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-12-03 15:35:44 +01:00