Commit Graph

87 Commits

Author SHA1 Message Date
Vanessa Dannenberg
fc6efb450c add support for Unified Inventory categories 2021-04-02 15:48:28 -04:00
HybridDog
a2c0dd1130 Various small fixes
* Save the fakeplayer's wielded item in set_wielded_item
* pipeworks.luaentity: Return the found objects in get_objects_inside_radius
* Remove the invalid and unused on_blast return values in lua_tube.lua
  This should avoid a crash when a strong explosion happens next to a Lua Tube.
* Do not access a global "nodename" in a BUG message.
  This avoids a potential crash, in case the message actually appears in practice.
* Set the Flow Sensor and Fountain Head mesecons connection rules
* pipeworks.luaentity: Use the same function for move_to and set_pos
* (no functional change) Do not save the object returned by tube_inject_item into the "item1" local variable in filter-injector.lua
2021-02-07 11:58:18 +01:00
HybridDog
17a602a5a1 Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations 2021-02-05 17:17:50 +01:00
HybridDog
b2d2ccbcba Remove or comment unused code and declare some variables local 2021-02-03 18:08:50 +01:00
Louis Royer
62bc13078f Add translation support
- Created `locale/template.txt`
- Fixed some typos
- Replace some `print("[pipeworks]"..` with `pipeworks.logger()`
- Removed "You hacker, you" from descriptions
2020-02-18 17:34:52 +00:00
Vanessa Dannenberg
75cfac34e6 add signs_lib placement rules
only works on signs_lib commit dcdee222 or later.
2019-09-23 15:41:56 -04:00
Vanessa Dannenberg
d5fe933456 use default metal sounds on all pipes and pipe devices 2019-09-23 15:40:28 -04:00
Vanessa Dannenberg
a69c210b56 remove value/sensor conversion LBM
no longer needed, broken anyway
2018-09-08 16:20:27 -04:00
Vanessa Ezekowitz
ee0c276900 added straight-only pipe
(for situations where one might want to run
several closely-spaced parallel pipelines)

Also fixed a bug where a pipe "entry panel" would
report full of water if a pipe next to it (but not
connecting) was also full of water

Only tested under "classic" flowing logic mode.
2017-11-03 23:02:36 -04:00
Vanessa Ezekowitz
8817918a53 add low-poly mode
to enable, set pipeworks_enable_lowpoly = true in minetest.conf
2017-10-26 04:11:30 -04:00
thetaepsilon-gamedev
b7714df954 devices.lua: convert spigot to single-ended horizontally rotating flowable 2017-10-19 13:41:37 +01:00
thetaepsilon-gamedev
b2b29a1737 pressure logic: rewrite callbacks for horizontal rotation flowables to support singular and double-ended devices 2017-10-19 13:35:31 +01:00
thetaepsilon-gamedev
9df0ec7edb devices.lua: convert entry panel and valve to horizontal rotation flowable class 2017-10-19 13:05:16 +01:00
thetaepsilon-gamedev
fd4bd8eadc devices.lua: make flow sensor use the horizontally rotating flowable class 2017-10-19 12:30:28 +01:00
thetaepsilon-gamedev
3a85152e4d devices.lua: make fountainheads directional using fixed vertical helper 2017-10-18 21:44:36 +01:00
thetaepsilon-gamedev
7f7dfb79d5 pressure logic/flowable node registry: move pump directionality code to dedicated fixed vertical helper 2017-10-18 21:20:19 +01:00
thetaepsilon-gamedev
a69c5e24a9 devices.lua: implement directionfn for pump registration 2017-10-17 23:42:05 +01:00
thetaepsilon-gamedev
c55374cdfa devices.lua: convert pump to use new directional flow class 2017-10-16 23:39:30 +01:00
thetaepsilon-gamedev
d5e3f1cf68 new flow logic: implement post-transition hook with mesecons support, add mesecons transition rules for flow sensor 2017-10-08 17:38:28 +01:00
thetaepsilon-gamedev
ce0983d239 devices.lua: adjust flow sensor threshold to more closely model classic mode 2017-10-08 16:41:00 +01:00
thetaepsilon-gamedev
32a24730f1 new flow logic: change simple transition set logic to take list of key-value pairs, add set registration for flow sensor pipe 2017-10-08 15:07:12 +01:00
thetaepsilon-gamedev
6a25e56336 new flow logic: algorithmic and value tuning for non-finite mode 2017-10-08 11:32:08 +01:00
thetaepsilon-gamedev
ea92bfe4d3 devices.lua: raise maximum pressure for pumps 2017-10-07 21:36:41 +01:00
thetaepsilon-gamedev
4f58a3039c new flow logic: flowable_node_registry_install.lua: separate pressure threshold into upper and lower hysteresis values 2017-10-07 13:05:52 +01:00
thetaepsilon-gamedev
465e28cbd3 devices.lua: factor out usage of flowlogic helper into dedicated registry function 2017-10-07 12:16:36 +01:00
thetaepsilon-gamedev
8e53526b54 new flow logic: abms.lua: rename neighbour output helper to better indicate lack of rotation support 2017-10-01 21:20:30 +01:00
thetaepsilon-gamedev
76ebd0a0e1 devices.lua: make fountains functional under new flow logic using new neighbour output helper 2017-10-01 21:17:05 +01:00
thetaepsilon-gamedev
667eeb7d09 new flow logic: abms.lua: generalise spigot output code to support arbitary neighbour lists 2017-10-01 21:04:07 +01:00
thetaepsilon-gamedev
df3d54f58a move flowable registration for flow sensor to devices.lua near node definition 2017-10-01 18:34:55 +01:00
thetaepsilon-gamedev
de44593b41 move flowable registration for airtight entry panel to devices.lua near node definition 2017-10-01 18:30:32 +01:00
thetaepsilon-gamedev
13383770ef move spigot behaviour registration to devices.lua 2017-10-01 18:18:47 +01:00
thetaepsilon-gamedev
a1fc493de1 migrate flowable registration for valve nodes to devices.lua 2017-10-01 18:05:44 +01:00
thetaepsilon-gamedev
e6b55028fc move pump flow logic registration to devices.lua 2017-10-01 17:36:03 +01:00
thetaepsilon-gamedev
caacc2a261 devices.lua: create local variables for device node names in preparation for flow logic registration 2017-10-01 17:24:39 +01:00
thetaepsilon-gamedev
d6dcd51302 devices.lua: replace calls to add_node() with swap_node() to preserve node metadata 2017-09-27 16:42:15 +01:00
Vanessa Ezekowitz
f44993cd84 allow external devices to connect to pipes
and use that feature to handle most of the existing devices)
also, fix the "xray" glitch in the grating
2017-04-12 07:10:48 -04:00
Vanessa Ezekowitz
64b2611d8a prevent being able to place "loaded" and "on" items
(forces them to "empty" and "off")
2017-03-17 11:04:59 -04:00
Vanessa Ezekowitz
e5ee0dee90 add turn-to-vertical handling to valve, flow sensor
reuse the code from entry panel
2017-03-17 10:07:34 -04:00
Vanessa Ezekowitz
88ad79163d add screwdriver rotation handling on most pipes-related nodes
caveats:  in order to cleanly handle the entry panel, valve, and sensor
I had to rotate the valve and sensor models 90 degrees
so that their in-/outlet pipes point the same direction as the
entry panel.

This also enables proper handling of a valve or sensor turned vertically.

Some objects have rotation disabled entirely (as flipping them over/around makes
no sense)

When a valve is rotated, it is turned off automatically, to work around a glitch in
the rotation code.
2017-03-17 10:07:34 -04:00
Vanessa Ezekowitz
bd4a27d172 make valve and pump turn on/off via on_rightclick
(instead of on_punch)
2017-03-17 10:07:34 -04:00
Auke Kok
66cfc745e1 Squelch a warning if no mesecons. 2016-04-14 22:24:43 -07:00
Vanessa Ezekowitz
f80dec1220 drop direct support for dedicated protection mods
just use minetest's standard protection functions instead

(leave it up to those protection mods to do their job properly)
2015-03-23 17:40:00 -04:00
Vanessa Ezekowitz
c4aa351fa0 add missing alias for entry panel
side effect left over from new_flow_logic tests
2015-03-12 10:21:55 -04:00
Vanessa Ezekowitz
dad386b564 use animated water for pouring spigot
also remove a couple of extranous .mtl files and a redundant spigot texture
2015-01-16 04:38:17 -05:00
Vanessa Ezekowitz
50359104c7 Use mesh nodes for all nodebox-based pipe-related nodes 2015-01-15 06:25:41 -05:00
Vanessa Ezekowitz
28cef5e82f update to use current mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
2014-11-22 13:55:54 -05:00
Zefram
a7cd0e3ddb Fix drops for storage tanks 2014-07-02 21:40:36 -04:00
Vanessa Ezekowitz
e1435b1c2f fix a missed function name (due to being renamed) 2013-12-21 03:38:08 -05:00
Vanessa Ezekowitz
784634f0da local-ize a couple more variables 2013-12-21 03:35:39 -05:00
Vanessa Ezekowitz
f57443e96f mesecons_rules must be global. made so, confined to pipeworks.{} table. 2013-12-21 03:33:06 -05:00