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
Shard not showing as online
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
Re: Shard not showing as online
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
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!
Re: Shard not showing as online
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.
Archived topic from UOG, old topic ID:121, old post ID:396
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