Commit Graph

65 Commits

Author SHA1 Message Date
Thomas Rudin 4abf631de5 increase quarry cache 2020-01-22 17:54:48 +01:00
Thomas Rudin 2900b58067 can dig cache for the quarry / settings 2020-01-22 17:54:06 +01:00
Thomas Rudin e4a1324438 optional quota (default: false) 2020-01-22 17:46:33 +01:00
Thomas Rudin 0544543fd4 quarry tuning 2020-01-05 16:53:04 +01:00
Thomas Rudin 68755c0cf7 i really should have a setting for this 2019-08-03 07:23:08 +02:00
Thomas Rudin 439ebfc173 moar depth 2019-07-08 17:44:19 +02:00
Thomas Rudin 897538d3fa limit cpu time of the quarry 2019-06-19 14:41:16 +02:00
Thomas Rudin 458f23b929 limit quarry depth 2019-06-04 05:56:00 +02:00
Thomas Rudin bca3c97229 remove monitoring code 2019-04-29 21:30:17 +02:00
Thomas Rudin 6059ec8aeb Revert "Revert "Revert "remove monitoring code and deps"""
This reverts commit 2a07854bd337e918ea9e60d08b42b7dbe09b2433.
2019-04-29 21:26:20 +02:00
Thomas Rudin 9ca1f1070a Revert "Revert "remove monitoring code and deps""
This reverts commit 48d251a33821a2b6f9f826e6d8fe7ca601e3e903.
2019-04-29 20:49:22 +02:00
Thomas Rudin 8b457ef770 lift quarry limits a bit 2019-04-20 22:00:04 +02:00
Thomas Rudin 5e8c450f0a Merge branch 'pandorabox' of github.com:pandorabox-io/technic into pandorabox 2019-04-12 21:03:07 +02:00
Thomas Rudin 3252c4340a cleanup 2019-04-12 15:43:25 +02:00
Thomas Rudin bf0f22fdb8 don't check above pos on quarry dig 2019-04-12 15:43:03 +02:00
Thomas Rudin ddf78dbc57 perf stuff 2019-04-10 09:42:02 +02:00
Thomas Rudin 0886117328 try to load_area() on quarry dig 2019-04-09 18:16:27 +02:00
Thomas Rudin c832f3df32 limit quarry depth to 30 2019-03-17 20:55:39 +01:00
NatureFreshMilk 7a32be742c quarry dig count metric 2019-03-04 09:06:54 +01:00
Thomas Rudin 3f793722d1 quarry depth 2019-03-01 19:13:59 +01:00
Thomas Rudin 2750d80216 quarry depth = 70 2019-02-18 22:11:44 +01:00
Thomas Rudin 027c151643 wtf! 2019-01-30 19:55:18 +01:00
Thomas Rudin 44f40664da quarry depth limit 2019-01-25 21:27:31 +01:00
Thomas Rudin 5ce979df0c only decrement quarry quota if active 2018-12-20 08:27:35 +01:00
Thomas Rudin 6104383fa5 add quarry-quota per player: 4 blocks/second per default 2018-12-14 08:31:14 +01:00
Thomas Rudin 4015ef5532 Merge branch 'protected_forcefield' of https://github.com/Lejo1/technic into pandorabox 2018-12-11 16:57:22 +01:00
Lejo 17e68bb168 Check protection of the quarry 2018-12-11 16:27:08 +01:00
Thomas Rudin b04c6a9576 Merge https://github.com/minetest-mods/technic into pandorabox 2018-12-09 16:59:32 +01:00
Thomas Rudin 701240bc3a Quarry: Check for valid facedir to fix server freeze #465 (#466)
Checks if facedir is valid. If the face points up or down the depth-check would run endless and freeze the server
2018-12-09 16:01:10 +01:00
Thomas Rudin 6ef76aacfb Merge branch 'quarry-facedir-fix' of github.com:pandorabox-io/technic-1 into pandorabox 2018-12-03 10:54:10 +01:00
Thomas Rudin 38eeecfa0c fix #465
Checks if facedir is valid. if the face points up or down the depth-check would run endless and freeze the server
2018-12-03 10:49:41 +01:00
Thomas Rudin 2d18ca778f another null check for https://github.com/pandorabox-io/pandorabox.io/issues/59 2018-11-28 08:36:10 +01:00
Thomas Rudin 31d7cbaf7e Merge https://github.com/minetest-mods/technic into pandorabox 2018-11-26 08:54:18 +01:00
Thomas Rudin 3d52b679b0 Quarry: Make use of fake digger from pipeworks (#453)
Fixes crash when digging empty protected chests (https://github.com/minetest/minetest_game/blob/backport-0.4/mods/default/nodes.lua#L1868)
2018-11-16 21:36:03 +01:00
Vanessa Dannenberg 44cb8df048 use basic_materials mod where possible. 2018-11-11 09:54:20 +01:00
Thomas Rudin ce904d72b5 Merge branch 'fix-fake-digger' into pandorabox 2018-11-09 08:06:04 +01:00
Thomas Rudin ee2728c26a fixes #441
Quarry uses a fake-digger created by pipeworks (hard-dependency)
Fixes crash when digging empty protected chests (https://github.com/minetest/minetest_game/blob/backport-0.4/mods/default/nodes.lua#L1868)
2018-11-09 07:56:18 +01:00
Thomas Rudin 638c3a33e0 pandorabox custom 2018-07-26 15:58:50 +02:00
thetaepsilon-gamedev c93bfefd9f machines/HV/quarry.lua: [modification] provide a basic digger object to can_dig callbacks to prevent nil object errors (#425)
Minetest game's doors mod was known to cause server errors when passed a nil digger in it's can_dig callback,
due to always attempting to invoke digger:get_player_name().
Fix this by providing a basic fake player which provides this method to can_dig callbacks.
(It should be noted that currently this fix causes doors to be undiggable by quarries.)
2018-05-19 22:06:00 +02:00
Vitaliy 689766f15a Remove unused values (#407) 2018-02-17 11:00:15 -08:00
Vanessa Ezekowitz 54004f4951 redo top/bottom textures for supply converter
delete back/bottom texture for power monitor
use "machine bottom" for bottom of force field generator
add cable connection overlay, use it on various machines' bottoms/sides, as appropriate
2017-04-11 08:48:16 -04:00
Vanessa Ezekowitz 0e9caf069d add pipeworks tube overlay to top of quarry
(and get rid of obsolete inventorycube() image)
2017-04-11 08:09:53 -04:00
Tim 428b1b8709 Mitigate several forms of quarry-placement leading to item-transportation loops, that eventually cause server freezes.
As a nice side effect, items are not gonna be unnecessarily received by the quarry anymore, if another tube is available for transport.
2016-10-09 17:46:06 +02:00
ShadowNinja 83c6494166 Use connected nodeboxes for cables 2016-03-20 00:02:33 -04:00
est31 f250e1632f Give quarries a better inventory icon
Current inventory icon is indistinguishable from carbon steel block. The side with the pick was hidden. This commit moves that part to the front.
2015-01-24 21:23:26 +01:00
est31 86dd5852aa Add cache to quarry
Adds a cache to the quarry in order to reduce load and send larger stacks through pipes instead of just single items. Coin tossing ensures the cache gets purged around every 200 seconds. The interval isn't fixed in order to prevent material spikes from multiple quarries which got loaded simultaneously. When the cache is full, or the quarry finished, it is purged too.
2015-01-24 21:22:49 +01:00
est31 c38da0945c Optimize quarry_run
Don't load the whole digging area when only a small piece is relevant.
Also, move the (time expensive) check whether the air above a block is free to the last position, which spares unneccessary checks when multiple quarries are placed together, or a quarry has to loop over air for another reason.
2015-01-24 19:40:02 +01:00
Zefram d0efa15b98 In quarry, skip past undiggable nodes
The quarry used to get stuck when it encountered an undiggable node.
Change it to skip past that node, digging whatever later stuff it can.
Necessarily, the current digging position becomes semantically-significant
state: it is no longer sufficient to search the quarry cuboid from the top
on each iteration.  The current digging height is reported in the quarry's
interaction form, and can be reset to the top using a button on the form.

Where there is a non-air node within the quarry directly above the
next node to dig, it blocks the quarry's access to that node, even if
everything involved is diggable.  Thus an undiggable node casts a shadow
of undug nodes below it.  Resolving undiggability of a node is a major
reason to use the restart button.
2014-08-18 15:14:15 +01:00
Zefram 049129d9b8 Handle both pipeworks APIs
The new API function is now renamed to pipeworks.tube_inject_item(),
so use it under that name.  If it is not available, synthesise the new
API in terms of the old one.
2014-08-15 13:23:41 +02:00
Novatux baf7f61665 Compatibility with latest pipeworks 2014-08-14 21:29:56 +02:00