Server message

Post here if you need help setting up your server, etc.
Post Reply
BurP
Posts: 4
Joined: Fri Nov 19, 2010 12:30 am

Server message

Post by BurP »

Hi,
I recently setup a server but im having some trouble with the message(title)_of_day
I wanted to make a nice menu with all the rules and a welcome word blablabla..
But i am searching for a code to center the text, i have no idea what kind of code it even uses.
I could only find in the forum that \n is code for new line.
Maybe if someone can link me a clear list of some of the most used commands im fine.
Thanks

User avatar
Z-Man
God & Project Admin
Posts: 11355
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Server message

Post by Z-Man »

BurP wrote:I could only find in the forum that \n is code for new line.
That is the only one there officially is. We also have the 0x color codes, read the wiki on those, but no formatting like centering things or making tables.

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1659
Joined: Thu Oct 20, 2011 2:11 pm

Re: Server message

Post by Light »

Z-Man wrote:That is the only one there officially is. We also have the 0x color codes, read the wiki on those, but no formatting like centering things or making tables.
Except we should mention that it's monospace, so you can create your own sort of designs using spaces.

Example:

Code: Select all

+------------+
| This Is My |
|  Sumobar!  |
+------------+

BurP
Posts: 4
Joined: Fri Nov 19, 2010 12:30 am

Re: Server message

Post by BurP »

Ok that would be taking some time haha. thanks for reply's and help

epsy
Adjust Outside Corner Grinder
Posts: 2006
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Re: Server message

Post by epsy »

You can change the font in 0.4 alphas, so you shouldn't count on the font always being monospaced.

BurP
Posts: 4
Joined: Fri Nov 19, 2010 12:30 am

Re: Server message

Post by BurP »

hmm i created my own msg now but the server doesn't seem to load it.

Code: Select all

+------------------------------------+\n
|       _____   _   _   _____        |\n
|      |__ __| | | | | | ____|       |\n
|        | |   | |_| | | |__         |\n
|        | |   |  _  | |  __|        |\n
|        | |   | | | | | |___        |\n
|        |_|   |_| |_| |_____|       |\n
|               GREEN                |\n
|             BURPMARINE             |\n
|                                    |\n
+------------------------------------+\n
|             < RULES >              |\n
|                 *                  |\n
|           * No closing *           |\n
|         *   No rimming   *         |\n
|        * No endless camping *      |\n
|        * No pings above 200 *      |\n
|      * No swearing or cussing *    |\n
|        *     No racism      *      |\n
|         *   No spamming    *       |\n
|            * Be polite  *          |\n
|                 *                  |\n
+------------------------------------+\n
|    For Suggestions or Questions    |\n
|            contact BurP            |\n
|         ingame or at forums        |\n
+------------------------------------+

when i apply it the server says unknown command + and |
I have my msg just copied after the "title_of_day" code.
someone please tell what im doing wrong.
thanks

User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1858
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Server message

Post by kyle »

you need to write it all on one line, without using returns, so

Code: Select all

+------------------------------------+\n|       _____   _   _   _____        |\n|      |__ __| | | | | | ____|       |\n|        | |   | |_| | | |__         |\n
and so on
Image

User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Server message

Post by dlh »

You can also use “\”:

Code: Select all

line 1\n\
line 2\n\
line 3
Still, not all clients use monospaced fonts.

XD|VIPer
Average Program
Posts: 76
Joined: Thu Feb 09, 2012 12:53 am

Re: Server message

Post by XD|VIPer »

This would be what you need:

Code: Select all

message_of_day +------------------------------------+\n|       _____   _   _   _____        |\n|      |__ __| | | | | | ____|       |\n|        | |   | |_| | | |__         |\n|        | |   |  _  | |  __|        |\n|        | |   | | | | | |___        |\n|        |_|   |_| |_| |_____|       |\n|               GREEN                |\n|             BURPMARINE             |\n|                                    |\n+------------------------------------+\n|             < RULES >              |\n|                 *                  |\n|           * No closing *           |\n|         *   No rimming   *         |\n|        * No endless camping *      |\n|        * No pings above 200 *      |\n|      * No swearing or cussing *    |\n|        *     No racism      *      |\n|         *   No spamming    *       |\n|            * Be polite  *          |\n|                 *                  |\n+------------------------------------+\n|    For Suggestions or Questions    |\n|            contact BurP            |\n|         ingame or at forums        |\n+------------------------------------+
(Using kwrite: find and replace tools)

BurP
Posts: 4
Joined: Fri Nov 19, 2010 12:30 am

Re: Server message

Post by BurP »

thanks for reply i got it working

Post Reply