Natural Selection 2

Natural Selection 2

評價次數不足
Remote Server Stats
   
獎勵
加入最愛
已加入最愛
移除最愛
檔案大小
發佈於
更新時間
37.549 KB
2022 年 2 月 5 日 下午 9:55
2022 年 2 月 5 日 下午 11:19
4 項更新註記 (檢視)

訂閱以下載
Remote Server Stats

描述
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.