Giter Site home page Giter Site logo

tklserver's Introduction

TKLServer - Discord webhook integration for TKLMutator

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.

Discord examples

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.

Installation option 1 (requires Git + Python 3.6 or newer)

  1. Clone TKLServer repository:

    git clone https://github.com/tuokri/tklserver

    cd tklserver

  2. Install requirements:

    pip install -r requirements.txt

  3. Run the TKLServer:

    python run.py

  4. Start RS2: Vietnam game server with TKLMutator enabled.

Installation option 2 (download repository zip, Python 3.6 or newer required)

  1. Download repository package (zip) and extract it. Then follow the same steps as option 1 but ignore the git clone command.

Installation option 3 (download executable, no Python or Git needed)

  1. Download latest package from releases.

  2. Extract it and run tklserver.exe.

Updating

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.

Configuration examples

One RS2 server and one Discord webhook URL

One RS2: Vietnam game server process and one TKLServer process on the same dedicated server machine.

1-server-1-webhook

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.

tklserver's People

Contributors

tuokri avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aryss

tklserver's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.