Commit Graph

35 Commits

Author SHA1 Message Date
Vanessa Ezekowitz a11a672eea allow pumps to add directly to a vertical "entry panel" also. 2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 722318040e trap bad fdir on spigot, reset it to proper orientation if it's wrong 2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 5fed2ca980 combine spigot and fountain ABMs together,
reduce pump abm interval to 1
increase max water pressure
fix spigots and fountains not turning off when they should
2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 16bab0ddd4 moved device connection search code into its own function
merged entry panel evaluation code into "other devices" ABM
2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 11e83586a5 tweak max pressure that pump will add to pipes 2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 7ed830f0dd return early if snapping valve/sensor to normal facedir 2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz c7c38d63ba make entry panels work with new flow logic 2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 4144fb84b0 if someone screwdrivers a valve or sensor out of horizontal, reset it back
to horizontal
2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz fd0366cfd9 make pressure sensor turn off if it doesn't have at least one
side connected to a source of pressure
2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 64069ebd38 fix indentation error 2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 8825f4ec72 remove debug statements 2015-06-18 12:42:20 -04:00
Vanessa Ezekowitz 86c64041fa tube hysteresis, adjust pipe abm interval 2015-06-18 12:42:19 -04:00
Vanessa Ezekowitz dcf65b6878 make flow sensor activate mesecons wires again
only swap flow sensor if it actually changes
2015-06-18 12:42:19 -04:00
Vanessa Ezekowitz 7f94ed4c1a make valves and flow sensors work with new flow logic 2015-06-18 12:42:19 -04:00
Vanessa Ezekowitz e8c249f8d2 remove debug statements 2015-06-18 12:42:19 -04:00
Vanessa Ezekowitz 6fdfa026cf tune pressure, leakdown and related parameters 2015-06-18 12:42:19 -04:00
Vanessa Ezekowitz 24ff13d7db complete rewrite of water flowing logic
also implements leak-down in "off" pumps
fixes failure to remove water source when digging active spigot/fountain
2015-06-18 12:42:19 -04:00
Novatux 10cf11e008 A few more fixes (spamming the commit log again...) 2013-12-21 11:11:36 +01: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 3d19cca557 Add fountainhead (vertical spigot, basically). 2013-10-27 22:38:19 -04:00
Vanessa Ezekowitz b310c201b5 fix nil references in flowing_logic.lua 2013-08-07 22:16:47 -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
Vanessa Ezekowitz 2f843fdd76 remove a bunch of useless metadata and settings
("pipelike" everywhere, but it isn't used for anything)
2013-07-04 03:12:45 -04:00
Vanessa Ezekowitz 7e7ddd9c95 rewrite flowing logic a bit to eliminate excessive add_node/remove_node calls
also got rid of obsolete optdepends
2013-07-04 00:01:08 -04:00
Vanessa Ezekowitz 17ee4f6aab Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Vanessa Ezekowitz d4dddc41ec add flow sensor. Sends mesecons signal when water is flowing through it. 2013-05-10 18:28:57 -04:00
Vanessa Ezekowitz 9231f9fa01 made valves and airtight entry panels work.
Removed "flowing" spigot from creative inventory.
2013-05-10 17:28:11 -04:00
Vanessa Ezekowitz 54a78297bb remove water node at spigot only at the
pouring-->off transition, not repeatedly.
2013-05-10 16:17:47 -04:00
Vanessa Ezekowitz b0d92dd358 periodically remove one water node next to each "on" pump that's also flowing
This should make it work more or less correctly with finite water.

also, fix a bug where a blocked spigot still looks like its pouring, and check
for blockages on every step.
2013-05-10 15:59:56 -04:00
Vanessa Ezekowitz 8f12d18b1d fix a bug where spigot pouring would replace the node under it with
water.  Also clean up spigot logic slightly.
2013-04-28 17:45:25 -04:00
Vanessa Ezekowitz 4e1ac10a5a forgot to account for facedir in spigots when I added that water stream 2013-01-14 19:55:41 -05:00
Vanessa Ezekowitz 3a7b9fa31c Added a little stub to the bottom of the spigot, showing the water texture,
so that when a spigot is flowing, it looks like water is actually pouring out
of it.
2013-01-14 14:34:55 -05:00
Vanessa Ezekowitz 0a1f90c391 Made pipes able to carry water!
It was just a minor logic error resulting from moving the water flowing code
into it's own file when I originally imported it.  Many thanks to Mauvebic for
writing it!
2013-01-04 01:34:25 -05:00
Vanessa Ezekowitz 88bc800ccb minor spacing tweaks, nothing functional 2013-01-04 01:12:39 -05:00
Vanessa Ezekowitz 6419ecb117 First stage of integrating Mauvebic's water flowing code. This is experimental
and doesn't move water yet - but at least it doesn't break anything :-)
2013-01-04 00:15:23 -05:00