1

Topic: MOTD limit

Is there character a limit to the sv_motd
because when i run my servers it only displays the first 30 characters or so.
is there a way around this?

-SALAD

2

Re: MOTD limit

You are probably using a modification of the server where the limit of characters is set to 30.

The Vanilla server supports more than 30 characters.

3

Re: MOTD limit

In 0.5.2, the MOTD is limited to 900 characters.

Not Luck, Just Magic.

4

Re: MOTD limit

Maybe you want to make a new line.

I thin you have to write \n to create a new line.

5

Re: MOTD limit

not using a mod. alias I think you are right. but what is the limit for 1 line?

-SALAD

6

Re: MOTD limit

the limit is Dune wrote... And you have to write the whole MOTD in one line in the config.

sv_motd "Hi\n\nblabla blub hehe\n:)"

will be like this on the server:

Hi

blabla blub hehe
:)
uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

7

Re: MOTD limit

Btw, this also works with chat messages neutral

Not Luck, Just Magic.

8

Re: MOTD limit

was fixed in 0.5 trunk some time ago tongue

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

9

Re: MOTD limit

Dune wrote:

Btw, this also works with chat messages neutral

shouldnt be possible with current trunk

link to the line

// check for invalid chars
unsigned char *pMessage = (unsigned char *)pMsg->m_pMessage;
while (*pMessage)
{
  if(*pMessage < 32)
    *pMessage = ' ';
  pMessage++;
}

SendChat(ClientId, Team, pMsg->m_pMessage);

10 (edited by SALAD 2011-01-26 02:03:45)

Re: MOTD limit

Ok thanks but what is the limit of characters to 1 line

-SALAD

11 (edited by Sushi Tee 2011-01-26 03:42:53)

Re: MOTD limit

there are no lines... so u can say its the same as the whole motd limit.
But it will look like shit if the text is overlapping the motd text box (not sure if it will linebreak automatically)

again:
You have to write the motd message in the config file in one single line!
you CANNOT do something like this in the config file:

sv_motd "Hi

blabla blub
:)"

If you want to use linebreaks you have to use \n in that single motd line in config file like mentioned before!

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

12

Re: MOTD limit

He means how many characters will be able to be displayed on the MOTD in-game before it begins to cut off..

Why don't you check yourself?

13 (edited by Deleted User 2011-01-27 04:05:50)

Re: MOTD limit

The limit for a "parsed" line should be the same as sv_motd. If nothing has changed it should be 900 as Dune said.

14

Re: MOTD limit

If it doesn't work, just post your config.
Then we can help you much better than now.