Shard showing up offline

UO Gateway Help and support requests as well as general discussions related to UO Gateway
Locked
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Shard showing up offline

Post by Soulless_ug »

Hello,
I'm running Shere 56b nightly release, and its been up for about 3 days now. im newly registered on uogateway however its showing up as offline. currently its 1:17pm EST on 02/11/2013. is there any way you can check this to see if its pinging my server appropriately?

Thanks

Archived topic from UOG, old topic ID:42, old post ID:103
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Re: Shard showing up offline

Post by Soulless_ug »

also information i should of provided before

ip: thechaosrealm.no-ip.org
port 2593


Archived topic from UOG, old topic ID:42, old post ID:104
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Re: Shard showing up offline

Post by Red Squirrel »

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

Code: Select all

[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.

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

Archived topic from UOG, old topic ID:42, old post ID:105
Honk if you love Jesus, text if you want to meet Him!
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Re: Shard showing up offline

Post by Soulless_ug »

i have what appears to be the setting in sphere.ini enabled correctly:

// UOGateway
// Enable or disable the response to UOGateway pings
// If enabled, it returns: Name, Age, Clients, Items, Chars and Memory
UOGStatus=1

do i need a particular port open other than 2593?

i also enabled an experimental ping option. hoping this will maybe get us some results. i'd really like to have my server showing accurate information on UOgateway.

Thanks, and please let me know if you come up with anything, i'm saddened i cant take full advantage of your awesome shard listing!


Archived topic from UOG, old topic ID:42, old post ID:106
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Re: Shard showing up offline

Post by Soulless_ug »

Okay, so i've had duel posts up on both sphere and uog about this. it appears the issue is on sphere server supports side. we are still looking for the old packet from the original UOG.  is there any in depth additional information i can provide them with to help facilitate the process of supporting UOG?

Archived topic from UOG, old topic ID:42, old post ID:107
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Re: Shard showing up offline

Post by Red Squirrel »

Here is the source code for the portion that sends the packet, hopefully it can help them get it working. Also note the string that it sends needs to be null terminated (0x0). 

Code: Select all

		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);

Actually, if you can get them to provide the packet they are looking for by default (aka old UOG) maybe I can look at supporting that too.  Basically it would be a check box you set when you register the shard.  This way any other emulator that supported the old UOG should work too. 

Have you tried ConnectUO as well?  I'm curious as to if their packet is the same as the one I use.  Honestly I don't even remember where I found out about this packet.  I think I found it while looking in the RunUO source code.

Archived topic from UOG, old topic ID:42, old post ID:108
Honk if you love Jesus, text if you want to meet Him!
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Re: Shard showing up offline

Post by Soulless_ug »

i can see UOC connecting to my server and i send back information to them.  im not sure what packet that is though

From what I can see, back when it first came out, UOG was an app that sent an 0x22 or 0xFF one byte packet.

Archived topic from UOG, old topic ID:42, old post ID:110
Ben
Posts: 3
Joined: Thu Feb 14, 2013 7:36 pm

Re: Shard showing up offline

Post by Ben »

Hey Red Squirrel,
My name is Ben, and I am a developer for the SphereServer Emulator.
Soulless brought this issue to my attention on the sphereserver forum and I would like to discuss the possibilities with you a little more.

Currently Sphere is coded to receive a 0x22 or an 0xFF single byte packet from the old UOG.
It can also receive the 0xF1 0x00 0x04 0xFF packet from CUO
The little issue I have with supporting your 8 byte packet is that Sphere is coded in a way that ping data is only recognised if it's 4 bytes or less.
I'll have to do some tests to see how that packet is handled to see if I can do an exception for it or if it would be easyer for you to just have a special packet sent that is 4 bytes or less...

Ben

Archived topic from UOG, old topic ID:42, old post ID:111
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Re: Shard showing up offline

Post by Red Squirrel »

It would probably not be hard for me to incorporate both of those packets, of course it would need a way to know which one to send, so it could be an account option.

What kind of data does Sphere currently send, is it the same line, ex:

RunUO, Name=shardname, Age=226, Clients=2, Items=450725, Chars=22697, Mem=493189K

And is it null terminated?  If yes, then all I really need to change is the packet that get's sent, so think I could do that.  The poller is in a state where I cannot currently release it though as it's in the middle of some changes and having some issues, but I could at least incorporate it and try to hurry up more at releasing the new one.


Archived topic from UOG, old topic ID:42, old post ID:112
Honk if you love Jesus, text if you want to meet Him!
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Re: Shard showing up offline

Post by Soulless_ug »

I got a reply from another Developer, Shaklaban, at SphereServer. he said this

well i sended both of them, your shard not replies the packet which is sended by uog, but its responds the cuo packet:

byte[] b = { 0x7f, 0x00, 0x00, 0x01, 0xf1, 0x00, 0x04, 0xff };

if you can tell the guy to send this one i think there will be no issue for any shard because runuo only looks the first byte of the packet which is same with this.

Ben did not reply back yet on that post though, so i do not know exactly what he has planned if anything. but thats what

Just wanted to make sure the lines of communication were fully open. :)

Archived topic from UOG, old topic ID:42, old post ID:113
Ben
Posts: 3
Joined: Thu Feb 14, 2013 7:36 pm

Re: Shard showing up offline

Post by Ben »

Soulless, ignore Shaklaban about this...  I got it under control. :)

Archived topic from UOG, old topic ID:42, old post ID:115
Ben
Posts: 3
Joined: Thu Feb 14, 2013 7:36 pm

Re: Shard showing up offline

Post by Ben »

ok, I'm almost there. I have sphere able to detect the packet you send.  Now, the problem I seem to have is that UOG doesn't seem to respond to the data I'm sendng back.

This is what is sent:
Sphere, Name=MyShard, Age=0, Clients=1, Items=16962, Chars=133, Mem=68900K
(yes, it's null terminated)

What type of connection are we dealing with here? Old UOG and CUO both received the data from a telnet connection. I tried HTTP also but got no results.

[EDIT]
Well turns out I posted to fast. It seems the problem was only that the function the data was sent throught removed the NULL at the end :)

So from now on, Sphere is supporting UOG.

There is no use trying to support old server versions as the data sent doesn't have the NULL character ( unless you remove the need for the NULL character)

Archived topic from UOG, old topic ID:42, old post ID:116
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Re: Shard showing up offline

Post by Red Squirrel »

Cool stuff, glad you got it working! 

Archived topic from UOG, old topic ID:42, old post ID:117
Honk if you love Jesus, text if you want to meet Him!
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Re: Shard showing up offline

Post by Soulless_ug »

SO glad everythings working now! :)

Thanks Ben! you are the man!

Red is it possible that i perhaps could get a reset on my statistics?? it's showing a very very low uptime, but i infact have been up and running the entire week with minimal down time.

At either rate, thanks to everyone for being totally awesome.

Archived topic from UOG, old topic ID:42, old post ID:118
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Re: Shard showing up offline

Post by Red Squirrel »

Sure, no problem given the circumstances.  I just cleared all stats so it will start off fresh now.

Archived topic from UOG, old topic ID:42, old post ID:120
Honk if you love Jesus, text if you want to meet Him!
Soulless_ug
Posts: 13
Joined: Sun Feb 10, 2013 10:50 pm

Re: Shard showing up offline

Post by Soulless_ug »

Thanks Red, you rock. UOG is #1 for freeshards!  :-*

can't wait till the day a new uog app comes out. been waiting years for it!

Archived topic from UOG, old topic ID:42, old post ID:121
sypheris
Posts: 4
Joined: Fri Feb 19, 2016 4:01 pm

Re: Shard showing up offline

Post by sypheris »

yeah i am not sure why, but i can assure you my server is online and has been the whole time...

22:14:188:Client connected [Total:3] ('192.99.10.155' 1/1)
22:14:188:CUO Status request from 192.99.10.155
22:14:188:Client disconnected [Total:2] ('192.99.10.155' 0/0)


i get this as well..

Archived topic from UOG, old topic ID:42, old post ID:267
Locked