Shard showing offline? Read this.

UO Gateway Help and support requests as well as general discussions related to UO Gateway
Locked
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Shard showing offline? Read this.

Post by Red Squirrel »

If you see other shards are showing online but yours is not, chances are it's a problem with how your shard is handling the UOG packet.  This post explains this packet and you should ensure your shard's code handles it properly.

UOG has a poller app which sends a special packet to the UO server to gather data.

The packet sent is shown below:
Your server should be coded to accept this packet and handle it accordingly.  (this should be built into RunUO, not sure about other servers)

Code: Select all

			tcpquery.WriteInt8(0x7f);
			tcpquery.WriteInt16(0x00);
			tcpquery.WriteInt8(0x7f);
			tcpquery.WriteInt8(0xf1);
			tcpquery.WriteInt8(0x00);
			tcpquery.WriteInt8(0x04);
			tcpquery.WriteInt8(0xff);
The response should be a null terminated string something like this:

Code: Select all

RunUO, Name=shardname, Age=226, Clients=2, Items=450725, Chars=22697, Mem=493189K
You can replace RunUO with whatever other software you may use (ex: Sphere, POL).  Not sure what age is tbh, UOGateway does not check it. The only one it cares about the clients one which is the number of tcp connections which is technically the number of players, but it counts even non logged in accounts, so tcp connection is more the way of doing it.

If you are running RunUO this should already be coded in as far as I know.


Other notes:

The poller IP is 144.217.157.4 as of around 2022. (updated this post in Dec 2023)


Archived topic from UOG, old topic ID:4, old post ID:5
Honk if you love Jesus, text if you want to meet Him!
Locked