• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Server ServerAds - setup recurring text/admin messages!

hey guys!

I've seen a lot of people ask for this, so I decided to open a quick
topic on it even though the setup is really easy.


1. Download the "ServerAdsSE"-mutator here:

[URL="http://www.dodsourceplugins.net/kf/ServerAdsSE.zip"][URL="http://www.dodsourceplugins.net/kf/ServerAdsSE.zip"][URL="http://www.dodsourceplugins.net/kf/ServerAdsSE.zip"][URL="http://www.dodsourceplugins.net/kf/ServerAdsSE.zip"][URL]http://www.dodsourceplugins.net/kf/ServerAdsSE.zip[/URL][/URL][/URL][/URL][/URL]
(don't worry about your perks, this is a white listed mutator)


2. Extract the contents of the zip-Archive to your KF server's root folder.
(don't worry, no files will be overwritten)


3. Shut down your game server!


4. Open your KillingFloor.ini

a) Look for the headline "[Engine.GameEngine]" and add
Code:
ServerActors=ServerAdsSE.ServerAdsSE
right under it.

b) Look for the headline "[UWeb.WebServer]" and add
Code:
Applications[X]=ServerAdsSE.WebAdmin
ApplicationPaths[X]=/ServerAdsSE
after all existing lines while replacing the X in brackets with the next higher available number!
(you will already have [1] for the base webadmin, so use [2] if you didn't already add any other stuff)

c) Copy the following code to the end of your KillingFloor.ini:
Code:
[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)


5. Start up your game server and see if it works!


6. Changing the configuration

EITHER

a) Edit the values that you pasted at the end of your KillingFloor.ini directly

OR

b) Use the included webtool to make your changes with pointing
your webbrowser to
Code:
http://YOUR.SERVER.IP.HERE:WEBADMINPORT/[B]ServerAdsSE/[/B]
and login with your usual Name and Password.

-> See attached screenshot!


7. Restart your server for the changes to become active!


Be sure to take a look at the "README.TXT" that come with the
archive if you are unsure about what value does what!
 

Attachments

  • serveradsse.png
    serveradsse.png
    39.1 KB · Views: 8
Last edited:
  • Like
Reactions: -=Ivan=-
Hmm. I'm renting a box from GameServers. Any reason why this wouldn't work?

I've added all the values as you've provided, as follows:

[Engine.GameEngine]
ServerActors=ServerAdsSE.ServerAdsSE

[UWeb.WebServer]
Applications[0]=xWebAdmin.UTServerAdmin
ApplicationPaths[0]=/ServerAdmin
Applications[1]=xWebAdmin.UTImageServer
ApplicationPaths[1]=/images
Applications[2]=ServerAdsSE.WebAdmin
ApplicationPaths[2]=/ServerAdsSE
bEnabled=True
ListenPort=8075

Copy and pasted the last bit onto the end of the .ini, no point in reposting it.

The server won't restart unless I remove "ServerActors=ServerAdsSE.ServerAdsSE" from the [Engine.GameEngine] section. Any thoughts?
 
Upvote 0
Hmm. I'm renting a box from GameServers. Any reason why this wouldn't work?

...
Copy and pasted the last bit onto the end of the .ini, no point in reposting it.

The server won't restart unless I remove "ServerActors=ServerAdsSE.ServerAdsSE" from the [Engine.GameEngine] section. Any thoughts?
Also running a gameservers.com box and it runs fine for me.
I've added ServerAds as the last ServerActor

Code:
[Engine.GameEngine]
CacheSizeMegs=32
UseSound=True
VoIPAllowVAD=False
ServerActors=IpDrv.MasterServerUplink
ServerActors=UWeb.WebServer
ServerActors=ServerAdsSE.ServerAdsSE
Also the [ServerAdsSE.ServerAdsSE] part will be automatically added to your killingfloor.ini, there's not really a need to add it manually.
 
Upvote 0
Mehh

Mehh

It's a nice mutator, but a few things:

- I wish you could set the position of the messages, to move them to the left or right side of the window, like in source games.
- I wish you could make the messages stay longer than like 3-4 seconds.
- I wish you could set the message color... can you if you put them in the .ini with the escape colors as mentioned in other threads??

Other than that it works fine for me.

Oh, and a question:
If I change the messages or any settings in the web interface, do they refresh on the server at map change, or do I have to restart the whole server for the new messages to display? Anyone know without me trying it?
 
Last edited:
Upvote 0
Hmm. I'm renting a box from GameServers. Any reason why this wouldn't work?

I've added all the values as you've provided, as follows:

[Engine.GameEngine]
ServerActors=ServerAdsSE.ServerAdsSE

[UWeb.WebServer]
Applications[0]=xWebAdmin.UTServerAdmin
ApplicationPaths[0]=/ServerAdmin
Applications[1]=xWebAdmin.UTImageServer
ApplicationPaths[1]=/images
Applications[2]=ServerAdsSE.WebAdmin
ApplicationPaths[2]=/ServerAdsSE
bEnabled=True
ListenPort=8075

Copy and pasted the last bit onto the end of the .ini, no point in reposting it.

The server won't restart unless I remove "ServerActors=ServerAdsSE.ServerAdsSE" from the [Engine.GameEngine] section. Any thoughts?

Did you put the ServerAdsSE.u in the ../system folder?
 
Upvote 0
It's a nice mutator, but a few things:


- I wish you could set the message color... can you if you put them in the .ini with the escape colors as mentioned in other threads??

Other than that it works fine for me.

Oh, and a question:
If I change the messages or any settings in the web interface, do they refresh on the server at map change, or do I have to restart the whole server for the new messages to display? Anyone know without me trying it?
To color your Ads use the the codes of the following side and add them before every line in your ServerAds Interface.
http://fraghouse.beyondunreal.com/colours.html
Changes done to the Ads itself are available immediately without a map change.
Changing the Delay f.e. require a map change.
 
Last edited:
Upvote 0
Great Thread! Thank you so much for this information, it is exactly what I have been looking for! I got it all installed and everything is working great! My only question is, is there anyway to make the normal messages stay on screen longer than the 2-3 seconds? I see the option for Admin Message Duration but this doesn't seem to effect normal messages. Seems silly to have Admin messages stay longer than 2-3 seconds as they block the center of the screen...

*EDIT*

"The message duration you can specify for ServerAdsSE is only for admin messages... unfortunately :("

I saw this post after posting my reply. That bites. Is there anyway to globally adjust how long chat messages stay visible for the entire KF server then?
 
Last edited:
Upvote 0
I saw this post after posting my reply. That bites. Is there anyway to globally adjust how long chat messages stay visible for the entire KF server then?

It does bite. Hard.

I think this is unfortunately hardcoded into the game (unreal?) engine and from what I understood reading some other threads, it would take a substantial coding effort to make a mutator that would display messages with adjustable duration.

It would also perhaps "invalidate" the server as far as stats go?? (custom mutator?)
 
Upvote 0