mirror of
https://github.com/FAUSheppy/skillbird-sourcemod
synced 2025-12-10 00:48:33 +01:00
2020 rewrite
This commit is contained in:
28
README.md
28
README.md
@@ -1,4 +1,4 @@
|
||||
This plugin was written to output information on Source-server (primarily Insurgency) that can be interpreted by the [Skillbird-framework](https://gitlab.com/Sheppy_/skillbird) and in turn be queried as useful information to display back the players or use for team-balancing.
|
||||
This plugin was written to output information on Source-server (primarily Insurgency) that can be interpreted by the [Skillbird-framework](https://github.com/FAUSheppy/skillbird) and in turn be queried as useful information to display back the players or use for team-balancing.
|
||||
|
||||
# Setup
|
||||
## Install Insurgency Server
|
||||
@@ -19,6 +19,9 @@ Start CMD and install the [Insurgency Server](https://developer.valvesoftware.co
|
||||
## Compile Plugin
|
||||
Download and unpack [Sourcemod](http://www.sourcemod.net/downloads.php), after unpacking, there should be two directories, *addons* and *cfg*. Execute *build.sh* with the addons dir as argument.
|
||||
|
||||
Download and unpack the extensions [json](https://github.com/FAUSheppy/sm-json) and and move all files into the *scriping/include/* directory.
|
||||
Download and upack the [system2](https://forums.alliedmods.net/showthread.php?t=146019) and and move all files into the *scriping/include/* and *extensions* directory respectively.
|
||||
|
||||
./build.sh /path/to/addons/dir/
|
||||
|
||||
## Add Sourcemod/Plugins to Insurgency Server
|
||||
@@ -45,23 +48,10 @@ In the Server console (or via rcon). It is normal for the console to be laggy.
|
||||
|
||||
sm plugins refresh
|
||||
sm plugins unload_all
|
||||
sm plugins load TrueSkillLoggingMain
|
||||
sm plugins load TrueSkillQueryMain
|
||||
sm plugins load Skillbird
|
||||
|
||||
## Data Output for skillbird
|
||||
The output must be written to a file from which the skillbird-framework can read it. As a simple solution you can just write it to a file using a pipe:
|
||||
# Why include system2 as binaries?
|
||||
Because I'm a lazy cheat. I don't it's against the GPL as long as I tell you the source-code is [here](https://github.com/dordnung/System2).
|
||||
|
||||
./start_server.sh > output.log
|
||||
|
||||
Or if you still want to see the output as it is printed:
|
||||
|
||||
./start_server.sh | tee output.log
|
||||
|
||||
What I am personally doing is starting Insurgency with systemd and then:
|
||||
|
||||
journalctl -fu insurgency.service > output.log
|
||||
|
||||
Set sv\_logflush to 1 in the server.cfg to write out the information in shorter intervals, the performance impact is negligible.
|
||||
|
||||
# Why include sm-socket as binaries?
|
||||
Because building Sourcemod extensions is annoying to do for the average user. I know it's not a perfect solution, but it's the best I could come up with. In compliance with the terms of the GPL (the license of Sourcemod), you may find the source code of those binaries [here](https://github.com/nefarius/sm-ext-socket).
|
||||
# Why do you have the json dependency in your repro
|
||||
Because I'm a lazy cheat, please leave [this guy](https://github.com/clugg/sm-json/) a star.
|
||||
|
||||
Reference in New Issue
Block a user