REST API for Unreal Tournament 2004 - A UnrealScript Mutator
- UnrealScript 100%
| Docs | ||
| Examples | ||
| RestAdmin/Classes | ||
| LICENSE | ||
| README.md | ||
RestAdmin for UT2004 (Mutator + REST-ish API)
This is a UT2004 mutator that exposes a tiny HTTP + JSON admin API so you can remote-control a dedicated server (kick/ban/restart/switch level/player list/broadcast message + an optional console command endpoint).
It is meant for use cases where the stock WebAdmin/WebAPI isn’t a fit.
What you get
- A TcpLink listener with one-request-per-connection HTTP handling
- Token authentication (
X-UT-Tokenheader or?token=query) - JSON responses
- Endpoints that cover the “core” server-admin actions:
- status, players, say, kick, kickban, restart, switch
- optional: run server console commands (
/v1/console)
Quick start (dev machine)
- Copy the
RestAdmin/folder into your UT2004 install folder (next toSystem/). - Add
EditPackages=RestAdmintoSystem/UT2004.ini. - Compile:
System/ucc make - Start your server with the mutator:
UT2004.exe DM-Rankin?Game=XGame.xDeathMatch?Mutator=RestAdmin.RestAdminMutator -server
- Configure the token/port in
System/RestAdmin.ini(sample included).
See:
Docs/INSTALL.mdfor dedicated server instructions and.uclexport notes.Docs/API.mdfor endpoints and response formats.Docs/SECURITY.mdfor hard security warnings.
Files / structure
RestAdmin/Classes/*.uc: UnrealScript sourceDocs/*.md: documentationExamples/*: curl examples and helper scripts
License
MIT (see LICENSE).