Shard not showing as online

UO Gateway Help and support requests as well as general discussions related to UO Gateway
Locked
Kloede
Posts: 2
Joined: Wed Jul 11, 2018 10:30 am

Shard not showing as online

Post 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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Re: Shard not showing as online

Post 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
Honk if you love Jesus, text if you want to meet Him!
Kloede
Posts: 2
Joined: Wed Jul 11, 2018 10:30 am

Re: Shard not showing as online

Post 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
Locked