Author Topic: Change dedicated server name (while ingame)  (Read 2403 times)

raptorx81

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 12
    • View Profile
Change dedicated server name (while ingame)
« on: May 07, 2015, 08:47:51 PM »
Hi everyone!

I recently switched my games networking backend over from Photon to TNet and so far everything is working perfectly!

I am wondering if it's possible for the host of a session to change the server name? I know if your hosting a local instance, you can do this by going "TNServerInstance.serverName = "blablabla", but is there a nice way to change a dedicated servers name while your in-game? I know you can set the server name when you launch the dedicated server, but that's not what I need in this case.

If not that's totally fine as I will tweak the source code so this is possible, but I wanted to ask here first in case I'm missing anything.

Thanks in advance for your help!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change dedicated server name (while ingame)
« Reply #1 on: May 07, 2015, 09:55:49 PM »
Once you launch the dedicated server, the name you chose is what it will have. You would need to restart it to change it unless you add code for it.

raptorx81

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 12
    • View Profile
Re: Change dedicated server name (while ingame)
« Reply #2 on: May 07, 2015, 11:34:55 PM »
Okay good to know, thanks!