Natural Selection 2

Natural Selection 2

Ei tarpeeksi arvosteluja
Remote Server Stats
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
37.549 KB
5.2.2022 klo 21.55
5.2.2022 klo 23.19
4 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Remote Server Stats

Kuvaus
This mod makes it easy to submit server round data to any remote server of your choice.

Add a new RemoteStats.json config file, following this structure:

{ "url": "https://some-endpoint.com/api/endpoint", "authToken": "optional authentication token", }

At the end of each round, the same JSON data that is written to the NS2Plus/Stats/<roundtime>.json stats file, along with the authentication token set in the RemoteStats.json config file (if present), will be sent via HTTP POST request to the configured endpoint URL. The message is formatted according to regular HTTP URL encoding with a structure as follows:

authToken=auth_token_string&stats=urlEncodedJsonData...


Applications wanting to make use of this data will have to decode the message payload from URL-encoded form to JSON before making use of the data.