summaryrefslogtreecommitdiff
path: root/item_transport.lua
AgeCommit message (Collapse)Author
2013-12-24fix filters and mese filters not working correctlyNovatux
2013-12-21Fix item transport codeNovatux
2013-12-21A few fixesNovatux
2013-12-15notvel function can't be local - made global and confined to pipeworks.{}Vanessa Ezekowitz
2013-12-15tube_item has to be global. confined it to pipeworks.{} table.Vanessa Ezekowitz
2013-12-15local-ize a few more variablesVanessa Ezekowitz
2013-12-15local-ize a few more variables and functionsVanessa Ezekowitz
2013-12-15local-ize a few more functionsVanessa Ezekowitz
2013-12-15default settings have to be global or pipeworks can't see themVanessa Ezekowitz
(duh!) confined them to pipeworks.{} table.
2013-12-15local-ize pretty muchg everything that was previously global except whereVanessa Ezekowitz
stuff needs to be globally-visible. Also, fix a bad drop on valve.
2013-11-26Make the tube_connects={} method work properly for technic devices.Vanessa Ezekowitz
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.
2013-10-29make worldpath and modpath pipeworks-namespace-specific and globalVanessa Ezekowitz
2013-10-21Fix crossing tube and one way tube.Novatux
2013-10-15Check for on_metadata_inventory_takeCy
2013-10-14Multiple updates:Cy
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
2013-07-19added support for 6d facedir for all tube components, changed autoplace.lua ↵hdastwb
to follow tubes.connect_sides rather than having each component coded individually, and added support for placing deployers and node breakers facing vertically
2013-07-15fixed a nil reference (filter code didn't check for unknown nodes)Vanessa Ezekowitz
2013-06-30Phased out all deprecated minetest.env:* uses in favor of minetest.*Vanessa Ezekowitz
2013-06-28Add option to disable cyclic behaviourNovatux
2013-06-23rewrote autoplacement code to make it more aware of filters,Vanessa Ezekowitz
autocrafter, nodebreaker, deployer, and made sure each item will only initiate a connection to those sides which can accept such. Fixed various autorouting bugs as I ran across them. Autorouting for various devices is now: filters: left and right sides only nodebreaker, deployer: back only autocrafter: all six sides chests: top, bottom, left, right, back (not front) furnace: bottom, left, right, back (not the top or front)
2013-06-21workaround for transported items sometimes just appearing out of nowhereVanessa Ezekowitz
but not being diggable. Made them have a really tiny collision box so they can be pointed at if carefully done
2013-06-05Fix crash sometimes with tubesNovatux
2013-04-03retouched the formspec of the filter and mese-filterbas080
2013-04-01Fix tube connection to filtersAnthony
Tubes did not previously connect to filters when the filters were placed after the tube.
2013-01-28Added mese filter (takes full stack).Novatux
2013-01-20Changed the name of some textures for naming conventions. Added deployer and ↵Novatux
node breaker (most of the code is from Technic, the textures too).
2013-01-20Added chests and furnaces autoconnect to tubes.Novatux
Fixed a bug where autocrafter could bbe used to clone items. Removed test code.
2013-01-19Changed mese tubes: you can now choose if items should not go in a direction.Novatux
2013-01-19Fixed a bug where items were not moved after teleport tube when they went to ↵Novatux
the same direction.
2013-01-19Added accelrator and teleport pipesNovatux
2013-01-16Added a function to register tubes.Novatux
Added the mese pipe.
2013-01-14Updated the last version of item_transportNovatux
2013-01-13Added Nore's item transport mod and integrated it into pipeworksVanessa Ezekowitz
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.