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

Pages: [1]
1
TNet 3 Support / Re: Always disconnected in OS X's browser
« on: June 22, 2015, 05:48:52 AM »
Sorry to drag up an old post, but I'm having exactly this issue. Updating to the latest version of the library didn't help at all. Is there anything else you could suggest?

2
TNet 3 Support / Re: OnNetworkDisconnect not being called
« on: August 07, 2014, 05:09:27 AM »
Excellent, thanks. Any idea when it'll be up on the asset store?

3
TNet 3 Support / Re: OnNetworkDisconnect not being called
« on: August 06, 2014, 05:01:28 AM »
Aren - OnNetworkDisconnect gets called when the server is shut down, but not when the client device loses connection. This is because TNGameClient only calls onDisconnect() when it gets a Disconnect packet. Connection loss is dealt with as an Error packet, which sees that connection state is not Connected and calls onConnect(false) - I think this is a consequence of the way errors are dealt with in the TCP/UDP protocol files. You can test this easily by running the client on a mobile device and turning off the WiFi. Note that OnNetworkConnect(false) only gets called after the timeout, it doesn't seem to notice when the connection drops.

4
NGUI 3 Support / Localized UIInput
« on: July 16, 2012, 05:21:00 AM »
I had a problem with UIInput not working with localized text, because mDefaultText was still set to the pre-localized value.  I fixed it by making UIInput.Init() public, and adding the following lines to the bottom of UILocalize.OnLocalize:
  1. UIInput parentInput = transform.parent.GetComponent<UIInput>();
  2. if (parentInput) parentInput.Init();

I thought I'd leave this here in case this helps anyone else, or if there's a better solution someone can point me to.

Pages: [1]