1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-26 19:00:24 +01:00
Commit Graph

79 Commits

Author SHA1 Message Date
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
Vanessa Ezekowitz
2481c06bf0 fix incorrect variable name 2013-12-15 05:26:39 -05:00
Vanessa Ezekowitz
659b4e42b2 local-ize a few more variables, move all of the nodebox models
into their own file and confine them and pretty much everything
else to the pipeworks.{} table (still global though).  More to
come.
2013-12-15 04:35:59 -05:00
Vanessa Ezekowitz
bd80f18cfc local-ize pretty muchg everything that was previously global except where
stuff needs to be globally-visible.  Also, fix a bad drop on valve.
2013-12-15 02:53:10 -05:00
Vanessa Ezekowitz
3dfe770272 Phased out old register_on_punchnode() calls in favor of per-node on_punch
callbacks.  Got rid of all the old backward-compat device aliases.
2013-11-28 02:33:31 -05:00
Vanessa Ezekowitz
bf7993b802 get rid of some extraneous print statements 2013-11-25 23:59:52 -05:00
Vanessa Ezekowitz
1c7f2722d6 fix non-working water flow sensor, add proper side texture for it 2013-11-09 13:21:19 -05:00
Vanessa Ezekowitz
3d19cca557 Add fountainhead (vertical spigot, basically). 2013-10-27 22:38:19 -04:00
Vanessa Ezekowitz
c0af957167 added ability to disable most components via config file in world folder
moved pipes out of init.lua and into a separate file.
some minor formatting changes
2013-07-13 22:39:25 -04:00