Author Topic: Custom server code  (Read 2220 times)

Rob

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Custom server code
« on: July 27, 2017, 08:27:38 AM »
Hi,

I'm building a turn-based multiplayer game in Unity and I'm hoping that TNet will be the answer to a long line of networking problems that we've had during development. I just want to double check a couple of things before purchasing.

I want to run a dedicated server and I need it to be fully customisable. I want to be able to integrate a C# SDK on my server so that I can securely handle awarding things like xp and in-game currency. I also want to run some basic game logic on the server to handle potential cheaters. So the server wouldn't simply pass messages between clients, it would be able to act on individual messages and perform checks.

From what I've read I will be able to do all of this with TNet. I understand that it comes with a server.exe which is already built but which also comes as a C# project that can be added to and compiled ourselves. Is that correct?

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: Custom server code
« Reply #1 on: July 27, 2017, 03:11:16 PM »
The stand-alone server is one of the great features of TNet.  All source code is included. 

You'll find 'TNetServer.zip' in the root TNet package.  It is best to extract this to your root Unity project to deal with the TNet references.