A little mod to help getting real-time server stats in a programmably readable format (JSON), using REST-like URL.
It's mainly an adaptation of the UT Web admin page (limited to same informations) but might be improved in the future.
There is multiple reason I created this mod for:
- Gamestat protocol doesn't have all the informations (mutator list, map list, players IP ..)
- UTAdmin page is unconsistent when language and/or version change so very hard to maintain a parser... (I tried !)
- There is a memory leak somewhere in the HTML renderer so pooling UTAdmin make UCC Out-Of-Memory after a few hours/days (depending on pooling rate)
- Accessing UTAdmin is more CPU intensive than creating a simple JSON output, so hopefully less/no impact on gameplay
Usage:
- Install .u
- update your UnrealTournament.ini:
Code: Select all
[UWeb.WebServer]
Applications[0]=UTServerAdmin.UTServerAdmin
ApplicationPaths[0]=/ServerAdmin
Applications[1]=UTServerAdmin.UTImageServer
ApplicationPaths[1]=/images
Applications[2]=ChaChaRESTStats.ChaChaRESTStats
ApplicationPaths[2]=/api/v1
DefaultApplication=0
bEnabled=True
ListenPort=<YOUR_LISTEN_PORT>
Current release:
https://chacha.ddns.net/gitea/chacha/UT ... tag/V1.0.0
Main repository:
https://chacha.ddns.net/gitea/chacha/UT ... aRESTStats
Bug & Suggestions:
You are welcome to post here but you can also open a ticket on the GIT repo (https://chacha.ddns.net/gitea/chacha/UT ... ats/issues)
(You can loggin with gmail/github)
Limitations:
UT99 version >= 451 is needed
Planned other features:
- Get Game Engine version
- Get this mod version
- (maybe) enable simple HTTP auth
- port to UT2k4 and UT3 (and UT4 ?) (same reason)
NOT planned other features:
- write / set value (this mod is and will always focus only on statistics => read only)