PDA

View Full Version : Multiline Messaage of the day??


imported_drbopp
11-08-2003, 11:51 AM
Hey Guys,

I was just wondering if it is possible to setup a multiline server "Message of the Day" using the set scr_motd command.

Thanks in advance.........

DR.

Sitting_Duck
11-08-2003, 07:19 PM
It should be possible...though if your server runs serverwatch or crowkings autokick you will have this option too. And you get the benefit of banning and high ping kicks along with other options.

CFH666
11-08-2003, 11:16 PM
I tried setting up multiple lines ones, like
set scr_motd
set scr_motd1
set scr_motd2
And server doesnt recognize them

Instead I just made one huge ass one and it word wraps it. but this crams everything into one paragraph, and if you added any colors, than at the begining of every line, you will have to add the color code to the very first word of the line, cuz after it word wraps it, the color returns to white.

Anyone know how to skip lines and split it up into several lines with spaces in between?


6

imported_AmericanWaste
11-09-2003, 03:56 AM
im sure the server will reconize the newline character (its \n). Try inserting the newline character when you want a new line in your motd.

set scr_motd "stuff thats on line one \n stuff thats on line two \n
you get the picture"

you can format it how you like within your cfg file. One line or multiple.

pair
11-10-2003, 11:50 PM
That's how Quake used to work, and I tried it, "inside the quotes\n, outside the quotes,"\n """ every combination I could think of,""\n" but no dice.

The live area of the message board is about 35 characters wide, but the font is a proportional one, so even doing it with spaces will be a bear.

Anyone else have a clue?

Any IW guys out there see this?

'Cause you gave us that nice big message board, but…

imported_BipolarChucker
11-11-2003, 08:16 AM
I've tried it too, everything within the "" under scr_motd is treated as a string literal, in other words it puts as the MOTD whatever you put in there be it numbers or whatever.

pair
11-11-2003, 10:08 AM
That is exactly my experience. All characters in the motd string will be printed to the screen, whether preceded by a backslash or not.

Oddly, the string is not constrained by the background box, either. The script apparently will do linewrap at a space, but if you put an unbroken string (no spaces) about 50 characters long in the motd variable, it will display the end of it outside the box!

I will query ActiVision help on this, and will examine some of the existing scripts after work. Maybe I can pick out how it is done.

It is possible that they have used some other character than the backslash to flag the linefeed character in a string.

pair
11-13-2003, 03:26 PM
No joy. ActiVision responded to my support query by stating that they do not support console commands.

Two of the menu scripts in pak0.pk3 appear to use

\r

to do a linefeed (probably the "r" stands for "return"), but the motd does not understand this any better than \n.

I even tried \p (paragraph?), \b (break?) and even some html tags :oops: , but no joy.

It may be that there is no built-in provision for this.

Does anyone know how to submit support queries directly to IW?