Author Topic: Shard not showing as online  (Read 743 times)

Kloede

  • Noob
  • *
  • Posts: 2
  • Karma: +0/-0
Shard not showing as online
« on: July 11, 2018, 09:49:16 AM »
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.

Red Squirrel

  • Administrator
  • Seeker
  • *****
  • Posts: 178
  • Karma: +4/-0
    • Age of Valor free UO Shard
Re: Shard not showing as online
« Reply #1 on: July 11, 2018, 04:21:21 PM »
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.php/topic,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.

Kloede

  • Noob
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Shard not showing as online
« Reply #2 on: September 02, 2018, 06:42:35 AM »
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]
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
« Last Edit: September 02, 2018, 07:10:51 AM by Kloede »

 


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