Page 1 of 1

Shard not showing as online

Posted: Wed Jul 11, 2018 10:49 am
by Kloede
Hi!

I've recently added a shard to the uogateway, but it seems to think its offline even thought it definately isn't. Server is run on POL095. Is there a way to fix this? if so: how?

Greetings,
Kloede.

Archived topic from UOG, old topic ID:121, old post ID:390

Re: Shard not showing as online

Posted: Wed Jul 11, 2018 5:21 pm
by Red Squirrel
I'm not sure if that emulator is supported, but you could check to see if it's responding/sending the packets like in this thread:

https://www.uogateway.com/forum/index.p ... c,4.0.html

If it does not, maybe check to see if there is a mod available for it, as I'm sure there must be.

Archived topic from UOG, old topic ID:121, old post ID:391

Re: Shard not showing as online

Posted: Sun Sep 02, 2018 7:42 am
by Kloede
Sorry it took a while, I had forgotten all about this. For future reference for other POL owners, this is the code you need to add. Kindly provided by Turley of the POL project.

Code: Select all

exported Function UOGateway(connection, ByRef packet)
    If (packet.getint8(3)==0xff)
        var status_packet := CreatePacket(0x50, MSGLEN_VARIABLE); // 0x50 = 'P'
        status_packet.SetString(1, GetConnectUOStatus(),1);
        status_packet.SendPacket(connection);
    EndIf
    return 1;
EndFunction

// ConnectUO expects: Name Age Clients Items Chars Mem
function GetConnectUOStatus()
    var core := PolCore();
    return "OL, Name=Blubb, Age={}, Clients={}, Items={}, Chars={}, Mem={}K".format(
              CInt(PolCore().uptime/3600),
              (EnumerateOnlineCharacters().Size()),
              core.itemcount,
              core.mobilecount,
              core.memory_usage);
endfunction
Archived topic from UOG, old topic ID:121, old post ID:396