Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rexima

Pages: 1 ... 4 5 [6]
76
TNet 3 Support / Start.UDP needs an open Port?
« on: February 04, 2014, 03:14:21 AM »
Do i need to open a Port for Start.UDP on my dedicated Server?
Or is it running on the client?

77
TNet 3 Support / HowTo Setup dedicated Gameserver?
« on: February 01, 2014, 02:44:34 PM »
Hello,

i want to setup some fixed dedicated Gameserver. Should i setup a lobby and register gameserver to it, and after i did this, i can see the server in my serverlist?
Or should register channels in the gameserver? If its so, how can i setup fixed channels?

//EDIT: Ok, i got how to setup fixed channels.

Here a small snippet, i hope it's ok.

  1. using UnityEngine;
  2. using System.Collections;
  3. using System;
  4. using TNet;
  5.  
  6. public class CreateFixedChannel : MonoBehaviour {
  7.  
  8.         // Use this for initialization
  9.         void Start () {
  10.         TNManager.Connect("YOUR IP", YOUR PORT);
  11.         }
  12.  
  13.     private string channelname ="";
  14.     private string channelmaxplayer = "8";
  15.     private string channelpw = "";
  16.  
  17.     void OnGUI()
  18.     {
  19.         if (TNManager.isConnected)
  20.         {
  21.             GUI.Label(new Rect(20, 20, 100, 50), "Channelname:");
  22.             channelname = GUI.TextField(new Rect(120, 20, 200, 20),channelname);
  23.  
  24.             GUI.Label(new Rect(20, 50, 100, 50), "Max Player:");
  25.             channelmaxplayer = GUI.TextField(new Rect(120, 50, 200, 20), channelmaxplayer);
  26.  
  27.             GUI.Label(new Rect(20, 80, 100, 50), "Passwort:");
  28.             channelpw = GUI.TextField(new Rect(120, 80, 200, 20), channelpw);
  29.  
  30.  
  31.             if (GUILayout.Button("Create Channel"))
  32.             {
  33.                 TNManager.CreateChannel(channelname, true, Convert.ToInt32(channelmaxplayer), channelpw);
  34.                
  35.             }
  36.         }
  37.     }
  38. }
  39.  


78
TNet 3 Support / Re: Difference between TCPLobby and UDPLobby?
« on: January 28, 2014, 11:41:16 AM »
Ok, so this means, if i want to create a standalone gameserver, i need to create a TCPLobby and a TCP Gameserver, right?

Another Question: How many Channels can a Gameserver handle?

79
TNet 3 Support / Difference between TCPLobby and UDPLobby?
« on: January 28, 2014, 07:30:33 AM »
What is the difference between TCPLobby TCP GameServer and UDPLobby UDP GameServer?

80
TNet 3 Support / Re: Any Tutorial to SetUp a Game with Channels?
« on: January 19, 2014, 02:23:49 PM »
Okay thank you.

I have a new Question.
What is the difference between creating Channels(rooms?) and creating a Gameserver?

81
TNet 3 Support / Any Tutorial to SetUp a Game with Channels?
« on: January 19, 2014, 01:12:26 PM »
Hey,

im trying since yesterday to setup TNet, but i dont know... I think im stupid.

So some questions now, maybe you can bring clarity.

If i want to setup a dedicated lobby server, i need to start it as tcpLobby and a tcp gameserver?
And if im connected to the gameserver, i can start creating Channels or join them?

If i create a Channel, how can i instantiate a player prefab?
Whats better to sync player? AutoSync or RFC Commands?

Yeah, if there would be a tutorial for a Channel based game, it would be nice, would be easier to understand TNet.

Pages: 1 ... 4 5 [6]