Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Elmo loves cookies on April 02, 2017, 08:48:38 AM

Title: for separate games on one server
Post by: Elmo loves cookies 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
Title: Re: for separate games on one server
Post by: cmifwdll 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.
Title: Re: for separate games on one server
Post by: ArenMook on April 04, 2017, 04:57:21 AM
What cmifwdll said. Just run two TNServer executables. :)