Jump to content

Server list ignores servers


Recommended Posts

The server list seems to fail when attempting to register multiple servers from the same server but different port.

 

Also, it will fail to register if the name is just one word.

 

Example:

server = Server:Create()
System:Print("Server1 publish::" .. tostring(server:Publish("Einlanders server stub", "Testing population of server list from masterserver ")))

server2 = Server:Create(27015)
System:Print("Server2 publish::" .. tostring(server2:Publish("Einlanders server stub", "Testing population of server list from masterserver 2")))

client = Client:Create()
local servercount = client:CountServers("Einlanders server stub")
System:Print("Server Count::" .. tostring(servercount))
for i=0, servercount-1 do
	remoteServerData = client:GetServer(i)
	System:Print("Server Name::" .. remoteServerData.address .."#### Description" .. remoteServerData.description)	
end

 

The Output:

Server1 publish::true
ERROR

Server2 publish::false
Server Count::1
Server Name::xxx.xxx.xxx.xxx#### DescriptionTesting pupulation of server list from masterserver 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...