Client CLI : Command Line Interface

User avatar
redcrab
Member
 
Posts: 831
Joined: Tue Dec 13, 2011 13:45

Client CLI : Command Line Interface

by redcrab » Mon May 21, 2012 14:20

A console or command line to be able "discuss"/"communicate" with a server...
(e.g. to be able to script auto-housekeeping procedure at client side)

Few useful use cases :
  • Query Server Status
  • Execute/Query server actions (privs, setpassword, reload auth etc..)
  • Chat with current world players
  • Create third party interactive bot to serve in world player
  • Create third party non-interactive bit to be able to build act on world(build / terraforming / city autobuild.. without adding custom mod (client side only)

With current client code ... How hard is it ? ...(Removing all dependencies with gfx/sound/GUI.. keep "Chat Only stuff")
0.4 for serious builder click here
Dedicated Minetest redcrab server forum at http://minetestbb.suret.net

It's nice to be important but it is more important to be nice.
 

sysedit
Member
 
Posts: 27
Joined: Sun Aug 12, 2012 10:53

by sysedit » Sun Aug 26, 2012 05:20

This is not very hard to do.

You just have to re-implement a client in the language of your choice.

I am not sure if Minetests protocol is documented. But if it is not it
you could get all the information you need from the source code and maybe a traffic analyzation tool like wireshark.

As always. The first person to do it, is going to have all the work. Everybody after is going to have it easy (if the pioneer documents his findings).
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

by celeron55 » Tue Aug 28, 2012 20:19

As this thread was raised from the dead, i might as well comment a bit.

The protocol is not well documented, but you can find doc/protocol.txt in the source (which might contain some errors, not sure) and there is also a (slightly out-of-date) wireshark dissector in there.
 

wieszak
Member
 
Posts: 40
Joined: Mon Feb 20, 2012 17:00

by wieszak » Wed Aug 29, 2012 08:11

If i could also add something: I miss in protocol possibility to ask server for some sector to be sent but only if it is generated - avoiding generating unvisited sectors when implementing for example online map service. Could require some privilege maybe...
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests

cron