The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UOG Poller
Author Message
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #20
RE: UOG Poller
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)


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]
RunUO, Name=shardname, Age=226, Clients=2, Items=450725, Chars=22697, Mem=493189K

Here is the source code, red squirell just posted it up for us

Code:
    Debug("Connected, sending stats packet...");

            BitStream tcpquery;
            
            tcpquery.WriteInt8(0x7f);
            tcpquery.WriteInt16(0x00);
            tcpquery.WriteInt8(0x7f);
            tcpquery.WriteInt8(0xf1);
            tcpquery.WriteInt8(0x00);
            tcpquery.WriteInt8(0x04);
            tcpquery.WriteInt8(0xff);
            
            client.SendBitStream(tcpquery);
            client.SetBlockingMode(true);
            
            string Response="";
            string tmpchar="";
            
            if(!client.RecvUntilChar(Response,0x0,5000,100000))
            {
                Debug("Time out exceeded while waiting for response");
                continue;
            }
            else Debug("Response receved: " + Response);


also i sent him what we are looking for so he can add support for us on his end with the old packet sphere is looking for, that way any old servers will get the information appropriately
(This post was last modified: 02-15-2013 08:23 AM by Soulless.)
02-15-2013 07:34 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
UOG Poller - Soulless - 02-12-2013, 03:49 AM
RE: UOG Poller - Mordaunt - 02-12-2013, 07:32 AM
RE: UOG Poller - Soulless - 02-12-2013, 07:49 AM
RE: UOG Poller - Mordaunt - 02-12-2013, 07:51 AM
RE: UOG Poller - Soulless - 02-12-2013, 08:09 AM
RE: UOG Poller - Ultima One - 02-13-2013, 12:37 AM
RE: UOG Poller - Soulless - 02-13-2013, 02:08 AM
RE: UOG Poller - Ultima One - 02-13-2013, 02:13 AM
RE: UOG Poller - Soulless - 02-13-2013, 02:15 AM
RE: UOG Poller - Ultima One - 02-13-2013, 05:39 AM
RE: UOG Poller - Soulless - 02-13-2013, 06:51 PM
RE: UOG Poller - Ben - 02-14-2013, 09:49 AM
RE: UOG Poller - Soulless - 02-14-2013, 10:15 AM
RE: UOG Poller - Mordaunt - 02-14-2013, 10:25 AM
RE: UOG Poller - Ben - 02-14-2013, 02:40 PM
RE: UOG Poller - Soulless - 02-14-2013, 02:57 PM
RE: UOG Poller - Mordaunt - 02-15-2013, 12:23 AM
RE: UOG Poller - Soulless - 02-15-2013, 04:27 AM
RE: UOG Poller - Mordaunt - 02-15-2013, 04:39 AM
RE: UOG Poller - Soulless - 02-15-2013 07:34 AM
RE: UOG Poller - Shaklaban - 02-16-2013, 12:07 AM
RE: UOG Poller - Soulless - 02-16-2013, 05:28 AM
RE: UOG Poller - Shaklaban - 02-16-2013, 06:16 AM
RE: UOG Poller - Ultima One - 02-16-2013, 08:42 AM
RE: UOG Poller - Soulless - 02-16-2013, 10:59 AM
RE: UOG Poller - Shaklaban - 02-16-2013, 06:41 PM
RE: UOG Poller - Ben - 02-17-2013, 01:50 AM
RE: UOG Poller - Ultima One - 02-17-2013, 04:45 AM
RE: UOG Poller - Soulless - 02-17-2013, 09:26 AM
RE: UOG Poller - Ultima One - 02-17-2013, 09:50 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)