zefram/minetest/pipeworks.git
10 years agoFix conversion
Novatux [Tue, 31 Dec 2013 11:29:31 +0000 (12:29 +0100)]
Fix conversion

10 years agoLast forgotten spaces
Novatux [Tue, 31 Dec 2013 10:03:29 +0000 (11:03 +0100)]
Last forgotten spaces

10 years agoRemove old code
Novatux [Tue, 31 Dec 2013 09:53:14 +0000 (10:53 +0100)]
Remove old code

10 years agoAdd a few comments
Novatux [Tue, 31 Dec 2013 09:32:53 +0000 (10:32 +0100)]
Add a few comments

10 years agoFix some more coding style, fix a crash, get rid of a conversion table (only used...
Novatux [Tue, 31 Dec 2013 09:26:25 +0000 (10:26 +0100)]
Fix some more coding style, fix a crash, get rid of a conversion table (only used for the table generation)

10 years agoFix indentation and coding style
Novatux [Tue, 31 Dec 2013 09:12:25 +0000 (10:12 +0100)]
Fix indentation and coding style

10 years agoIndent correctly the function
Novatux [Tue, 31 Dec 2013 08:08:18 +0000 (09:08 +0100)]
Indent correctly the function

10 years agoAdd 6d tubes, cleanup code a bit
Novatux [Tue, 31 Dec 2013 06:36:04 +0000 (07:36 +0100)]
Add 6d tubes, cleanup code a bit

10 years agomake crossing tube wield texture look a little better
Vanessa Ezekowitz [Tue, 31 Dec 2013 11:57:31 +0000 (06:57 -0500)]
make crossing tube wield texture look a little better
(I kinda half-assed it initially ;-) )

10 years agoadd crossing tube textures
Vanessa Ezekowitz [Tue, 31 Dec 2013 11:50:34 +0000 (06:50 -0500)]
add crossing tube textures
(to be used shortly)

10 years agofix copy&paste error
Vanessa Ezekowitz [Tue, 24 Dec 2013 14:53:36 +0000 (09:53 -0500)]
fix copy&paste error

10 years agook, on second thought, allow tubes to connect to the fronts. Also, define
Vanessa Ezekowitz [Tue, 24 Dec 2013 14:51:38 +0000 (09:51 -0500)]
ok, on second thought, allow tubes to connect to the fronts.  Also, define
top-side overlays for furnaces.

10 years agoFix glitch in tube autorouter
Vanessa Ezekowitz [Tue, 24 Dec 2013 14:11:26 +0000 (09:11 -0500)]
Fix glitch in tube autorouter
(brain-o in how I was handling unknown/bad nodes being passed to it.  this
works better and lets the code do its job properly).

10 years agochests, furnaces are not supposed to connect to tubes from the front sides
Vanessa Ezekowitz [Tue, 24 Dec 2013 13:44:19 +0000 (08:44 -0500)]
chests, furnaces are not supposed to connect to tubes from the front sides

10 years agofix filters and mese filters not working correctly
Novatux [Tue, 24 Dec 2013 13:29:33 +0000 (08:29 -0500)]
fix filters and mese filters not working correctly

10 years agoA few more fixes (spamming the commit log again...)
Novatux [Sat, 21 Dec 2013 10:11:36 +0000 (11:11 +0100)]
A few more fixes (spamming the commit log again...)

10 years agoFix node breaker, use new minetest.swap_node
Novatux [Sat, 21 Dec 2013 09:24:55 +0000 (10:24 +0100)]
Fix node breaker, use new minetest.swap_node

10 years agoFix item transport code
Novatux [Sat, 21 Dec 2013 09:16:58 +0000 (10:16 +0100)]
Fix item transport code

10 years agolocal-ize a couple of variables, code style fixes
Vanessa Ezekowitz [Sat, 21 Dec 2013 08:45:45 +0000 (03:45 -0500)]
local-ize a couple of variables, code style fixes

10 years agofix a missed function name (due to being renamed)
Vanessa Ezekowitz [Sat, 21 Dec 2013 08:38:08 +0000 (03:38 -0500)]
fix a missed function name (due to being renamed)

10 years agolocal-ize a couple more variables
Vanessa Ezekowitz [Sat, 21 Dec 2013 08:35:39 +0000 (03:35 -0500)]
local-ize a couple more variables

10 years agomesecons_rules must be global. made so, confined to pipeworks.{} table.
Vanessa Ezekowitz [Sat, 21 Dec 2013 08:33:06 +0000 (03:33 -0500)]
mesecons_rules must be global.  made so, confined to pipeworks.{} table.

10 years agorules_all has to be global. made it so, confined to pipeworks.{} table
Vanessa Ezekowitz [Sat, 21 Dec 2013 08:30:07 +0000 (03:30 -0500)]
rules_all has to be global.  made it so, confined to pipeworks.{} table

10 years agolocal-ize a couple of variables
Vanessa Ezekowitz [Sat, 21 Dec 2013 08:26:47 +0000 (03:26 -0500)]
local-ize a couple of variables

10 years agofix small typos (False -> false)
Vanessa Ezekowitz [Sat, 21 Dec 2013 08:26:26 +0000 (03:26 -0500)]
fix small typos (False -> false)

10 years agoA few fixes
Novatux [Sat, 21 Dec 2013 07:46:55 +0000 (08:46 +0100)]
A few fixes

10 years agoget rid of a redundant comment
Vanessa Ezekowitz [Wed, 18 Dec 2013 01:38:30 +0000 (20:38 -0500)]
get rid of a redundant comment

10 years agoclose the file handle after checking if the config file exists, add a comment
Vanessa Ezekowitz [Wed, 18 Dec 2013 01:36:21 +0000 (20:36 -0500)]
close the file handle after checking if the config file exists, add a comment

10 years agoremove redundant ~= nil
Vanessa Ezekowitz [Wed, 18 Dec 2013 01:28:54 +0000 (20:28 -0500)]
remove redundant ~= nil

10 years agodon't write pipeworks config file anymore. if a user needs one, they can
Vanessa Ezekowitz [Wed, 18 Dec 2013 01:27:46 +0000 (20:27 -0500)]
don't write pipeworks config file anymore.  if a user needs one, they can
create it themselves :-)

10 years agonotvel function can't be local - made global and confined to pipeworks.{}
Vanessa Ezekowitz [Sun, 15 Dec 2013 21:05:35 +0000 (16:05 -0500)]
notvel function can't be local - made global and confined to pipeworks.{}

10 years agotube_item has to be global. confined it to pipeworks.{} table.
Vanessa Ezekowitz [Sun, 15 Dec 2013 19:41:03 +0000 (14:41 -0500)]
tube_item has to be global.  confined it to pipeworks.{} table.

10 years agolocal-ize one last var
Vanessa Ezekowitz [Sun, 15 Dec 2013 11:21:39 +0000 (06:21 -0500)]
local-ize one last var

10 years agolocal-ize a few more variables
Vanessa Ezekowitz [Sun, 15 Dec 2013 11:10:03 +0000 (06:10 -0500)]
local-ize a few more variables

10 years agolocal-ize yet a few more variables
Vanessa Ezekowitz [Sun, 15 Dec 2013 10:59:31 +0000 (05:59 -0500)]
local-ize yet a few more variables

10 years agolocal-ize a few more variables and functions
Vanessa Ezekowitz [Sun, 15 Dec 2013 10:53:11 +0000 (05:53 -0500)]
local-ize a few more variables and functions

10 years agoget rid of an excess print() call
Vanessa Ezekowitz [Sun, 15 Dec 2013 10:46:39 +0000 (05:46 -0500)]
get rid of an excess print() call

10 years agolocal-ize a few more functions
Vanessa Ezekowitz [Sun, 15 Dec 2013 10:35:11 +0000 (05:35 -0500)]
local-ize a few more functions

10 years agofix incorrect variable name
Vanessa Ezekowitz [Sun, 15 Dec 2013 10:26:39 +0000 (05:26 -0500)]
fix incorrect variable name

10 years agodefault settings have to be global or pipeworks can't see them
Vanessa Ezekowitz [Sun, 15 Dec 2013 09:43:13 +0000 (04:43 -0500)]
default settings have to be global or pipeworks can't see them
(duh!)  confined them to pipeworks.{} table.

10 years agolocal-ize a few more variables, move all of the nodebox models
Vanessa Ezekowitz [Sun, 15 Dec 2013 09:35:59 +0000 (04:35 -0500)]
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.

10 years agolocal-ize pretty muchg everything that was previously global except where
Vanessa Ezekowitz [Sun, 15 Dec 2013 07:53:10 +0000 (02:53 -0500)]
local-ize pretty muchg everything that was previously global except where
stuff needs to be globally-visible.  Also, fix a bad drop on valve.

10 years agocatch a similar nil condition in the node breaker
Vanessa Ezekowitz [Wed, 11 Dec 2013 03:39:53 +0000 (22:39 -0500)]
catch a similar nil condition in the node breaker

10 years agoMore sanity checks on the nodeside() function, courtesy ShadowNinja
Vanessa Ezekowitz [Wed, 11 Dec 2013 02:39:47 +0000 (21:39 -0500)]
More sanity checks on the nodeside() function, courtesy ShadowNinja

10 years agoBetter way to catch that incoming nil, return a real value on the way out
Vanessa Ezekowitz [Wed, 11 Dec 2013 02:18:29 +0000 (21:18 -0500)]
Better way to catch that incoming nil, return a real value on the way out

10 years agoRevert "catch nil return from facedir_to_dir() in tube autoplace code"
Vanessa Ezekowitz [Wed, 11 Dec 2013 02:16:33 +0000 (21:16 -0500)]
Revert "catch nil return from facedir_to_dir() in tube autoplace code"

This reverts commit 4f9c7a43c9f1f0ab3286c755c49bd8d2951b4dc8.

10 years agocatch nil return from facedir_to_dir() in tube autoplace code
Vanessa Ezekowitz [Wed, 11 Dec 2013 02:09:38 +0000 (21:09 -0500)]
catch nil return from facedir_to_dir() in tube autoplace code

10 years agoadd "metallic" tube connection image for other mods to use
Vanessa Ezekowitz [Tue, 3 Dec 2013 20:05:52 +0000 (15:05 -0500)]
add "metallic" tube connection image for other mods to use

10 years agomake the tube connection images for furnaces/chests into overlays
Vanessa Ezekowitz [Tue, 3 Dec 2013 00:29:35 +0000 (19:29 -0500)]
make the tube connection images for furnaces/chests into overlays
also don't redefine furnace top - tubes don't connect there anyways

10 years agoPhased out old register_on_punchnode() calls in favor of per-node on_punch
Vanessa Ezekowitz [Thu, 28 Nov 2013 07:23:59 +0000 (02:23 -0500)]
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.

10 years agoRemoved code that detects technic and disables default recipes.
Vanessa Ezekowitz [Thu, 28 Nov 2013 06:20:34 +0000 (01:20 -0500)]
Removed code that detects technic and disables default recipes.
Made tubes and conductor tubes more expensive (yield 6 instead of 12).

10 years agoAdd recipes for fountainhead and one-way tube
Vanessa Ezekowitz [Wed, 27 Nov 2013 23:13:35 +0000 (18:13 -0500)]
Add recipes for fountainhead and one-way tube

11 years agolimit tube autoconnect checking to only run if tube.connect_sides
Vanessa Ezekowitz [Tue, 26 Nov 2013 05:46:36 +0000 (00:46 -0500)]
limit tube autoconnect checking to only run if tube.connect_sides
is defined for a particular node (rather than the whole tube table).

Also, tweak wording of an error message to account for line
numbering changes.

11 years agoMake the tube_connects={} method work properly for technic devices.
Vanessa Ezekowitz [Tue, 26 Nov 2013 05:23:14 +0000 (00:23 -0500)]
Make the tube_connects={} method work properly for technic devices.

Also phase out "old new" API, leaving only the "tube_connects={}" method,
as nothing in technic or pipeworks uses it.

Fix a few more places where minetest.facedir_to_dir() was duplicated, since
that code is part of Minetest 0.4.8.

11 years agoget rid of some extraneous print statements
Vanessa Ezekowitz [Tue, 26 Nov 2013 04:58:51 +0000 (23:58 -0500)]
get rid of some extraneous print statements

11 years agoSplit pipe and tube autorouting functions into separate files.
Vanessa Ezekowitz [Tue, 26 Nov 2013 04:55:52 +0000 (23:55 -0500)]
Split pipe and tube autorouting functions into separate files.

11 years agofix bad lighting on one-way tube
Vanessa Ezekowitz [Tue, 19 Nov 2013 18:10:35 +0000 (13:10 -0500)]
fix bad lighting on one-way tube

11 years agostop leaking clone_node() function outside of pipeworks namespace
Vanessa Ezekowitz [Thu, 14 Nov 2013 23:54:50 +0000 (18:54 -0500)]
stop leaking clone_node() function outside of pipeworks namespace

11 years agofix non-working water flow sensor, add proper side texture for it
Vanessa Ezekowitz [Sat, 9 Nov 2013 18:17:56 +0000 (13:17 -0500)]
fix non-working water flow sensor, add proper side texture for it

11 years agoFix node breaker crash.
Novatux [Wed, 30 Oct 2013 07:45:29 +0000 (08:45 +0100)]
Fix node breaker crash.

11 years agoFix autocrafter not taking enough items if number of needed items of a kind > stack...
Novatux [Wed, 30 Oct 2013 07:33:09 +0000 (08:33 +0100)]
Fix autocrafter not taking enough items if number of needed items of a kind > stack max for that item.

11 years agomake worldpath and modpath pipeworks-namespace-specific and global
Vanessa Ezekowitz [Tue, 29 Oct 2013 18:08:23 +0000 (14:08 -0400)]
make worldpath and modpath pipeworks-namespace-specific and global

11 years agoAdd fountainhead (vertical spigot, basically).
Vanessa Ezekowitz [Mon, 28 Oct 2013 02:38:19 +0000 (22:38 -0400)]
Add fountainhead (vertical spigot, basically).

11 years agoMake nodebreaker and deployer use wood group instead of default wood
Vanessa Ezekowitz [Fri, 25 Oct 2013 01:18:40 +0000 (21:18 -0400)]
Make nodebreaker and deployer use wood group instead of default wood

11 years agoFix for player height
Novatux [Thu, 24 Oct 2013 10:49:07 +0000 (12:49 +0200)]
Fix for player height

11 years agoComplete fake player for deployer
Novatux [Thu, 24 Oct 2013 05:51:56 +0000 (07:51 +0200)]
Complete fake player for deployer

11 years agoFix crossing tube and one way tube.
Novatux [Mon, 21 Oct 2013 09:34:10 +0000 (11:34 +0200)]
Fix crossing tube and one way tube.

11 years agoFiX CYCLIC option being ignored.
Novatux [Mon, 21 Oct 2013 09:14:46 +0000 (11:14 +0200)]
FiX CYCLIC option being ignored.

11 years agoMerge branch 'master' of github.com:VanessaE/pipeworks
Vanessa Ezekowitz [Mon, 21 Oct 2013 01:09:53 +0000 (21:09 -0400)]
Merge branch 'master' of github.com:VanessaE/pipeworks

11 years agoFurnace and chest textures now have pipeworks-specific names to allow
Vanessa Ezekowitz [Mon, 21 Oct 2013 01:08:46 +0000 (21:08 -0400)]
Furnace and chest textures now have pipeworks-specific names to allow
for texture packs to cover them.  Also, added proper top and bottom
textures for both.

11 years agoAdd one way tube
Novatux [Sat, 19 Oct 2013 13:33:49 +0000 (15:33 +0200)]
Add one way tube

11 years agoCheck for on_metadata_inventory_take
Cy [Tue, 15 Oct 2013 22:29:55 +0000 (15:29 -0700)]
Check for on_metadata_inventory_take

11 years agoMultiple updates:
Cy [Tue, 15 Oct 2013 03:45:07 +0000 (23:45 -0400)]
Multiple updates:

1)  Refactor autoplace,

There was a lot of redundant code and like a dozen unneccessary string
scans for every node next to every tube placed! I put it all into
indexed tables and loops instead of bizarre and unexplainable variable
names and copy and pasted code. There was also no support for notifying
a chest when an item has been taken from it by a filter, so I added
something for that.

I also thought it prudent to fall back on the
allow_metadata_inventory_take function should a special can_remove not
exist. In fact if can_insert doesn't exist, it calls
allow_metadata_inventory_put instead.

I also added a thing for allowing pipes to attach to nodes of other
modules, without having to hard code type all those node names into
autoplace.lua.  Basically node.tube.collects(i,param2) and i is the
direction from the pipe and param2 is the param2 of what it's pointing
at.

I also abstracted the inscrutable correlation between i and
param2 by trial and error (and the paramwand mod) into understandable
functions. There was no pipeworks namespace so I created it, and put
these functions into pipeworks.collects (as distinguished from a
        node.tube.collects function, which uses those functions)

And now it's too late to cart my old clothes to the thrift store,
dangit.

2)  My "node.tube.collects" idea might be redundant with the
node.tube.connect_sides thing, though possibly more versatile so I'll
leave it in.

3) I was using node.tube.connects and fancy functions for checking if it's
the sides or top or whatnot, and this connect_side thing came in. This
should make both my way and the way using connect_side work.

Also removed some debugging cruft

11 years agoBetter deployer and node breaker mesecons rules.
Novatux [Sun, 6 Oct 2013 08:35:53 +0000 (10:35 +0200)]
Better deployer and node breaker mesecons rules.

11 years agotweak readme to mention the correct place for the documentation
Vanessa Ezekowitz [Fri, 4 Oct 2013 19:44:07 +0000 (15:44 -0400)]
tweak readme to mention the correct place for the documentation

11 years agoMoved crafting guide to a separate branch (gh-pages)
Vanessa Ezekowitz [Fri, 4 Oct 2013 19:34:06 +0000 (15:34 -0400)]
Moved crafting guide to a separate branch (gh-pages)

11 years agofix incorrect usage of after_place_node
Vanessa Ezekowitz [Fri, 4 Oct 2013 18:36:17 +0000 (14:36 -0400)]
fix incorrect usage of after_place_node

11 years agosimplify autocrafterCache, remove cache entry on node dig and disable debug output
chlue [Fri, 4 Oct 2013 15:56:03 +0000 (17:56 +0200)]
simplify autocrafterCache, remove cache entry on node dig and disable debug output

11 years agoclean up formatting a bit
Vanessa Ezekowitz [Fri, 4 Oct 2013 15:03:27 +0000 (11:03 -0400)]
clean up formatting a bit

11 years agoMade autocrafter take less CPU/time
chlue [Fri, 4 Oct 2013 14:41:23 +0000 (10:41 -0400)]
Made autocrafter take less CPU/time

11 years agoFix hacky_swap_node to not repeatedly swap the same node in over and over
Pilcrow [Fri, 13 Sep 2013 15:09:57 +0000 (11:09 -0400)]
Fix hacky_swap_node to not repeatedly swap the same node in over and over

11 years agoAdd note about teleporter tubes reserved channels.
Uberi [Mon, 12 Aug 2013 22:51:56 +0000 (18:51 -0400)]
Add note about teleporter tubes reserved channels.

11 years agofix nil references in flowing_logic.lua
Vanessa Ezekowitz [Thu, 8 Aug 2013 02:16:47 +0000 (22:16 -0400)]
fix nil references in flowing_logic.lua

11 years agoadded reserved teleport channels
hdastwb [Tue, 6 Aug 2013 17:26:05 +0000 (13:26 -0400)]
added reserved teleport channels

11 years agoalways read default_settings.txt before reading the world-folder's settings file
Vanessa Ezekowitz [Mon, 5 Aug 2013 08:36:50 +0000 (04:36 -0400)]
always read default_settings.txt before reading the world-folder's settings file

also close the file after copying.

11 years agoMerge pull request #49 from hdastwb/notechalias
VanessaE [Thu, 25 Jul 2013 23:00:02 +0000 (16:00 -0700)]
Merge pull request #49 from hdastwb/notechalias

remove aliases to the technic deployers/node breakers

11 years agoremoved aliases to the technic deployers/node breakers
hdastwb [Thu, 25 Jul 2013 22:53:51 +0000 (18:53 -0400)]
removed aliases to the technic deployers/node breakers

11 years agooops, technic doesn't need to load first, it depends on pipeworks! duh
Vanessa Ezekowitz [Mon, 22 Jul 2013 05:07:42 +0000 (01:07 -0400)]
oops, technic doesn't need to load first, it depends on pipeworks! duh

11 years agofix the check for technic for craft recipes, use optional depends to
Vanessa Ezekowitz [Mon, 22 Jul 2013 05:02:29 +0000 (01:02 -0400)]
fix the check for technic for craft recipes, use optional depends to
make sure it loads first

11 years agoadded support for 6d facedir for all tube components, changed autoplace.lua to follow...
hdastwb [Fri, 19 Jul 2013 05:36:55 +0000 (01:36 -0400)]
added support for 6d facedir for all tube components, changed autoplace.lua to follow tubes.connect_sides rather than having each component coded individually, and added support for placing deployers and node breakers facing vertically

11 years agoadd license file
Vanessa Ezekowitz [Thu, 18 Jul 2013 16:25:05 +0000 (12:25 -0400)]
add license file

11 years agofixed a nil reference (filter code didn't check for unknown nodes)
Vanessa Ezekowitz [Mon, 15 Jul 2013 22:50:28 +0000 (18:50 -0400)]
fixed a nil reference (filter code didn't check for unknown nodes)

11 years agoadded ability to disable most components via config file in world folder
Vanessa Ezekowitz [Sun, 14 Jul 2013 02:39:25 +0000 (22:39 -0400)]
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

11 years agoMerge pull request #47 from hdastwb/mesesandtube
VanessaE [Sun, 14 Jul 2013 01:26:56 +0000 (18:26 -0700)]
Merge pull request #47 from hdastwb/mesesandtube

MESE Sand Tubes

11 years agoadded more powerful sand tubes (MESE sand tubes), along with associated crafts, textu...
hdastwb [Mon, 8 Jul 2013 16:06:47 +0000 (12:06 -0400)]
added more powerful sand tubes (MESE sand tubes), along with associated crafts, textures, and documentation

11 years agoMerge pull request #46 from hdastwb/lockedchest
VanessaE [Wed, 10 Jul 2013 03:13:50 +0000 (20:13 -0700)]
Merge pull request #46 from hdastwb/lockedchest

Locked chest documentation

11 years agoMerge pull request #45 from hdastwb/lockedchest
VanessaE [Tue, 9 Jul 2013 03:40:13 +0000 (20:40 -0700)]
Merge pull request #45 from hdastwb/lockedchest

Locked chest integration

11 years agoadded locked chests in Overview.html
hdastwb [Tue, 9 Jul 2013 00:54:05 +0000 (20:54 -0400)]
added locked chests in Overview.html

11 years agoadded locked chests to autoplace.lua
hdastwb [Tue, 9 Jul 2013 00:29:53 +0000 (20:29 -0400)]
added locked chests to autoplace.lua

11 years agoadded locked chests in compat.lua
hdastwb [Mon, 8 Jul 2013 15:58:27 +0000 (11:58 -0400)]
added locked chests in compat.lua