• 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/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

[Mutator] Brutus ServerAds ServerActor

FZFalzar

FNG / Fresh Meat
May 11, 2011
128
3
0
UCC.exe
This is a little mod that adds message broadcasting for dedicated servers, useful for displaying things like tips, server messages or useful information.

Features:
Configurable broadcasting intervals
Wildcards (Refer to below)

Download:
http://files.brutus.sg/BRTSServerAds_v101.zip

Installation:
Code:
Unzip BRTSServerAds.u to: %server_root%\killingfloor2\KFGame\BrewedPC\
Unzip KFBRTSServerAds.ini to: %server_root%\killingfloor2\KFGame\Config\
 
Edit %server_root%\killingfloor2\KFGame\Config\PCServer-KFGame.ini:
ServerActors=IpDrv.WebServer
ServerActors=BRTSServerAds.BRTSServerAds
Specifying Messages
Code:
You can add a new message to be broadcast inside the ini.
e.g
[BRTSServerAds.BRTSServerAds]
ServerAdsList=Your Message Here
 
More examples can be found with the default ini included.
Wildcard List:
Code:
Wildcards will draw out information for display within your messages.
 
Example:
ServerAdsList=Players: {PLAYERCOUNT}/{SERVERSLOTS}
 
This will show -> Players: 1/6
 
- These wildcards are case sensitive!
- bUse24HrFormat controls whether to use 24 or 12 hour format.
  If 24hr is used, AM/PM will be blank. Use 12hr if you wish to use AM/PM wildcard
 
{SERVERNAME}    - Returns server name as seen on the server browser
{DAY}           - Returns server time (Day)     > 1-31
{MTH}           - Returns server time (Month)   > 1-12
{YR}            - Returns server time (Year)    > XXXX
{HR}            - Returns server time (Hour)    > 00-23
{MIN}           - Returns server time (Min)     > 00-59
{SEC}           - Returns server time (Second)  > 00-59
{AMPM}          - Returns AM/PM (refer to NOTE)
{SDAY}          - Returns day as its respective name e.g Monday, Wednesday
{SMTH}          - Returns month as its respective name e.g January, February
{MAPNAME}       - Returns current map name
{PLAYERCOUNT}   - Returns number of players currently on the server
{SERVERSLOTS}   - Returns number of slots the server has
Queries? Leave a message here, on my Steam Profile or on my group page at www.brutus.sg

Cheers to a start in KF2 Modding :D
-Falzar
 
Last edited:

Isotonic

FNG / Fresh Meat
Feb 12, 2012
65
0
0
No problems so far. Rather unfortunate that the game doesn't support unicode characters, I would love to tailor my messages in a specific language.
 

FZFalzar

FNG / Fresh Meat
May 11, 2011
128
3
0
UCC.exe
No problems so far. Rather unfortunate that the game doesn't support unicode characters, I would love to tailor my messages in a specific language.
Regarding that, UE3 actually supports unicode, just that the font KF2 uses is limited, truncated. I suppose it wouldn't be too hard to bring in a new font into the game once the SDK is properly released.
 

FZFalzar

FNG / Fresh Meat
May 11, 2011
128
3
0
UCC.exe
Yes it does. It must be under [Engine.GameEngine] or the serveractor will not be detected and loaded on engine startup/restart. Sorry for not including that bit inside the readme, will amend with the next update.
 

usmckd

FNG / Fresh Meat
Yes it does. It must be under [Engine.GameEngine] or the serveractor will not be detected and loaded on engine startup/restart. Sorry for not including that bit inside the readme, will amend with the next update.

Thank you, new to the game :)

EDIT:
Wait, do I add
Code:
[Engine.GameEngine]
in the KFGame.ini? because that section is NOT listed.
 
Last edited:

cali*

FNG / Fresh Meat
Mar 18, 2013
21
0
0
Thank you, new to the game :)

EDIT:
Wait, do I add
Code:
[Engine.GameEngine]
in the KFGame.ini? because that section is NOT listed.
It's actually in PCServer-KFEngine.ini, not in PCServer-KFGame.ini.
 

uss_djmarv12

FNG / Fresh Meat
Apr 25, 2015
10
0
0
will this work? cuz i have a max player mutator also

Code:
ServerActors=IpDrv.WebServer
ServerActors=KFMaxPlayers.KFMaxPlayers
ServerActors=BRTSServerAds.BRTSServerAds
 

FZFalzar

FNG / Fresh Meat
May 11, 2011
128
3
0
UCC.exe
Yes it will, the game engine loads each ServerActor specified there. Also, I encourage that you try first instead of doubt ;) People learn more by experimentation
 

Kuebic

Member
Apr 13, 2014
218
0
16
Waterloo, IA USA
urinetroublenow.com
will this work? cuz i have a max player mutator also

Code:
ServerActors=IpDrv.WebServer
ServerActors=KFMaxPlayers.KFMaxPlayers
ServerActors=BRTSServerAds.BRTSServerAds
A good test: Does the server run? Does it show [current]/[max-slots] as # of players? Do your ads show up?

If it does, then it works. Experimentation gets you farther than asking every nit-picky questions ;D
 
Last edited:

Isotonic

FNG / Fresh Meat
Feb 12, 2012
65
0
0
Regarding that, UE3 actually supports unicode, just that the font KF2 uses is limited, truncated. I suppose it wouldn't be too hard to bring in a new font into the game once the SDK is properly released.
Ahh, fair enough. Thanks for informing me.
 

Misa

FNG / Fresh Meat
Apr 24, 2015
11
0
0
I don't get why but I can't get this to work, added the lines in the config and put the files in the right place. no messages appears though
 

Misa

FNG / Fresh Meat
Apr 24, 2015
11
0
0
can't get it to work at all x.x I don't get why, I added the lines in the config and put the files in the right folders but no messages in the chat.