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.


Topics - ekilog

Pages: [1]
1
TNet 3 Support / OnNetworkConnect not triggered
« on: March 02, 2014, 04:42:48 PM »
Hello,

It use to work... not anymore. Do you know a reason why OnNetworkConnect() would not be triggered when trying to connect ?

very simple script... no call back...

  1.         void Awake () {
  2.                 Debug.Log("on va se connecter a TNET");
  3.                 TNManager.Connect("78.192.14.236", 54000);
  4.                 Debug.Log ("fait");
  5.         }
  6.  
  7.         public void OnNetworkConnect (bool success, string message)
  8.         {
  9.                 Debug.Log("OnNetworkConnect");
  10.                 if(success)
  11.                 {
  12.                         Debug.Log("onNetworkConnect : " + success + "-" +  message);
  13.                 }
  14.                 else
  15.                 {
  16.                         // il faut prévenir que le réseau ne fonctionne pas.
  17.                         Debug.Log("OnNetworkConnect: pas ok");
  18.                 }
  19.                
  20.                 // on demande la liste des channels disponible actuellement sur le serveur avec un seul joueur
  21.                 //              channelList = new TNet.List<string>();
  22.                 //              TNManager.client.BeginSend(Packet.RequestChannelList);
  23.                 //              TNManager.client.EndSend();
  24.                 statics.networkAvailable();
  25.         }
  26.         void OnNetworkError (string message)
  27.         {
  28.                 Debug.Log("onNetworkError : " + message);
  29.         }
  30.  

2
TNet 3 Support / TNetServer : Channel discussion
« on: February 26, 2014, 01:27:40 PM »
Hello,

I'm confused. I've been able to run the game with the 2 players connected, turn by turn. If one application goes background (player 2), the player 2 leaves the channel.

Player 1 is told that the player 2 has gone.

when player 2 is back (app is back in the foreground), how should I make sure that He will join the same channel and get back the game where He left it ?

Thank you for your help.

Hervé

Pages: [1]