LittleFOX

zny05
Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
When ServUO is running, is it possible to check the server's status and current game statistics by accessing the server's domain via HTTP?
  • Built-in Web APIs: Some custom ServUO shards use a "Web API" or "JSON status" script that listens on a specific port (e.g., http://yourserver.com:8080).
  • Vita-Nex: Core: Many servers use the Vita-Nex: Core plugin, which includes a very robust web server module for exactly this purpose.
 
Status checks are usually done over raw TCP with a simple packet handshake; that offers basic stats (as seen in the Shard Portal list).

You can either build your own HTTP status wrapper, or you can use the built-in WebStats module that comes with Vita-Nex; the module offers a much more configurable data output using JSON.
 
Status checks are usually done over raw TCP with a simple packet handshake; that offers basic stats (as seen in the Shard Portal list).

You can either build your own HTTP status wrapper, or you can use the built-in WebStats module that comes with Vita-Nex; the module offers a much more configurable data output using JSON.
Thanks a lot for reply,I will try by this way.....Wish SUCCESS
 
I extracted Core-5.3.1.0.zip into D:\ServUO-57.4.1\Scripts and then re-ran _winrelease.bat inside the ServUO folder to recompile. However, the following errors occurred:
----------------------------------------------------------------------------------------------------
ServUO-57.4.1>dotnet build -c Release
Ultima net48 Success (0.1 Second) → Ultima.dll
Server net48 win-x64 Successed (0.1 Second) → ServUO.exe
Scripts net48 failure,9 errors (2.0 Second)
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,22): error CS1012: Too many characters in character literal
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,27): error CS1056: Unexpected character '$'
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,28): error CS1003: Syntax error, ',' expected
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,28): error CS1012: Too many characters in character literal
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,33): error CS1012: Too many characters in character literal
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,38): error CS1012: Too many characters in character literal
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,43): error CS1012: Too many characters in character literal
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,47): error CS1003: Syntax error, ',' expected
D:\ServUO-57.4.1\Scripts\VitaNexCore-5.3.1.0\Modules\AntiAdverts\Options\SystemOptions.cs(158,47): error CS1010: Newline in constant

Generation failed in 4.2 seconds with 9 errors

Done!

Press any key to continue. . .
------------------------------------------------------------------------------------------------------------
SystemOptions.cs:
[
154 WhitespaceAliases.AddRange(
155 new[]
156 {
157 '_', ':', ';', '@', '#', '=', '-', '+', '*', '/', //
158 '\\', '!', '"', '£', '$', '%', '^', '&', '"' //
159 });
]
 
Last edited:
Yes, but not by default. There are two HTTP-based options in this repo:

1) Built‑in StatusPage (HTML)
Scripts/Misc/WebStatus.cs exposes http://*:80/status/, but it is disabled by default (Enabled = false). If enabled, it serves a simple HTML page with online clients and basic stats.
Code:
Expand Collapse Copy
public class StatusPage : Timer
{
    public static readonly bool Enabled = false;
    //...
    _Listener.Prefixes.Add("http://*:80/status/");
}


2) VitaNex WebStats (JSON via WebAPI)
If the VitaNex WebAPI + WebStats modules are enabled, they register "/status" and "/shard" and return JSON for server/statistics.
C#:
Expand Collapse Copy
        private static void CMConfig()
        {
            WebAPI.Register("/shard", HandleWebRequest);
            WebAPI.Register("/status", HandleWebRequest);
        }


So the answer is: yes, it’s possible, but you must enable one of these systems.
  • For the built‑in HTML status page: enable StatusPage.Enabled in Scripts/Misc/WebStatus.cs (currently false).
  • For JSON stats: enable the VitaNex WebAPI service and the WebStats module, then access http://your-domain😛ort/status or /shard (port is configurable; default is 80 in WebAPI options)

My recommended first step is to go back and properly install Vita-Nex. Lol.
1. Make sure the core files are located in a folder named VitaNex
2. Put VitaNex into Scripts
3. Recompile core.
 

Donations

Total amount
$50.00
Goal
$500.00

Shards

Back