8 Commits
Author SHA1 Message Date
Legonzaur 4cd4dd1fa0 Update mod.json 2023-05-02 13:50:10 +02:00
Legonzaur f673a7c0b8 Update mod.json 2023-05-02 13:08:24 +02:00
Legonzaur bb8034e90a Update mod.json 2023-05-02 13:08:10 +02:00
legonzaur 6a413d0f98 update readme 2023-04-26 16:58:27 +02:00
legonzaur 2f0c3effb4 update Readme 2023-04-26 16:58:03 +02:00
Legonzaur c7a1cfc41a Update README.md 2023-04-25 18:54:27 +02:00
legonzaur a5f96f307f Merge branch 'main' of https://github.com/ToneAPI/ToneAPI_servermod 2023-04-25 16:08:13 +02:00
legonzaur d54583e224 remove test token from mod 2023-04-25 16:08:10 +02:00
3 changed files with 21 additions and 8 deletions
+17 -4
View File
@@ -1,7 +1,20 @@
# fvnkhead.killstat
# What is Tone API?
To use, you MUST set `Tone_token` and `Tone_ID` convars
Tone is an API that allows everyone to view their ingame stats for Northstar.
For now, DM @Legonzaur#2100 to get those informations
The following projects allows users to visualize the API data
|Client |Platform |
|----------------------------------------------------------------------------|----------------------|
|[ToneAPI_webclient](https://github.com/ToneAPI/ToneAPI_webclient) |Webapp |
|[Pulse](https://github.com/ToneAPI/pulse) |Northstar Client mod |
|[Sonar](https://github.com/ToneAPI/Sonar) |Discord bot |
Alternatively, you can selfhost your own backend [here](https://github.com/Legonzaur/ToneAPI_backend)
Documentation for the API can be found here : https://github.com/Legonzaur/ToneAPI_backend
# What is this mod ?
This mod is a serverside mod.
When a player makes a kill, it sends the data to the API
To use, you MUST set `Tone_token`
DM @Legonzaur#2100 to get a token
+2 -2
View File
@@ -1,7 +1,7 @@
{
"Name": "fvnkhead.killstat",
"Description": "Gather kill statistics and sends them to Tone API server.",
"Version": "3.0.1",
"Version": "3.0.2",
"LoadPriority": 1,
"RequiredOnClient": false,
"ConVars": [
@@ -15,7 +15,7 @@
},
{
"Name": "Tone_token",
"DefaultValue": "pasteyourtokenhere"
"DefaultValue": "CHECK_NORTHSTAR_WIKI_INSTRUCTIONS_ABOUT_CONVARS"
},
{
"Name": "killstat_custom_parameters",
+2 -2
View File
@@ -12,6 +12,7 @@ struct {
string servername
string Tone_token
bool connected
//remove this in the future
array<Parameter> customParameters
int matchId
@@ -23,7 +24,6 @@ void function killstat_Init() {
file.killstatVersion = GetConVarString("killstat_version")
file.Tone_URI = GetConVarString("Tone_URI")
file.Tone_token = GetConVarString("Tone_token")
file.Tone_token = "ZjlmZGM0YmEtZjI1Mi00MTNjLTg5MDEtNzI3NzZkNjE2YzRj"
file.connected = false
file.servername = GetConVarString("ns_server_name")
//register to Tone API if default or invalid token
@@ -84,7 +84,7 @@ void function killstat_Record(entity victim, entity attacker, var damageInfo) {
return
table values = {}
//remove this in the future
foreach (Parameter p in file.customParameters) {
values[p] <- p.value
}