62 Commits

Author SHA1 Message Date
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
Michal Cieslakiewicz
e0fa4333ed minertools: code rewritten and reorganized.
Major changes:
* all code now in init.lua which eliminates need for global functions
  and variables
* all item-specific data is now stored within item definition
* item configuration stored in metadata
* double-click mechanics eliminated completely, device settings
  available via right-click menu (formspec)
* code reusability by various devices improved dramatically
* flashlight option removed as light level is global item property
  and cannot be set independently for each device

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-11 16:44:24 +02:00
Michal Cieslakiewicz
e1e7c355aa minertools: double-click time now adjustable in settings.
For those who find default 300ms max period too short or too long.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-08 15:34:41 +02:00
Michal Cieslakiewicz
894fc6119d TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-08 15:00:47 +02:00
Michal Cieslakiewicz
b0f129e325 minertools: comment in umg.lua updated with flashlight feature.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-08 09:59:52 +02:00
Michal Cieslakiewicz
886cbcefa7 minertools: changed flashlight control to item 'use' function.
Flashlight on/off switching moved to 'use' (left click) key.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 22:38:20 +02:00
Michal Cieslakiewicz
fb277e512a minertools: add optional dependency on wielded_light.
For UMG Flashlight mode.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 20:17:09 +02:00
Michal Cieslakiewicz
74958f5c97 minertools: add flashlight mode to umg.
UMG can now be the source of very bright light if
wielded_light mod is also enabled.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 19:35:21 +02:00
Michal Cieslakiewicz
4bf88c360f minertools: fix incorrect message label in umg.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 19:20:34 +02:00
Michal Cieslakiewicz
2ab53b81e7 minertools: fix computer mode indexing.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 19:18:15 +02:00
Michal Cieslakiewicz
80de2f1ed5 minertools: double-click mechanics improved for ama and umg.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 17:22:03 +02:00
Michal Cieslakiewicz
23f48b77ed minertools: sound changed for computer function toggle.
New sound added for toggle to make it different from parameter
change click. Affects PMC, AMA and UMG.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 15:40:44 +02:00
Michal Cieslakiewicz
98867c7cd8 minertools: fix incorrect mineralfinder stone indexing.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 15:29:16 +02:00
Michal Cieslakiewicz
7ba50dcf2c minertools: fix error in mineralfinder_use() in functions.lua.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 14:36:14 +02:00
Michal Cieslakiewicz
371639ecbb minertools: major code cleanup and optimisation.
Common code and variables moved to functions.lua, device
code updated.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-07 14:00:13 +02:00
Michal Cieslakiewicz
dc223e3516 minertools: description.txt updated.
PMC, AMA and UMG mentioned in file.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-06 15:48:16 +02:00
Michal Cieslakiewicz
8dd1fbb5f0 minertools: ultimate mining gizmo (UMG) added.
Enhanced version of AMA, designed to be the ultimate mining computer module.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-06 15:31:28 +02:00
Michal Cieslakiewicz
49b7e445df minertools: AMA upgraded to show signal strength in MF mode.
When working as MineralFinder, AMA now shows signal strength which
is function of distance to nearest ore block (it drops with
1/3 radius range, from HIGH through MEDIUM to LOW). Thanks to this
AMA which has quite long MF range compared to standalone MF,
can be more useful in locating ores.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-06 14:33:11 +02:00
Michal Cieslakiewicz
09257d99a9 minertools: advanced mining assistant (AMA) added.
AMA is upgraded version of PMC. Ranges and sensivity
are increased.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 23:45:43 +02:00
Michal Cieslakiewicz
3d9fc4e5e4 TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 23:27:56 +02:00
Michal Cieslakiewicz
acef5d8283 minertools: personal mining computer (PMC) added.
This device is 3-in-1, it combines geothermometer,
mineral scanner and mineral finder in one compartment
while retaining each device's characteristics.
Double right-click to change device mode.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 23:23:57 +02:00
Michal Cieslakiewicz
b6933064a9 minertools: common code moved to functions.lua.
functions.lua file contains functions planned for reuse
with coming all-in-one devices.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 20:57:21 +02:00
Michal Cieslakiewicz
cc503d5663 minertools: mineral finder always starts with coal selected.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 17:28:16 +02:00
Michal Cieslakiewicz
6f1407e7b9 minertools: reverse mineral scanner range selection.
Mineral scanner now starts with maximum range, right-clicking
decreases range.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 17:23:05 +02:00
Michal Cieslakiewicz
f77b38bd22 TODO: file updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 17:00:59 +02:00
Michal Cieslakiewicz
a9f0954d71 minertools: description.txt updated.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 16:56:54 +02:00
Michal Cieslakiewicz
e828c5bac4 minertools: mineral finder added.
This tool detects selected ore in front of device
(directional scanner) but can be obstructed by obsidian
deposits to make things a little harder.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
2018-10-05 16:53:00 +02:00