[TUTORIAL] Adding Server Messages to Killing Floor

Use this forum if you have a relatively general question or comment about a game, Ventrilo, TeamSpeak, or Murmur/Mumble server with us. If you have a server-specific question that might not help out the community, please directly contact us through your control panel instead.
Post Reply
Elochai
This is my homepage
This is my homepage
Posts: 93
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Sep 15, 2011 1:23 pm
Location: Newfoundland

[TUTORIAL] Adding Server Messages to Killing Floor

Post by Elochai »

How To Add Server Messages To Your Killing Floor Server

What You Need:
ServerAdsSE.zip
(39.42 KiB) Downloaded 468 times
FTP Client

Step 1:

Unzip the ServerAdsSE.zip folder and upload the folders System and Web to your Killing Floor root folder using a FTP Client. (It should not copy over any exsiting files, only add files to the System and Web folders on your server)

(As you can see in the image below, I am draging the folders System and Web from the ServerAdsSE folder into my Killing Floor Server root folder using FileZilla as my FTP Client.)
scott_server_messages1.png
scott_server_messages1.png (202.07 KiB) Viewed 2440 times
Step 2:

We are now going to edit the Killing Floor config file. It may be best to stop your server for this step.

To stop your server login to your NuclearFallout Control Panel, go to your Killing Floor server. Now click the link called Server Control. You should see a drop down box with an option called Stop the server in it, select that option and press the button next to the drop down box called Do it.
scott_server_messages2.png
(140.87 KiB) Downloaded 80 times
Step 3:

To edit your killing floor config file, click the link called File Manager and then in the 1st drop down box pick your Killing Floor Config file (Default config file is KillingFloor.ini). In the 2nd drop down box pick Edit and then click the Submit button. This should open up an inline editor for changing the file.
scott_server_messages3.png
(186.42 KiB) Downloaded 80 times
Now in the editor, look for [Engine.GameEngine] and add this line under it ServerActors=ServerAdsSE.ServerAdsSE
scott_server_messages4.png
(176.27 KiB) Downloaded 80 times
Now look for [UWeb.WebServer] and add Applications[X]=ServerAdsSE.WebAdmin and then right under that add ApplicationPaths[X]=/ServerAdsSE.

Note: Change the X to the next number to be used and put both new lines under the other Applications[X]= and ApplicationPaths[X]= lines.

EG:

Applications[0]=xWebAdmin.UTServerAdmin
ApplicationPaths[0]=/ServerAdmin
Applications[1]=xWebAdmin.UTImageServer
ApplicationPaths[1]=/images
Applications[2]=ServerAdsSE.WebAdmin
ApplicationPaths[2]=/ServerAdsSE

scott_server_messages5.png
(175.57 KiB) Downloaded 80 times
Now the final bit of code to add. Go to the bottom of your Killing Floor config file and add these lines.

[ServerAdsSE.ServerAdsSE]
bEnabled=True
fDelay=20.000000
sLines[0]=This is the first message!
sLines[1]=And this is the second message!
sLines[2]=#This is an Admin Message in the center of the Screen!
iAdType=0
iGroupSize=1
bWrapAround=True
iAdminMsgDuration=5
cAdminMsgColor=(B=0,G=255,R=0)


and then click the Save button.
scott_server_messages6.png
(122.75 KiB) Downloaded 80 times
Step 4:

Time to start your server and add some messages. Click on your Server Control link. In the drop down box select Start the server and then press the Do it button.
scott_server_messages7.png
(181.51 KiB) Downloaded 80 times
Now you will use your web admin to config your messages.

Type in your web admin url and then after the port number add /ServerAdsSE/

EG: myserverip:8075/ServerAdsSE/

Once logged in you can add and change your messages in the Lines box. Remember to click the Update List button when done.
scott_server_messages8.png
(60.69 KiB) Downloaded 80 times
Note: You may need to restart your server for new messages to take effect.

How to Center Messages On Screen

To center a message on the screen add # to the front of the line. However remember that this may be a good way to make sure your players see your messages, it also interupts the players gaming as it tends to get in there way for sighting the enemy.


Have Fun

Scott,
Scott AKA Elochai

Let the Clips Fall Down!
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: [TUTORIAL] Adding Server Messages to Killing Floor

Post by Edge100x »

Thanks, Scott!
Post Reply