1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-11-05 01:50:19 +01:00
Commit Graph

887 Commits

Author SHA1 Message Date
Slava Zanko
c57d9a9d18 Add "Tags Sorting Pneumatic Tube Segment".
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2024-02-04 23:39:31 +01:00
Slava Zanko
8bc1523fcd Add tag support into LuaTube.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2024-02-04 23:39:31 +01:00
Slava Zanko
7607fff26e Add tags support into Digiline injector.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2024-02-04 21:15:47 +01:00
Slava Zanko
cd64c0af68 Add tags support into Itemwise and Stackwise injectors.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2024-02-04 20:33:03 +01:00
Slava Zanko
305c6eead0 Add tags support.
- add setting 'enable_tag_support';
- add setting 'pipeworks_item_tag_name_limit' (default 30)
- add functions for get and set tag into item stack.
- add tags cleanup while item dropped in a world or placed in some inventory.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2024-02-04 20:22:25 +01:00
Buckaroo Banzai
c87522c526
export pipeworks.tptube.remove_tube (#105)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2024-01-28 16:08:24 -05:00
OgelGames
6d824a318a
Tube repair fixes (#102)
* restart vacuum tube node timers after repair

* clear metadata value after repair
2024-01-14 10:10:24 +01:00
OgelGames
04df87a6c2 Delete .editorconfig 2024-01-14 14:29:55 +11: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
Buckaroo Banzai
578e45257b
code and registrations cleanup (#101)
* code and registrations cleanup

* don't expose materials to global env

---------

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2024-01-13 20:40:01 -05:00
OgelGames
dd6950f7b0
bump min_minetest_version to 5.5.0 for vector.zero()
closes #100
2024-01-05 16:11:23 +11:00
fluxionary
5b0dceb44a
add dummy implementations of all current API calls to fake player (#98)
* add dummy implementations of all current API calls to fake player

* fakeplayer: move all stateless API into a metatable

* correctly set metatable
2023-12-29 14:01:08 -05:00
OgelGames
7c74d0bdf3 replace global_exists with get_modpath
related: #97
2023-11-21 14:35:51 +11:00
OgelGames
dc77d1056c fix escaping of ; in teleport tube formspec
closes #93 #94
2023-11-16 14:02:10 +11:00
debagos
ab0713d9a5
Fix item duplication bug with broken tubes. (#92)
It was possible to drag items from broken sorting-/mese-tubes.
2023-11-11 23:06:43 +01:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
b6ae50be87
fix MCL craft, chest item id is "mcl_chests:chest" (#89) 2023-10-09 18:22:14 -04:00
savilli
e7cba4071b
Fix crash if add_entity fails (#88) 2023-09-16 18:19:03 +02:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
d90c17edee
MineClone smoker and blast furnace support (#85) 2023-09-06 15:33:41 +02:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
4f55610df5
fix MCL crafts (#86) 2023-09-06 12:01:35 +02:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
500cce8668
MineClone containers support (#81)
* mcl_barrels compat

* open barrel is not in creative inv

* fix barrel drop content after dig

* fix barrel local var

* mcl_furnaces compat

* optional depends mcl_barrels and mcl_furnaces

* fixing luacheck

* .luacheckrc update

* renamed files to use _

* renamed files to init.lua

* format improvement
2023-09-02 15:17:14 -04:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
cb3e7757fc
Mineclone dig times balanced (#84)
* mineclone dig times balanced

* fix pickaxey dupe
2023-09-01 15:00:50 +02:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
7f93e8aa0a
MineClone formspec compat (#82)
* MineClone list backgrounds compat

* mineclone get inv func
2023-08-24 20:50:49 -04:00
Buckaroo Banzai
ebe2331619
remove facedir debugging logs (#73)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2023-06-21 21:22:36 +02:00
OgelGames
2f97a367f3
Fix autocrafter destroying replacement items (#72) 2023-06-21 14:49:34 +10:00
Luke aka SwissalpS
9395013cde Support setting teleport tube can_receive by digilines (#68)
* allow setting can_receive flag by digilines

basically also allows sending tables to change
both or either the tp-channel and receive toggle

* apply suggestions

Co-authored-by: OgelGames <olliverdc28@gmail.com>

---------

Co-authored-by: OgelGames <olliverdc28@gmail.com>
2023-05-28 12:54:05 +10:00
OgelGames
2c880a3843 cache teleport tube logging setting
this gets checked every time an item is teleported
2023-05-19 14:17:04 +10:00
fluxionary
56bcc7dbb7
log when items teleport through tubes (#66)
* log when items teleport through tubes

* put teleport tube logging bethind a setting

* narrow scope of some variables
2023-05-18 19:49:12 +02:00
Awkanimus
bd5a42356b
Use sane default i3 inventory settings when missing (#57)
- i3.settings.hotbar_len and i3.settings.inv_size were removed
   in commit 75fddf7 because they are now per-player settings
 - This just uses sane defaults when the settings are not
   present to avoid a few nils and allow the game to continue
2023-01-26 15:44:41 -05:00
wsor4035
b0b675f715
Fix deprecated call to player:get_look_pitch()
Fixes #53
2023-01-09 13:51:49 +11:00
unknown
855937aec3 make all nodes diggable in mcl* survival mode 2022-12-02 15:54:21 -05:00
unknown
fc0d4990b0 make minor bugfixes to restore compat with mineclone2 2022-11-20 19:47:14 -05:00
OgelGames
5e9bfa049b
Add digilines to teleport tube and refactor code (#49) 2022-11-11 23:20:28 +11:00
OgelGames
5345fe7af3
Prevent vacuum tubes breaking themselves and refactor code (#51)
also bumps `min_minetest_version` to 5.4.0
2022-11-11 23:14:08 +11:00
Jude Melton-Houghton
8c251800db
Store teleport tube DB more compactly (#45) 2022-09-21 17:53:42 -04:00
unknown
b190d29d21 fix https://github.com/mt-mods/pipeworks/issues/44 2022-09-19 20:21:34 -04:00
fluxionary
e45eca76e1
check if machine is protected before trying to break/place a node (#43)
* check if target is protected before trying to break/place a node, so as not to trigger protection violations

* check whether the machine is protected, not the target
2022-09-17 19:03:55 -04:00
fluxionary
65cea1e33c
check if target is protected before trying to break/place a node, so as not to trigger protection violations (#42) 2022-09-16 19:16:58 -04:00
Luke aka SwissalpS
b6c02ac8de
typo fix 2022-08-16 00:30:42 +02:00
wsor4035
54243764e0
prevent tubes from connecting to the front of furnaces to match chests 2022-08-13 23:59:46 -04:00
Jude Melton-Houghton
1823690dad
Store teleport tube DB in mod storage (#40)
* Store teleport tube DB in mod storage

* Prevent overwriting of tube DB backup file

* Remove backup code

* Slightly improve storage reading code

* Log DB migration to mod storage

* Add migration note in README

* Improve pipeworks.logger
2022-08-13 16:22:53 -04:00
SX
75894355d4
Use on_repair when repairing tube (#37)
* Use on_repair when repairing tube

* Use tube.on_repair

* Verify was_node registration
2022-06-23 18:06:01 +02:00
Jude Melton-Houghton
7b15bdbd1f
Add configurable globalstep interval (#32)
* Add configurable globalstep interval

* Add warning for high globalstep interval

* Lower maximum globalstep interval

With no accelerator tubes, 0.8 can handle item movement speeds even
with lag.
2022-05-24 19:13:41 -04:00
OgelGames
90425fde95 fix broken shift-clicking in wielder formspec
fixes #34
2022-05-23 02:28:21 +10:00
Jude Melton-Houghton
1349ff8dd8
Return early from on_step (#33) 2022-05-15 10:58:35 -04:00
unknown
3b31b6f9c0 fix https://github.com/mt-mods/pipeworks/issues/31 2022-05-13 22:10:40 -04:00
sfence
4fce320d9c
Better Hades Revisited support (#30)
* Fix spaces vs tabs in crafts.lua

* Fix recipes, add telepoter device for teleporter tube recipe.

* Override chests and furnaces in Hades as well.
2022-05-12 22:52:17 -04:00
Jude Melton-Houghton
55ded7e569
Make tubes opaque when entities are not used (#29)
* Make tubes opaque when entities are not used
2022-05-11 18:41:28 -04:00
wsor4035
e3d94cb3a8
fix digiline formspec spacing (#27) 2022-05-07 17:04:06 -04:00
Jude Melton-Houghton
97903327a5
Add option to forego real entities (#26) 2022-05-06 11:25:02 -04:00
wsor4035
37eef73695
add I3 support + update to formspecs v2 (#22)
* add fs helper inv function

* add fs helper prepends function

* add trash can, vacuum tube, teleport tube. wielders, autocrafter, mesetube, injectors

* fixed missed texture to make game agnostic

* fix luacheck
2022-04-16 14:51:59 -04:00