138 Commits

Author SHA1 Message Date
Michal Cieslakiewicz
8a76692f1e README.md and TODO files updated.
Metal Recycler introduced.
Ice cubes as water source for HT Compressor.
Compressed Gravel as primary input in another 'Obsidian' recipe
for HT Compressor.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 17:23:47 +01:00
Michal Cieslakiewicz
63b877ffdc biogasmachines: gasifier: recipe and code update.
Coal block output changed to 9 Biogas units.
Timer code optimized by using local recipe variable.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 16:25:58 +01:00
Michal Cieslakiewicz
283805df77 biogasmachines: gasifier: Straw product decreased to 2 Biogas.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 16:16:30 +01:00
Michal Cieslakiewicz
ca86efe343 biogasmachines: gasifier: recipe change, minor code updates.
Coal gasification recipe now produces Gravel instead of Biofuel
as a secondary product. Recipe hint bar number width changed back
from 3 to 2. README.md updated.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-20 14:39:12 +01:00
Michal Cieslakiewicz
fb58c29f6c README.md and TODO files updated.
Gasifier implementation noted in TODO and README.md.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 14:28:31 +01:00
Michal Cieslakiewicz
a5bf21660d biogasmachines: gasifier: fix listring order.
Putting 'cur' at the end of listring in formspec brings back
shift-click access to 'src' which had been broken by putting
'cur' in the middle.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 14:07:59 +01:00
Michal Cieslakiewicz
1c93dd5e73 biogasmachines: freezer: allow taking items from working tray.
Items can be taken from working tray ('cur' inventory list) when
machine is stopped. This functionality is identical to gasifier behaviour.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 14:05:20 +01:00
Michal Cieslakiewicz
33c7cbf09e biogasmachines: gasifier: fixed working tray item processing.
Fixed incorrect behaviour when machine was restarted with non-empty
working tray. Now device checks this tray before source (input) inventory
and if item is present, sets it for processing.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 13:37:04 +01:00
Michal Cieslakiewicz
22ef12415d biogasmachines: freezer: add color to working tray.
Working tray has now blue background that gets brighter when machine
is operating. It is used to indicate that this tray is a special one
and cannot be accessed by player like normal inventory cell.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 13:00:43 +01:00
Michal Cieslakiewicz
d8cf44597f biogasmachines: freezer: static formspec data calculated only once.
Formspec data that needs to be calculated only once is stored in
a special array (method introduced in gasifier) and never re-calculated.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 12:07:07 +01:00
Michal Cieslakiewicz
811b486e9e biogasmachines: freezer: unused variable removed from function.
Unused 'number' variable removed from on_receive_fields() callback.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 11:46:50 +01:00
Michal Cieslakiewicz
485b578e33 biogasmachines: gasifier machine added.
This machine is designed to extract Biogas from highly compressed
dry organic matter, such as fossil fuels (coal block) and straw.
It requires no fuel to avoid complex processing loops.
Its recipe base is expandable via API function.
All functionality and Tubelib integration is in place.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-19 11:40:56 +01:00
Michal Cieslakiewicz
d1f39d9582 biogasmachines: code update for stub machines.
Code cleanup and preparations for another Biogas Machine.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-15 17:44:35 +01:00
Michal Cieslakiewicz
8a05d661a2 README.md and freezer header comment updated.
README.md and freezer.lua documentation changes.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-15 17:20:31 +01:00
Michal Cieslakiewicz
bbe683365e biogasmachines: water freezer done.
Water Freezer is now fully functional.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 23:38:39 +01:00
Michal Cieslakiewicz
590037ca21 biogasmachines: freezer: crafting recipe added.
Crafting recipe added. When unified_inventory is installed, crafting guide
is expanded with 'freezing' type and ice generation recipe.
What's left: textures and look.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 17:28:24 +01:00
Michal Cieslakiewicz
94ea89dc2f biogasmachines: functions: connection table moved out of function.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 15:24:26 +01:00
Michal Cieslakiewicz
94c9594961 biogasmachines: freezer: accept pipe connections from all sides.
Freezer now accepts pipe connections from all sides, thanks to improved
pipe detection logic in functions.lua. Function that checks if an element
belongs to an array has been made public to all module files, module
has been rewritten to utilize this function instead of duplicating
code.
What's left: textures, crafting.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-13 15:16:18 +01:00
Michal Cieslakiewicz
af94d88e8e furnacemonitor: duplicated array removed.
Duplicated message color array removed, version local to on_punch
callback left.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-11 11:28:07 +01:00
Michal Cieslakiewicz
c2607b5ea9 biogasmachines: freezer: tubelib integration implemented.
Freezer now interacts with tubelib devices and can be a part of
complex machines (i.e. paired with Liquid Sampler).
Minor code adjustments: inventory reshaping, on_punch logic.
What's left: textures, crafting.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-11 11:24:07 +01:00
Michal Cieslakiewicz
69dfcc7847 biogasmachines: freezer: basic work implemented.
Freezer can now work as a standalone device, producing ice
from water supplied in bucket or through pipes.
What works: ice production logic, manual on/off.
Todo: tubelib integration (tubes and message i/o), crafting,
textures.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-10 15:03:43 +01:00
Michal Cieslakiewicz
847156e703 biogasmachines: further works on freezer.
Water detection code reorganized, new graphics for freezer added.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-07 15:46:21 +01:00
Michal Cieslakiewicz
6eafa51477 biogasmachines: freezer early version created.
Simple freezer node created to test pipeworks water supply.
Node has temporary textures, no formspecs and no inventories.
When punched node shows if water is flowing into it via pipes.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-06 20:45:02 +01:00
Michal Cieslakiewicz
ad0c65e7e0 TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-04 13:16:23 +01:00
Michal Cieslakiewicz
2734ffbfad minertools: update multidevice menu.
Separate formspec has been added for each function of multidevice,
now device dynamically shows settings valid only for selected mode.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-04 12:53:53 +01:00
Michal Cieslakiewicz
2e3d936e83 TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-03 19:54:28 +01:00
Michal Cieslakiewicz
b6da23f08b minertools: mineral blocks detection added.
According to minetest documentation, mese blocks can appear naturally
at depths < 1024. Mineral detectors have been upgraded to recognize blocks
of mese, coal and diamond (these can be generated without smelting so
theoretically can be found deep in the ground). To enable this, internal
structures and affected functions have been rewritten to allow more than
one node type for label ('coal' etc.).

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-03 19:46:39 +01:00
Michal Cieslakiewicz
e978b61939 minertools: accept sandstone blocks as natural.
Sandstone blocks (including bricks) are now qualified by geothermometer
as nodes of natural origin and device shows reading for them.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-11-03 14:23:01 +01:00
realmicu
056b806e0b
README.md reformatted. 2018-10-29 13:41:21 +01:00
Michal Cieslakiewicz
13bf68b6b1 furnacemonitor: tubelib-compatible mod added.
This mod adds Furnace Monitor - device that once attached to standard
Minetest game furnace, receives Tubelib number and responds to state
requests.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-29 13:16:55 +01:00
Michal Cieslakiewicz
5296b98d69 minertools: make light_level a local variable.
light_level variable was wrongly made global, this has been fixed.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-28 13:05:32 +01:00
Michal Cieslakiewicz
da7b0a37f0 slprogtools: header in init.lua updated.
Memory Programmer added to description header at top of the file.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-27 12:19:16 +02:00
Michal Cieslakiewicz
24865500b4 minertools: fix description.txt.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-27 12:17:23 +02:00
Michal Cieslakiewicz
3b51888761 slprogtools: mod description updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-27 12:08:40 +02:00
Michal Cieslakiewicz
d21f739fc7 README.md updated, slprogtools section expanded.
Memory Programmer information added.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-27 11:27:25 +02:00
Michal Cieslakiewicz
e9e5a93a53 slprogtools: formspecs are closed by button_exit.
Explicit call to formspec_close() removed as it is handled
automatically by button_exit.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-26 09:24:31 +02:00
Michal Cieslakiewicz
10b4ce54ea slprogtools: programmer device added.
Programmer device has all functionality of Memory Copier while at
the same time can perform similar task to Smartline Programmer.
It is designed to speed up SaferLua Controller redeployments
(for example moving mobile mining controllers for Quarries).
Minor code adjustments of copier part was also required.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-25 21:52:08 +02:00
Michal Cieslakiewicz
cf0aa6a63c minertools: add mode label for multidevice formspec.
Labels for settings in multidevice formspec are now prepended
with MS and MF to remind that option affects only one subsystem.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-24 14:57:43 +02:00
Michal Cieslakiewicz
9149d2737a TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-23 00:13:44 +02:00
realmicu
bff96f7575
README.md reformatted again. 2018-10-19 11:12:35 +02:00
realmicu
25ba62a80a
README.md reformatted for Github. 2018-10-19 11:12:00 +02:00
Michal Cieslakiewicz
b193a53c00 Files reorganized before pushing to GitHub.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-19 11:06:57 +02:00
Michal Cieslakiewicz
4fd6d953e7 biogasmachines: code clean-up.
Commented out code removed, that's all.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-16 22:57:13 +02:00
Michal Cieslakiewicz
d111080b7f minertools: add click to window close via ESC.
fields.quit is now recognized as well and causes formspec closing
to emit click sound.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-15 10:12:24 +02:00
Michal Cieslakiewicz
e16e9ca46a minertools: OK button now exits formspec automatically.
Button definition changed to button_exit which automates windows
closing and compacts callback code.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-15 10:07:43 +02:00
Michal Cieslakiewicz
4df95a35ca minertools: return item in on_use for items with metadata.
All devices except geothermometer check and init their metadata on
first use. Therefore in on_use handler it is better to return item
not nil so tool gets updated immediately after handler routine ends.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-14 11:18:49 +02:00
Michal Cieslakiewicz
ff4a9f5dc8 slprogtools: mod created with memory copier.
This mod contains Memory Copier for SaferLua Controller which
can download and upload init, loop and notes sections of device
and is perfect for cloning or moving Controllers to a new location
(as they do not preserve metadata when put back in inventory)
Notice: controller uses formspec metadata so it's active right-click
menu is not updated on display - current tab metadata is also not
read then; workaround is to switch to outp or help tab before uploading
code.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-14 10:36:47 +02:00
Michal Cieslakiewicz
40ac00052e TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-12 08:58:31 +02:00
Michal Cieslakiewicz
a652652310 minertools: add flashlight setting for UMG.
UMG can be a light source when enabled in mod settings. This works
with wielded_light or similar mods, otherwise it does not matter.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-12 08:50:34 +02:00
Michal Cieslakiewicz
d832814daa minertools: screenshot image added.
Not really a screenshot but nice to have anyway.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-11 17:09:20 +02:00