Author Topic: for separate games on one server  (Read 6805 times)

Elmo loves cookies

  • Jr. Member
  • **
  • Thank You
  • -Given: 60
  • -Receive: 1
  • Posts: 62
    • View Profile
for separate games on one server
« on: April 02, 2017, 08:48:38 AM »
I want to add separator on server for different games(two or more games on one server)
In what part of Tnet server - it is easy to add?
what I need: on connect players says own version of his game and he can communicate only the same version of the game of other players

cmifwdll

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 149
  • Posts: 285
  • TNet Alchemist
    • View Profile
Re: for separate games on one server
« Reply #1 on: April 02, 2017, 07:22:20 PM »
Why not just have two separate installations of TNet server on your box?
Each game uses its own port. Could recompile TNet for unique game ID, too.
Maybe I'm misunderstanding what you're trying to do. TNet uses a single game ID for verification. You could modify this to include multiple game IDs, but for what I think you're trying to accomplish you'd also have to rewrite the lobby server and channel logic to accommodate multiple game IDs on a single server instance.
Really it's probably just best to use separate instances, but maybe ArenMook can chime in.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: for separate games on one server
« Reply #2 on: April 04, 2017, 04:57:21 AM »
What cmifwdll said. Just run two TNServer executables. :)