Author Topic: Trying to send a packet while joining a channel. [solved]  (Read 1579 times)

Ulnari

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Trying to send a packet while joining a channel. [solved]
« on: April 26, 2015, 11:05:55 AM »
A problem I encountered when using TNAutoJoin with automatic first level loading was:
  1. Trying to send a packet while joining a channel. Ignored.

In my setup, the first level that is loaded includes a component that dynamically creates custom gameobjects (with TNManager.CreateEx + custom instantiation using RCC).

Channel join and first level loading starts parallel, and it happened that the level is loaded faster than the level is joined.

So when dynamically creating TNObjects within Component.Start(), first check if TNManager.isJoiningChannel is false. Otherwise delay creation until the OnNetworkChannelJoin fires.

Hope this helps someone :-)
« Last Edit: April 26, 2015, 01:43:07 PM by Ulnari »