SphereCommunity
UOG Poller - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: UOG Poller (/Thread-UOG-Poller)

Pages: 1 2 3


RE: UOG Poller - Soulless - 02-13-2013 06:51 PM

well this was the reply. does anyone know of anything that could be causing this? can you guys try to ping me? see if its maybe just me and not his poller.

Code:
Hmm I wonder if it does not support the packet that is used.  


Code: [Select]
[Feb-13-2013 03:41:57am] Connecting to The Chaos Realm [thechaosrealm.no-ip.org:2593] (Attempt 1)

[Feb-13-2013 03:41:57am] Connected, sending stats packet...

[Feb-13-2013 03:42:09am] Time out exceeded while waiting for response

[Feb-13-2013 03:42:09am] Connecting to The Chaos Realm [thechaosrealm.no-ip.org:2593] (Attempt 2)

[Feb-13-2013 03:42:09am] Connected, sending stats packet...

[Feb-13-2013 03:42:22am] Time out exceeded while waiting for response

[Feb-13-2013 03:42:22am] Connecting to The Chaos Realm [thechaosrealm.no-ip.org:2593] (Attempt 3)

[Feb-13-2013 03:42:22am] Connected, sending stats packet...

[Feb-13-2013 03:42:34am] Time out exceeded while waiting for response

[Feb-13-2013 03:42:34am] Updating graphs for The Chaos Realm



Check on the Sphere site/forums to see if there is a mod, or maybe it's something you enable.   The packet used is standard to RunUO but not sure about the other emulators.

he replied back with this in conclusion, can we take a look at this on our end? i'd desperately like to get this working on uogateway. i'm a wreck with packets and always break things.


Quote:If there is no such mod I guess it's something I'd have to look at making some day, though I have zero experience with Sphere. Information on the packet can be found here if you want to try adding the support yourself: http://www.uogateway.com/forum/index.php/topic,4.0.html
« Last Edit: Today at 03:50:28 AM by Red Squirrel »



RE: UOG Poller - Ben - 02-14-2013 09:49 AM

Ok, I checked it out, it's a Sphere lack of support.

From what I can see, back when it first came out, UOG was an app that sent an 0x22 or 0xFF one byte packet.
Now it appears to be just a website? or is there an app still?
But now it is sending a new packet (0x7F 0x00 0x00 0x7F 0xF1 0x00 0x04 0xFF)
I'll have to look into it some more.

Has anyone tried packet filtering that?


RE: UOG Poller - Soulless - 02-14-2013 10:15 AM

Yes Ben to the rescue. This is now just a website at uogateway.com, how can i help make this work? anything you need me to do?


(I still use your House System btw! even after making my own i've prefered your old t2a style house system)


RE: UOG Poller - Mordaunt - 02-14-2013 10:25 AM

Didn't even know ben had a house system.


RE: UOG Poller - Ben - 02-14-2013 02:40 PM

Nice to see that house system still being used Smile
Right now, there is nothing that I can think of other then possibly doing a packet filter for an 0x7F packet.
I guess I'll have to create an account on UOG to test Smile


RE: UOG Poller - Soulless - 02-14-2013 02:57 PM

Oh yes, its my favorite house system lol.

I'm not so good with packets, and i guess i don't know how to filter for them either. complete noob. i'll read up on them. i'll keep my eyes peeled on here for updates. Thanks so much for jumping in Ben!


RE: UOG Poller - Mordaunt - 02-15-2013 12:23 AM

Pfft.. clearly you haven't used mine [/shameless plug]
lol


RE: UOG Poller - Soulless - 02-15-2013 04:27 AM

Lol im just nostalgic about bens Smile i was an utter noob when he bestowed it upon me.


RE: UOG Poller - Mordaunt - 02-15-2013 04:39 AM

I don't think I have ever even seen Ben's house system. First one I really used was Amlaruil's I beleive.


RE: UOG Poller - Soulless - 02-15-2013 07:34 AM

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