Improve MOTD

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

Improve MOTD

by webdesigner97 » Mon Jun 16, 2014 20:03

minetest.conf wrote:motd = Hello and welcome to my server!


The currenty implementation of MOTD (Message of the day) is quite poor and the message itself is often not anymore in the player's viewport when they connect to a server. My suggestion is to move it onto the sever connection/media loading screen, which would bring two benefits:

1. Everyone can see the MOTD
2.The loading screen is less monotone

I'm neither a core dev nor a C++ capable programmer, but I think this diagram should explain my idea to everyone:

- "Connecting to server"
- (New:) Server responds with message of the day
- "Media" etc.

Image

The message could be read statically from minetest.conf (known motd setting) or created dynamically by a script.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_prejoinplayer(function(name, ip)
    local player = minetest.get_player_by_name(name)
    player:set_motd("Welcome, " .. name .. "! You earned 0$ since your last visit.")
end)


I'm not sure how many engine changs this would require, but I think players would benefit from it.
Last edited by webdesigner97 on Tue Jun 17, 2014 12:08, edited 1 time in total.
 

trainwrecktony
Member
 
Posts: 44
Joined: Sun Jun 08, 2014 05:24
In-game: trainwrecktony

Re: Improve MOTD

by trainwrecktony » Mon Jun 16, 2014 21:44

theres a mod News that does something like this
https://github.com/Bremaweb/news
Server Owner trainwrecktony.serveminecraft.net:30000
Server Specs: i5-3570, 16gb, 1tb 7200rpm 64mb cache, Win 2012 r2 x64, Dev mingw x64 minetest build, redis db
Gaming: Clevo W150HNQ, i7-2820, 16gb 1866 hyperx, 256gb Samsung 840 PRO SSD, Nvidia GT 540M, Win 7 Pro x64, Dev mingw x64 minetest build
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Improve MOTD

by rubenwardy » Tue Jun 17, 2014 07:41

I like the idea of having a loading screen message.

But what happens if the game loads too quickly? (not likely). You will need a start button below the message when it has finished loading in order to allow the player to read the message. Although that is untidy, and I wouldn't like that.
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

Re: Improve MOTD

by webdesigner97 » Tue Jun 17, 2014 12:06

rubenwardy wrote:I like the idea of having a loading screen message.

But what happens if the game loads too quickly? (not likely). You will need a start button below the message when it has finished loading in order to allow the player to read the message. Although that is untidy, and I wouldn't like that.

This is a possibility I didn't think about yet. Maybe the client can do a "minimum loading screen duration" when it receives a MOTD?
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

Re: Improve MOTD

by webdesigner97 » Tue Jun 17, 2014 12:07

trainwrecktony wrote:theres a mod News that does something like this
https://github.com/Bremaweb/news

Yes, I know. But the loading screen would be a much more suitable place :)
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: Improve MOTD

by jp » Tue Jun 17, 2014 12:08

I like the idea...

We can also add a small diaporama of screenshots under the text-zone / rules for present the world where we enter.

It entertains while awaiting loading.
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

Re: Improve MOTD

by webdesigner97 » Tue Jun 17, 2014 12:11

jp wrote:I like the idea...

We can also add a small diaporama of screenshots under the text-zone / rules to present the world where we enter.

It entertains while awaiting loading.

Although the problem with images is -as usual- the increased loading time when the server does not have a remote_media setting...
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: Improve MOTD

by jp » Tue Jun 17, 2014 12:13

webdesigner97 wrote:
jp wrote:We can also add a small diaporama of screenshots under the text-zone / rules to present the world where we enter.

It entertains while awaiting loading.

Although the problem with images is -as usual- the increased loading time when the server does not have a remote_media setting...

That's why it must externalize the loading of these pictures, not in the server ;)
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Improve MOTD

by Krock » Tue Jun 17, 2014 13:45

Current version is better (but not the best) than the suggested one.
MOTD gets ignored pretty much and those "news"-mods mostly get some attraction.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 5 guests

cron