Page 1 of 1

Improve MOTD

PostPosted: Mon Jun 16, 2014 20:03
by webdesigner97
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.

Re: Improve MOTD

PostPosted: Mon Jun 16, 2014 21:44
by trainwrecktony
theres a mod News that does something like this
https://github.com/Bremaweb/news

Re: Improve MOTD

PostPosted: Tue Jun 17, 2014 07:41
by rubenwardy
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.

Re: Improve MOTD

PostPosted: Tue Jun 17, 2014 12:06
by webdesigner97
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?

Re: Improve MOTD

PostPosted: Tue Jun 17, 2014 12:07
by webdesigner97
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 :)

Re: Improve MOTD

PostPosted: Tue Jun 17, 2014 12:08
by jp
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.

Re: Improve MOTD

PostPosted: Tue Jun 17, 2014 12:11
by webdesigner97
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...

Re: Improve MOTD

PostPosted: Tue Jun 17, 2014 12:13
by jp
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 ;)

Re: Improve MOTD

PostPosted: Tue Jun 17, 2014 13:45
by Krock
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.