https://github.com/splorg/compstats
https://github.com/splorg/compstats
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/splorg/compstats
- Owner: splorg
- License: mit
- Created: 2024-05-20T14:54:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-23T16:00:09.000Z (over 1 year ago)
- Last Synced: 2025-05-31T23:55:55.748Z (8 months ago)
- Language: C#
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CompStats
Mount & Blade II: Bannerlord server mod for exporting player statistics and match (mission) data
## For development
In the solution's bin directory, create a "taleworlds" directory and copy all the needed TaleWorlds DLLs from your `Mount and Blade II: Dedicated Server/bin/Linux64_Shipping_Server` directory
Verify that the file paths match with the dependencies in src/CompStats.csproj
## How to use
At the moment, the mod does not save any data directly to a database; instead it will export all data to an external API. So to use it, you need your own API with a `POST /stats` endpoint and then you can handle the data however you want. **This might not be the case after further testing or future requirement changes, this is still a work in progress.**
Add the following to your `modules/Multiplayer/SubModule.xml` file:
```
```
Create a JSON file "config.json" in `/bin/Linux64_Shipping_Server/config.json`, in it you can set your base API URL, your API key, your current running tournament name and if stats tracking should be enabled or not. An example of this config file:
```
{
"enabled": true,
"apiURL": "http://myapi.com",
"apiKey": "myapikey123",
"tournamentName": "My Tournament"
}
```