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 - ibaanb

Pages: [1] 2
1
TNet 3 Support / Re: Socket null exception error
« on: February 19, 2015, 04:05:47 AM »
I tried to check the exception message when I start Udp function (TNUdpLobbyClient.cs : line 56), it will show "Access denied" 2 times before socket is null. However, if it works, the second call start function will not have an exception.

2
TNet 3 Support / Re: PS4 game crashes at GetAllNetworkInterfaces() function
« on: February 19, 2015, 12:24:15 AM »
I tried to create empty unity project and put the plugin .Net socket that I got from Unity. The error is same when I call GetAllNetworkInterfaces function. I tried to test the other function like GetIsNetworkAvailable function and it is fine.

3
TNet 3 Support / Re: Socket null exception error
« on: February 19, 2015, 12:07:26 AM »
I using Tasharen version 1.9.9. I discovered that error is occur when I enabling TNLobbyClient in TNUdpLobbyClient.cs. If start function failed in the first time (line 56) then the socket is null is detected when TNUdpLobbyClient use update function to send Udp data (line 149).

4
TNet 3 Support / Socket null exception error
« on: February 18, 2015, 08:03:34 AM »
Hi,

After using this function TNManager.StartUDP() and enabling TNLobbyClient in TNUdpLobbyClient.cs, sometimes this error would occur: "InvalidOperationException: The socket is null. Did you forget to call UdpProtocol.Start()?" at TNet.UdpProtocol.Send() in TNUdpProtocol.cs.
I would like to know what causes this error because it does not happen 100% and how to fix it because after appearing it is not possible to continue playing the game.

Thanks,

Pathompong Nakpathom

5
TNet 3 Support / PS4 game crashes at GetAllNetworkInterfaces() function
« on: February 18, 2015, 07:54:03 AM »
Hi,

I'm currently making a multi-player game for PS4 that supports 2-8 players via LAN and WAN. However, when joining a host that does not support UPnP the game would crash and exit game. I discovered that it crashed at GetAllNetworkInterfaces() function in TNTools.cs. I cannot see any debug information, so I'm not sure what the error is caused from. This error specifically occurs when the client(PS4 Devkit) is using a different ISP to join a game, but the Host is using an ISP that does not support UPnP.

Thanks,

Pathompong Nakpathom

6
TNet 3 Support / (Solved) How to detect kNPToolKit_ConnectionUp
« on: February 13, 2015, 04:44:12 AM »
I want to check that internet connection is down or not so I want to use kNPToolKit_ConnectionUp to check it.

7
Did you have any work around to fix this?

8
So it can be because Port that host use is already used by other program?
I can join other but other can't join if I'm host.

9
Why I got this message when I'm connect to other player "An existing connection was forcibly closed by the remote host" I've use udplobby server?
please help me.

Thank you IBaa.

10
TNet 3 Support / Looping add server
« on: October 09, 2014, 03:11:51 AM »
I use this code

  1. TNServerInstance.Start (int tcpPort, int udpPort, string fileName, Type type, IPEndPoint remoteLobby).
  2.  

and I get this in server console image in attachment.

And if this problem occur because UDPLobby so how to open TCPlobby?

11
TNet 3 Support / Re: TNet Server on Amazon EC2 linux
« on: October 09, 2014, 02:51:52 AM »
Thank very much MCoburn.

I'm able to start it in centOS and every work fine.

12
TNet 3 Support / Re: TNet Server on Amazon EC2 linux
« on: October 06, 2014, 11:58:46 PM »
When I'm Build TNServer.sln
it's alway give same error on linux and windows.

Quote
Build FAILED.
Errors:

/home/ibaanb/TNetServer/TNServer.sln (default targets) ->
(Build target) ->
/home/ibaanb/TNetServer/TNServer.csproj (default targets) ->
/usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

   : error CS2001: Source file `Assets/TNet/Common/TNBuffer.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNDatagram.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNList.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNPacket.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNPlayer.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNServerList.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNTcpProtocol.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNTools.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNUdpProtocol.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Common/TNUPnP.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNChannel.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNFileServer.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNLobbyLink.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNLobbyServer.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNGameServer.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNTcpLobbyLink.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNTcpLobbyServer.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNTcpPlayer.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNUdpLobbyLink.cs' could not be found
   : error CS2001: Source file `Assets/TNet/Server/TNUdpLobbyServer.cs' could not be found

    0 Warning(s)
    20 Error(s)

13
TNet 3 Support / [SOLVE] TNet Server on Amazon EC2 linux
« on: October 02, 2014, 06:50:43 AM »
What can I do to make TNetserver run on linux instance? And how it done?

Can I build TNetserver project and how to do it?


14
Ping is working.
Thank you.

15
I've add your code

  1. public void Ping (IPEndPoint udpEndPoint, OnPing callback)
  2.     {
  3.         onPing = callback;
  4.         mPingTime = DateTime.Now.Ticks / 10000; // <-- this was missing
  5.         BeginSend(Packet.RequestPing);
  6.         EndSend(udpEndPoint);
  7.     }

to TNGameClient's Ping() function
and

  1. case Packet.RequestPing:
  2. {
  3.     BeginSend(Packet.ResponsePing);
  4.     EndSend(ip);
  5.     break;
  6. }

to TNTcpLobbyServer.cs
but still got the same result not thing happen.

Pages: [1] 2