1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-28 03:40:25 +01:00
Commit Graph

18 Commits

Author SHA1 Message Date
Luke aka SwissalpS
c7b153f1ef
Is ground content (#110)
* trashcan isn't ground content

* pipes aren't ground content

* auto tree tap isn't ground content

* filter-injectors aren't ground content

* devices aren't ground content

also some whitespace indentation fixes

* is_ground_content

* autocrafter isn't ground content

* tubes aren't ground content

* pane_embedded_tube isn't ground content

* embedded_tube isn't ground content

* routing tubes aren't ground content

* whitespace fix indentation
2024-02-26 18:44:40 -05:00
Luke aka SwissalpS
360ed9bdde
Autocrafter groups support (#74)
* Add support for recipes with groups to autocrafter

* fix autocrafter replacements

* remove unnecessary check and move some code

* reorder and change back var name

* only whitespace changes

* reuse hash that is asigned to variable anyway

* add get_matching_craft

function that looks for the best matching recipe according to what user
put in recipe inventory

some crafts use groups in multiple recipes

* return right away if there is a chached craft

gives us more horizontal space to work with

* indentation adjusting

* use get_matching_craft to get best craft

this line was buggy anyhow

* new craft format: decremented_input

craft.decremented_input now only holds the items. Extra parameters are
dropped

* bugfix: when item has no groups

"" and unknown items have no def and thus no groups

* add function has_room_for_output

moving the output space calculation into its own function
helps keep autocraft() short and overseeable

* use has_room_for_output

* remove double-check of available materials

* add warning to ensure double-check was not needed

* rebuild cache whenever recipe inv changes

no need to check if still current, this only happens when user is
interacting and can only be better to do so.
Otherwise we would have to check groups etc. again just to check, so
might as well reset cache.

* remove unused line

* use minetest.get_item_group()

* whitespace cleanup

make code easier to read and give it a more
"thoughtthrough" look than the "smash it in to make it work" look it has
had.

(I'm holding back, there would be more to do overall through this mod)

* add .editorconfig

this should also help keep consistency throughout this mod

* changelog updated

at least the most recent more important ones

* whitespace changelog (trailing spaces)

---------

Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: OgelGames <olliverdc28@gmail.com>
Co-authored-by: wsor4035 <24964441+wsor4035@users.noreply.github.com>
2024-01-13 20:41:28 -05:00
thetaepsilon-gamedev
4d1c8d5529 changelog: add entry for pressure logic directionality work 2017-10-19 13:46:30 +01:00
thetaepsilon-gamedev
fa4817136c changelog.txt: add entry for node breaker work 2017-10-14 21:48:44 +01:00
thetaepsilon-gamedev
467907602b changelog.txt: back entries for pressure_logic work 2017-10-08 19:22:07 +01:00
thetaepsilon-gamedev
ca4837f1c6 changelog.txt: back-entries for new flow logic work 2017-09-30 21:27:50 +01:00
Vanessa Ezekowitz
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
Vanessa Ezekowitz
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
Vanessa Ezekowitz
4597b1b59a Added "expansion tank" that appears if the user stacks tanks upwards.
(Downwards is not checked).
2012-08-22 09:56:45 -04:00
Vanessa Ezekowitz
70ea341bf5 Extended storage tank to show fill level in 10% steps (0% to 100%). 2012-08-22 08:24:42 -04:00
Vanessa Ezekowitz
a66d9a8564 Added outlet grate, made it participate in autoplace algorithm. 2012-08-22 03:43:38 -04:00
Vanessa Ezekowitz
bb168e75e4 made storage tanks' upper/lower fittings and intake grate fitting participate
in pipe autoplace algorithm
2012-08-21 14:49:17 -04:00
Vanessa Ezekowitz
50522aeae9 reorganized code a bit to allow for upcoming rules changes. 2012-08-21 14:32:44 -04:00
Vanessa Ezekowitz
564abfe45a Made storage tank participate in autoplace algorithm. Tuned API a
little to allow for more flexible placement.
2012-08-21 13:52:25 -04:00
Vanessa Ezekowitz
c51b86831a changelog, readme tweaks. 2012-08-19 02:06:46 -04:00
Vanessa Ezekowitz
01e02574e4 changelog 2012-08-18 08:47:58 -04:00
Vanessa Ezekowitz
e388ab5b5c re-arrange recent changelog entry to be easier to read. 2012-08-06 18:26:32 -04:00
Vanessa Ezekowitz
1ca1200136 moved changelog from forum post into separate file. 2012-08-06 18:18:50 -04:00