Author Topic: Handling Server Messages  (Read 3461 times)

0 Members and 1 Guest are viewing this topic.

Offline ronski

Handling Server Messages
« on: Friday, July 08, 2016, 03:11:36 AM »
There are two ways to get server forcing text to be scrolling at console. One way is to repeat Welcome Message / Message Of The Day -lines by enabling repeatmessage from system/aa25.ini. These are boolean values where 0 is false and 1 is true. Most likely you don't want to use this method just to scroll text in console, so keep repeatmessage disabled

Code: [Select]
I'm using services from two providers here as an example. If you rent a server from Vortex Servers (NA servers), you most likely have servermessage.cfg file at system/pb folder. If you rent a server from (EU servers) you most likely don't have this file ready for your use. I'm not familiar how it is with other providers nor home servers. If the file exists at system/pb folder, delete it.

Have a look at this forum post: and download the file uploaded by Ru$tY.

Open serverrules.cfg from the .zip file with such a text editor that would be able to show the file in correct encoding format, guess basic Notepad would work in Windows, TextWrangler works for Mac users. Linux nerds are able to find themselves the program what to use :P

As you can see from the file, server messages will be posted with pb_sv_task [time1] [time2] say command. [time1] is just an order number in which order will the messages be shown. Note that it'll go from the highest value to the smallest one, it kind of prints the message upside down. TIME2 is the frequency in seconds that the message repeats, like -[sVs]-Beamer is saying at other thread.

Correct encoding of the file seems to western. If you mess up the encoding, those colour codes provided by Ru$tY. at the end of his serverrules.cfg file wont work.

Note that in Ru$tY.'s post they have differently named files, I'm not sure would it still work like they were guiding back in 2012, but nowadays system/pb/servermessage.cfg file is the one that will be shown in console as a scrolling message once it's placed into system/pb/ folder.

So once you have downloaded the .zip file uploaded by Ru$tY. just edit the content of his serverrules.cfg the way you want and change the colours how you'd like them to be. When you're done, don't just save the file straight away, use Save As feature to be sure you save it in correct encoding format. Also you need to rename the file, so save it as servermessage.cfg.

When you have created new servermessage.cfg file in correct encoding format (western), go to your server administration / game panel, or navigate to the correct folder via ftp or locally if you're using home server, have a look into system/pb folder if servermessage.cfg file exists, if it does then delete it. When there's no such a file at the folder anymore just upload your recently created servermessage.cfg to the system/pb folder and when it's there, restart your server to get your changes to work.

If you edit the servermessage.cfg file via web browser, where content of servermessage.cfg is opened inside of textarea to be able to edit it, submitting the edit form will change the encoding of the file to UTF-8 and colours wont work anymore. Also when you open western encoded file in web form you wont see the content correctly since the web form doesn't understand such encoding as western.

All the credits goes to Ru$tY. who took time to solve this back in the days.
« Last Edit: Friday, July 08, 2016, 03:22:42 AM by ronski »

Offline -Vegeta-

  • Dedicated Poster
  • *****
  • Posts: 1,010
    • View Profile
  • AA: Vegeta
Re: Handling Server Messages
« Reply #1 on: Sunday, March 12, 2017, 13:07:20 PM »
Thanks Roski
Words are great possed but the tune is crap. A condeming fear strikes down
Things they cannot understand. An excuse to cover up weaknesses that lie within Lies
Laying your guilt and pain. On people that had no part in the molding of a life
That creates its destruction. Lies. Right before your very eyes
A reflection of the mistakes. To the end you will deny. Your part in the demise of a life
Lack of comprehension. Thriving on your cliche. Compelled by self-resentment
Reaching into the minds of those that created. The depression in which they
In which they drowned their flesh and blood. Lies. So easy to blame the
Everlasting fear on a pathetic attempt. To justify the ending of life. Lies
Right before your very eyes. A reflection of the mistakes. To the end you will deny
Your part in the demise of a life
Lack of comprehension. Thriving on your cliche. Compelled by self-resentment

Offline ronski

Re: Handling Server Messages
« Reply #2 on: Monday, March 13, 2017, 17:35:13 PM »


Download Assist


Download Game Client

Download Server Manager