TKLServer is a server for TKLMutator for Discord webhook integration. TKLServer could also be called a Discord bot as it serves a similar purpose. TKLMutator is a Rising Storm 2: Vietnam server mutator, which provides kill logging utilities for server administrators.
Q: Why is TKLServer needed?
A: RS2: Vietnam mods (or rather the Unreal Engine version the game uses) do not support HTTPS, which is required for Discord webhooks.
-
Clone TKLServer repository:
git clone https://github.com/tuokri/tklserver
cd tklserver
-
Install requirements:
pip install -r requirements.txt
-
Run the TKLServer:
python run.py
-
Start RS2: Vietnam game server with TKLMutator enabled.
- Download repository package (zip)
and extract it. Then follow the same steps as option 1 but ignore the
git clone
command.
-
Download latest package from releases.
-
Extract it and run
tklserver.exe
.
If you used Git to install TKLServer, do a git pull
in the TKLServer directory.
Alternatively you can just download the newest one and extract
it over the old files.
Double-check your settings in tklserver.ini
after updating.
One RS2: Vietnam game server process and one TKLServer process on the same dedicated server machine.
tklserver.ini (in tklserver directory)
[tklserver]
port=8586
host=localhost
[rs2server.0000]
webhook_url=YOUR_SECRET_DISCORD_WEBHOOK_URL_HERE
ROMutator_TKLMutator_Server.ini (in RS2 server directory under ROGame\Config
).
If the file does not exists, launch RS2 game server once with TKLMutator enabled.
[TKLMutator.TKLMutator]
bLogTeamKills=True
bLogKills=False
bSendLogToServer=True
TKLFileName=KillLog
[TKLMutator.TKLMutatorTcpLinkClient]
TKLServerHost=localhost
TKLServerPort=8586
MaxRetries=5
UniqueRS2ServerId=0000
UniqueRS2ServerId
in ROGame_TKLMutator.ini references [rs2server.0000]
in tklserver.ini.
This needs to change only when support for multiple RS2: Vietnam game servers is needed.
TKLServerPort
in ROGame_TKLMutator.ini must match port
in tklserver.ini.
bSendLogToServer
must be True
in ROGame_TKLMutator.ini.
More configuration examples (multi server configuration, etc.) may be added if there is demand.