Suggest mod: Metatool (for Luatool item) #2735

Open
opened 2022-09-21 04:41:36 +00:00 by niceride · 15 comments

Suggest item Luatool from Metatool mod see:

https://content.minetest.net/packages/-SX-/metatool/

Luatool functionality is requested often in chat for the short time I've been playing YL, it shows the contents of mem for a lua controller and is low-risk to add. Other parts of Metatool mod are known to have unintended side-effects but there is an active maintainer that responds quickly to bug reports so would suggest caution. Does Luatool need to be separated out from Technics dependency?

Suggest item Luatool from Metatool mod see: https://content.minetest.net/packages/-SX-/metatool/ Luatool functionality is requested often in chat for the short time I've been playing YL, it shows the contents of mem for a lua controller and is low-risk to add. Other parts of Metatool mod are known to have unintended side-effects but there is an active maintainer that responds quickly to bug reports so would suggest caution. Does Luatool need to be separated out from Technics dependency?
flux added the
1. kind/enhancement
label 2022-09-21 15:21:05 +00:00
Member

the luatool and tube_tool seem useful, the other things not so much.

the luatool and tube_tool seem useful, the other things not so much.
Author

Luatool allows to view the mem contents of a Lua controller. This helps a lot for learning and further writing lua controllers that operate as intended. For example:

if event.type=="digiline" then
  mem=event
end

you can view the contents of mem on that lua controller to see the full message with all parameters, even if the documentation is not easy to understand this removes the guesswork and confusion about writing for luacontroller.

Luatool allows to view the mem contents of a Lua controller. This helps a lot for learning and further writing lua controllers that operate as intended. For example: ``` if event.type=="digiline" then mem=event end ``` you can view the contents of mem on that lua controller to see the full message with all parameters, even if the documentation is not easy to understand this removes the guesswork and confusion about writing for luacontroller.
Member

i like this tool. IMO one of the best parts of minetest is how it can help people learn what coding is, but the luacontroller is terrible for giving feedback.

i like this tool. IMO one of the best parts of minetest is how it can help people learn what coding is, but the luacontroller is terrible for giving feedback.

Let's add it to the testserver.

Let's add it to the testserver.
AliasAlreadyTaken added the
4. step/discussion
label 2022-11-23 11:55:05 +00:00
Author

Ready for this, will test when added on testserver.

Ready for this, will test when added on testserver.

It's up on the testserver

It's up on the testserver

and somehow also on the mainserver, generating an error message.
Error[Main]: loading teleport tubes for sharetool failed, update your pipeworks mod

and somehow also on the mainserver, generating an error message. `Error[Main]: loading teleport tubes for sharetool failed, update your pipeworks mod`

I can't find any evidence of metatools active on the mainserver?

I can't find any evidence of metatools active on the mainserver?

I can't find any evidence of metatools active on the mainserver?

mh strange, should have made a screenshot

> I can't find any evidence of metatools active on the mainserver? mh strange, should have made a screenshot
Member

from #4151, does the wrench actually allow copying arbitrary nodes? that sounds like a great admin item, but not something normal players should have access to. the creaplacer (creative replacer) from my replacer_redo mod does that.

from #4151, does the wrench actually allow copying arbitrary nodes? that sounds like a great admin item, but not something normal players should have access to. the creaplacer (creative replacer) from my [replacer_redo](https://github.com/fluxionary/minetest-replacer_redo) mod does that.
Member

The wrench from technic does - as far as I remember it - allow to pick up filled chests including their content. It doesn't create a copy. It just allows to carry the chest in your inventory and place it again at a diffrent place. This would also be of intrest for player bones.

It doesn't have much to do with the metatool discussed here which - I think - is intended to show metadata to the player.

The wrench from technic does - as far as I remember it - allow to *pick up filled chests including their content*. It doesn't create a copy. It just allows to carry the chest in your inventory and place it again at a diffrent place. This would also be of intrest for player bones. It doesn't have much to do with the metatool discussed here which - I think - is intended to *show* metadata to the player.
Author

Confirming I got that wrong about the Tron Wrench from metatools it is only for digtron configurations which we do not (and never will) use on Your Land.

Sokomine is correct that I was misremembering the Wrench from Technic.

So, this metatools is less interesting than I thought for Your Land. However it is vital for luacontroller debugging to be able to view the contents of mem variable, and Lua Tool from metatools allows for this in an easy and intuitive way. Unless you want some of the other functionality, it may be only useful to have an in-game item such as Lua Tool that allows to view the contents of mem on a luacontroller, eeprom, etc. I can't think of much use for the other player tools it provides, perhaps the API it provides is the most interesting component.

Confirming I got that wrong about the Tron Wrench from metatools it is only for digtron configurations which we do not (and never will) use on Your Land. Sokomine is correct that I was misremembering the Wrench from Technic. So, this metatools is less interesting than I thought for Your Land. However it is vital for luacontroller debugging to be able to view the contents of mem variable, and Lua Tool from metatools allows for this in an easy and intuitive way. Unless you want some of the other functionality, it may be only useful to have an in-game item such as Lua Tool that allows to view the contents of mem on a luacontroller, eeprom, etc. I can't think of much use for the other player tools it provides, perhaps the API it provides is the most interesting component.
Author

Summary of findings:

metatool:containertool would need to be made compatible to chesttools, for read/write of container name and colours in future chesttools update. As it is I did not find it very useful since our most common containers (chesttools) are not supported. Not sure about other possible uses like smartshop?

metatool:luatool useful for luacontroller debug, especially for touchscreen users that don't have access to their console for print statements.

metatool:magic_pen interesting and functional but where this would be useful, we do a lot of signs in Your Land but is there much that needs a tool for this? I don't know.

metatool:tronwrench is not useful on Your Land (it is meant for Dig Tron construction machine mod only). Hide this so that any item that is a useful item with "wrench" in the name can be found easily in crafting guide.

metatool:tubetool very useful for sorting tubes and teleport tubes. The recipe needs to be adjusted because its recipe asks for luatube which is "red" restricted on Your Land. I would suggest substituting sorting tube in the recipe, to stay with the theme.

Summary of findings: metatool:containertool would need to be made compatible to chesttools, for read/write of container name and colours in future chesttools update. As it is I did not find it very useful since our most common containers (chesttools) are not supported. Not sure about other possible uses like smartshop? metatool:luatool useful for luacontroller debug, especially for touchscreen users that don't have access to their console for print statements. metatool:magic_pen interesting and functional but where this would be useful, we do a lot of signs in Your Land but is there much that needs a tool for this? I don't know. metatool:tronwrench is not useful on Your Land (it is meant for Dig Tron construction machine mod only). Hide this so that any item that is a useful item with "wrench" in the name can be found easily in crafting guide. metatool:tubetool very useful for sorting tubes and teleport tubes. The recipe needs to be adjusted because its recipe asks for luatube which is "red" restricted on Your Land. I would suggest substituting sorting tube in the recipe, to stay with the theme.
Member

Can this give access to some "private" info stored in meta? I think there was a chest with password or something?

Can this give access to some "private" info stored in meta? I think there was a chest with password or something?
Member

Can this give access to some "private" info stored in meta? I think there was a chest with password or something?

possibly. i know that the tube tool checks whether the user has access to the private channel (or has the protection_bypass priv). i also still think that only the tube tool and lua tool should be accessible by regular players.

> Can this give access to some "private" info stored in meta? I think there was a chest with password or something? possibly. i know that the tube tool checks whether the user has access to the private channel (or has the protection_bypass priv). i also still think that only the tube tool and lua tool should be accessible by regular players.
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#2735
No description provided.