Author Topic: Feature request: Server ID in Serverlist  (Read 3044 times)

EdLan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Feature request: Server ID in Serverlist
« on: May 28, 2013, 02:08:01 PM »
Hi ArenMook

Is there a reason, that Gameserver ID is not available in the Serverlist and Entry object ? This ID would it make easier to identify Gameservers instead of using a combination of the internal and external IPEndPoints as unique key. Or did I miss something?

Cheers, EdLan
« Last Edit: May 28, 2013, 02:15:30 PM by EdLan »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Feature request: Server ID in Serverlist
« Reply #1 on: May 28, 2013, 02:42:07 PM »
Isn't it just an internal value, arbitrary and prone to change?

EdLan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Feature request: Server ID in Serverlist
« Reply #2 on: May 28, 2013, 02:51:02 PM »
In my case nope...

I have a custom package with additional server informations which is handled by my (custom) derived lobby server. No when a user selects a server from the known server list an some additional information about that specific server could be requested from the lobby server.

And it definitely would be easier and more elegant to make this by a server id instead of two combined IPEndpoint variables.

Cheers, EdLan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Feature request: Server ID in Serverlist
« Reply #3 on: May 28, 2013, 03:08:26 PM »
Well, change it to what you need it to be. ;)

TNServer isn't set in stone -- the code is yours to modify after all.

EdLan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Feature request: Server ID in Serverlist
« Reply #4 on: May 28, 2013, 03:25:35 PM »
Well... I guess that's not a very professional solution. As more changes are done in your code as more changes I have to incorporate when an updated comes (like the 1.7.0 some days ago with some bug fixes).

 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Feature request: Server ID in Serverlist
« Reply #5 on: May 28, 2013, 05:34:16 PM »
How so? Game server ID is something you added. There is no game server ID in TNet. Servers are identified by internal+external IP pairs. You added the ID, so only you know what it does and how it does it -- and more importantly, how they stay unique and avoid collision.

I'm saying it's your change, something you added, so keep changing it until it's what you need it to be. Not sure what you expect me to do here.