[WIP][Mod] Meta Tools [1.0][metatools]

User avatar
Mg
Member
 
Posts: 86
Joined: Sun Mar 02, 2014 20:49
Location: Periodic Table
GitHub: LeMagnesium
IRC: ElectronLibre Mg
In-game: Mg

[WIP][Mod] Meta Tools [1.0][metatools]

by Mg » Fri May 08, 2015 13:38

Hello,
So, this is my first (posted) mod, minetest's meta tools.

Technical name : metatools

Purpose : This mod is created for admins of multiplayer servers, and developpers. It includes a stick allowing you to quickly see the fields of a punched node's metadatas, and a chatcommand completed with subcommands to
manipulate these values. In fact, the idea came to allow admins to manipulates metadatas of node on a public server when someone lost access to their itemframes after an update. Admins could then open the node, change the value of 'owner' field (for example), and unlock these nodes.
For developpers, having a metastick and a way to see the inner of a node's metadatas can help them to discover how do metadatas work in minetest, and to help them testing their nodes (like nodes asking for values in formspecs, or storing datas).

Version : Actually, 1.0, but this mod is not finished (1.0 just marks a release).

Compatibility : Works with minetest 0.4.12

Screenshots :
+ Spoiler


Tutorial :
About the metastick : punching a node with it will show you the value of any field contained in "node/fields".
About the commands :
    - /meta help : Prints the help
    - /meta version : Prints version
    - /meta open (x,y,z) : This command "opens" the node (be sure to use parentheses)
    - /meta show : Show fields/path list at actual position (kind of ls in Un*x systems)
    - /meta enter <path> : Enter next stratum through <path> (same as cd command)
    - /meta quit : Quit actual stratum and go backward
    - /meta set <field> <value> : Set <field> to <value> . <value> can be string, float, or integer. This command can only be used in node/fields .
    - /meta itemstack : manipulate itemstacks
      - read <field> : Read itemstack at <field> (itemstring and count)
      - erase <field> : Erase itemstack at <field>
      - write <name> <itemstring> [<count>] : Set itemstack in field <name> with item <itemstring> and count <count>. Default count is one, 0 not handled.
    - /meta close : Close actually open node
About the vocabulary : My knowledge of medatadas is quite limited, so I tried to use a vocabulary as much accurate as possible. Stratum is a level in the node's metadatas system. A path is a way to go from a stratum to its 'child' (like a folder in a file system). If any other word isn't clearly defined just ask me to define it on this thread.
About the structure of the metadatas : Here is a little diagram I made
+ Spoiler


Links :
Download : [zip]
Browse code : View on GitHub...
Report issues : Bug Tracker

Remember to rename the folder to metatools (instead of *minetest-mod-metatools*).

Thanks to :
    - Ataron for 'metatools_stick.png' (CC-BY-NC-SA)
    - mgl512 and his itemframe for inspiring me
    - MinetestForFun for hosting on his server testing versions of this mod
    - palige and every other testers for their feedbacks!

Enjoy.
 

User avatar
srifqi
Member
 
Posts: 549
Joined: Sat Jun 28, 2014 04:31
Location: Indonesia
GitHub: srifqi
IRC: srifqi
In-game: srifqi

Re: [WIP][Mod] Meta Tools [1.0][metatools]

by srifqi » Fri May 08, 2015 13:46

Nice!

Now, I can learn more about how Minetest uses metadata.
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [WIP][Mod] Meta Tools [1.0][metatools]

by Don » Fri May 08, 2015 15:05

srifqi wrote:Nice!

Now, I can learn more about how Minetest uses metadata.

I agree. This will be handy.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Palige
Member
 
Posts: 101
Joined: Sun Nov 23, 2014 14:39
GitHub: paly2
IRC: Upsilon
In-game: Upsilon

Re: [WIP][Mod] Meta Tools [1.0][metatools]

by Palige » Fri Sep 04, 2015 17:07

I really like this mod, I think it is very useful for mod developpers and servers admins !
Maybe add a GUI (for example, the metastick prints some messages informations with a left-click, and opens a graphic interface with a right-click) ?
Sorry for my english : I am french...

Some of my minetest stuff:
MoreMesecons
Throwing Redo
PvP-Plus
A few other things

I'm hosting the Eurythmia server
 

User avatar
programmingchicken
Member
 
Posts: 540
Joined: Sat Apr 18, 2015 02:20
Location: not here
GitHub: pchicken
IRC: chicken pchicken

Re: [WIP][Mod] Meta Tools [1.0][metatools]

by programmingchicken » Fri Sep 04, 2015 17:15

Definitely installing this in my modding world.
It's great!
<gamerdude> I apologize for the above content
 

User avatar
Palige
Member
 
Posts: 101
Joined: Sun Nov 23, 2014 14:39
GitHub: paly2
IRC: Upsilon
In-game: Upsilon

Re: [WIP][Mod] Meta Tools [1.0][metatools]

by Palige » Thu Aug 25, 2016 15:02

Just a feedback: metatools is definitely useful. It makes the admin able to do some special operations on a server (e.g., changing the owner of a locked chest), impossible without this mod.
Sorry for my english : I am french...

Some of my minetest stuff:
MoreMesecons
Throwing Redo
PvP-Plus
A few other things

I'm hosting the Eurythmia server
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 7 guests