Author Topic: Shard showing up offline  (Read 24863 times)

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Shard showing up offline
« on: February 11, 2013, 01:18:36 PM »
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

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Shard showing up offline
« Reply #1 on: February 11, 2013, 07:30:52 PM »
also information i should of provided before

ip: thechaosrealm.no-ip.org
port 2593

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: Shard showing up offline
« Reply #2 on: February 13, 2013, 03:48:17 AM »
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.

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: February 13, 2013, 03:50:28 AM by Red Squirrel »

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Shard showing up offline
« Reply #3 on: February 13, 2013, 04:03:50 AM »
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!

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Shard showing up offline
« Reply #4 on: February 13, 2013, 07:30:35 PM »
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?

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: Shard showing up offline
« Reply #5 on: February 14, 2013, 03:24:32 AM »
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]
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.
« Last Edit: February 14, 2013, 03:34:50 AM by Red Squirrel »

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Shard showing up offline
« Reply #6 on: February 14, 2013, 05:22:39 PM »
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.

Ben

  • Noob
  • *
  • Posts: 3
  • Karma: +1/-0
Re: Shard showing up offline
« Reply #7 on: February 14, 2013, 08:49:28 PM »
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

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: Shard showing up offline
« Reply #8 on: February 15, 2013, 01:44:32 AM »
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.
« Last Edit: February 15, 2013, 01:57:42 AM by Red Squirrel »

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Shard showing up offline
« Reply #9 on: February 15, 2013, 08:11:26 PM »
I got a reply from another Developer, Shaklaban, at SphereServer. he said this

Quote

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. :)

Ben

  • Noob
  • *
  • Posts: 3
  • Karma: +1/-0
Re: Shard showing up offline
« Reply #10 on: February 15, 2013, 10:42:53 PM »
Soulless, ignore Shaklaban about this...   I got it under control. :)

Ben

  • Noob
  • *
  • Posts: 3
  • Karma: +1/-0
Re: Shard showing up offline
« Reply #11 on: February 16, 2013, 09:54:53 AM »
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)
« Last Edit: February 16, 2013, 10:28:11 AM by Ben »

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: Shard showing up offline
« Reply #12 on: February 16, 2013, 03:06:25 PM »
Cool stuff, glad you got it working! 

Soulless

  • Noob
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Shard showing up offline
« Reply #13 on: February 17, 2013, 07:08:33 AM »
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.

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 184
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: Shard showing up offline
« Reply #14 on: February 18, 2013, 06:01:02 PM »
Sure, no problem given the circumstances.  I just cleared all stats so it will start off fresh now.

 


This website and service is non profit other than the little revenue received through ads.
Donations are appreciated to help keep this service going.