Commit Graph

94 Commits

Author SHA1 Message Date
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
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
7289bfcfba Split pipe and tube autorouting functions into separate files. 2013-11-25 23:55:52 -05:00
7887d28e08 make worldpath and modpath pipeworks-namespace-specific and global 2013-10-29 14:08:23 -04:00
6eaf8eac62 FiX CYCLIC option being ignored. 2013-10-21 11:15:12 +02:00
79897c8fe6 Better deployer and node breaker mesecons rules. 2013-10-06 10:35:53 +02:00
6323a923e0 always read default_settings.txt before reading the world-folder's settings file
also close the file after copying.
2013-08-05 04:36:50 -04:00
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
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
7d8be5ddf0 got rid of oldpipes.lua 2013-07-04 02:58:44 -04:00
17ee4f6aab Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
89be094a1e Add option to disable cyclic behaviour 2013-06-28 15:16:28 +02:00
e728df46df Super duper pipeworks deployer and node breaker updates. 2013-06-23 19:15:31 -04:00
47b6c25abe minor tweaks to various dofile() calls, moved one from tubes.lua to init.lua 2013-06-22 17:51:57 -04:00
5bf21e553e more minor lighting/texture tweaks 2013-06-09 19:19:28 -04:00
b68a66ef4a Add vertical version of airtight pipe entry
if automatically rotates to connect to the thing you point at, if a connection
is possible.
2013-06-08 01:00:49 -04:00
65c4ffde7b Add inventory images for pipes. 2013-03-18 23:00:00 -03:00
aaacd37c6f Removed node breaker and deployer. These belong in technic, not pipeworks.
Added aliases to avoid unknown nodes/map breakage.  Old code has been moved
into pipeworks/attic/
2013-01-31 18:49:47 -05:00
fe0fd68601 Changed the name of some textures for naming conventions. Added deployer and node breaker (most of the code is from Technic, the textures too). 2013-01-20 17:53:17 +01:00
b3fcf6734f Added autocrafter.
Fixed a bug where items in mese tubes disappeared whan placing or removing a tube next to it.
2013-01-19 15:37:27 +01:00
109729cfb2 Added Nore's item transport mod and integrated it into pipeworks
Items can now flow from one chest (or Nore's filter object) to another via the
pneumatic tubes!  Thanks to Nore and RealBadAngel for the code.

Note that this mod has to redefine the default chests and furnaces (see
compat.lua) in order to add some new group definitions so that tubes can
appear to connect to these objects.
2013-01-13 21:45:03 -05:00
14102d7c3a made storage tanks connect from top/bottom, made storage tank and pipe
textures use the ^ combine operator so they can show the actual liquid going
through the pipes/tanks.
2013-01-05 21:14:09 -05:00
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
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
4eaad14048 Minor tweak to fix missing smooth bend on some T-junctions. 2013-01-01 17:51:55 -05:00
1a562d23a8 added a "sealed" entry/exit panel (really just a horizontal pipe with a metal
panel overlayed into the middle).   Also, tweaked pipes to always drop the
empty ones.
2013-01-01 16:30:21 -05:00
6cca6f9857 revamped pumps so that now they should sit in/on liquid and be connected only
from the top, relegated grates to decorational-only, added outlet spigot.  Got
rid of a few obsolete textures.  Got rid of that whole _x and _z naming thing,
now all directional devices (pumps, valves, spigots, tanks) use facedir.
Valves, spigots no longer auto-rotate to find nearby pipes.
2013-01-01 16:04:05 -05:00
c47d6b02df Added crafting recipes for various objects, with options: If homedecor is
installed, use the plastic sheeting therein.  If not, we define it manually.
If the Technic mod is installed, don't define any recipes at all.  Also removed
the extra "loaded!" messages and tweaked the default pipe alias to point to
something that is actually visible :-)
2012-09-02 12:55:14 -04:00
4a834d17b2 Added pneumatic tubes with their own autoplace code (does not connect to
steel pipes).  Fixed a recursion bug that sometimes caused a stack overflow.
2012-08-24 13:39:29 -04:00
83f853d2ae old pipes were overridind the pipeworks:pipe defintion that belongs with the
new pipes.
2012-08-24 10:31:18 -04:00
50522aeae9 reorganized code a bit to allow for upcoming rules changes. 2012-08-21 14:32:44 -04:00
23515f9d3e Update init.lua 2012-08-19 10:48:34 +03:00
a6641f0d20 Pumps and valves now fully participate in the auto-rotate/auto-route process.
These devices can only be connected to horizontal pipes or to each other.  Note
that only the device being placed and the pipes around it will adapt; if you
have a valve and pump next to one another and they won't connect, put a piece
of pipe at one end to show the auto-rotator which way they should go.  Removal
of a pipe or device will not change the orientation of surrounding devices.
2012-08-19 01:56:30 -04:00
f574235d1d better pipe end textures, made 'cut' ends also display them. 2012-08-18 22:12:29 -04:00
f06a6d9b65 minor wording tweak to comments at top. 2012-08-18 21:26:07 -04:00
9e6f469cde Re-enabled old pipes by default. Only horizontal pipe appears in creative
inventory now (for both old and new), as well as "off" valve and "off" pump.
2012-08-18 21:24:30 -04:00
4ccb053e03 Total rewrite again. All pipes are now nice and round-looking, and they auto-connect! Also added temporary nodes for pump
and valve (each with an on/off setting - punch to change).  No crafting recipes yet and the pipes still don't do anything
useful yet.  Soon.
2012-08-18 08:46:17 -04:00
16f50586ba Made the empty/loaded indication at the capped end more prominent. 2012-08-05 23:23:05 -04:00
7fc2cc1af8 changed the default pipe segment to the aforementioned "short centered"
segment, renamed it to just "pipeworks:pipe" (and pipe_loaded), added
empty/loaded indicator images to the capped ends, removed some redundant
comments
2012-08-05 23:11:50 -04:00
dad4ba3df2 Added -X, +X, -Y, +Y, -Z, +Z capped stubs and a short centered horizontal
segment.
2012-08-05 22:52:18 -04:00
151b7f023f rewrote pipeworks to use loops and tables to create the nodes. Requires far
less code now.
2012-08-05 21:29:59 -04:00
b3765b0df6 disable debug by default 2012-07-31 11:44:23 -04:00
b5b7e64f40 Fixed pipeworks filenames, tweaked init.lua to match. Whole mode is now
"pipeworks" as it shoulda been, instead of just "pipes".
2012-07-18 13:54:11 -04:00
104bbf67dd first commit 2012-07-12 17:52:35 -04:00