good low level protocols for minetest

Post Reply
User avatar
niwla23
Member
Posts: 118
Joined: Sat Nov 17, 2018 17:40
In-game: Niwla

good low level protocols for minetest

by niwla23 » Post

I am planning to write a system to sync join messages across server, i heard sockets lock up the thread, what technique, protocol would you reccoemnend me?

So what I want to do is this:
When a Player joins Server1, on Server2 and Server3 should be shown <player> joined Server1
When a Player joins Server2, on Server1 and Server3 should be shown <player> joined Server1
and so on
Or is there maybe already a mod for this?

User avatar
Walker
Member
Posts: 1838
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: good low level protocols for minetest

by Walker » Post

one idea:

watch ( with a script ) on all servers the debug.txt
if ther is a new line like "xxx joins server" send a string to all other servers
recive the string on all other servers with "external_cmd" mod > viewtopic.php?t=3924

User avatar
niwla23
Member
Posts: 118
Joined: Sat Nov 17, 2018 17:40
In-game: Niwla

Re: good low level protocols for minetest

by niwla23 » Post

Hm yes that would be possible, but I would just use the lua events.
Do you know any simmilar mods to external_cmd? It looks a little bit "hacky" for me

Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: good low level protocols for minetest

by Sokomine » Post

Some servers manage to achieve that already by sharing one channel on an irc server. Messages ingame and on irc are forwarded.
A list of my mods can be found here.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests