I’ve seen a few other people ask around about the same topic, but their solutions aren’t working for me.
I’ve been at this for about 12hrs and haven’t been able to find the solution.
First problem:
Using the video’s code:
public override void OnClientConnect(NetworkConnection conn)
{
base.OnClientConnect(conn);
Debug.Log (“Message here”);
{
The script states that the phrase: OnClientConnect(NetworkConnection conn) is obsolete.
Going through the documentation for the script, it has been replaced with the phrase:
public override void OnClientConnect()
So, my new code being:
public override void OnClientConnect()
{
base.OnClientConnect();
Debug.Log (“Message here”);
{
Throws an error of:
There was no active transport when calling NetworkServer.Listen, If you are calling Listen manually then make sure to set ‘Transport.activeTransport’ first
I tried the whole day where to fill in the ‘Transport.activeTransport’ but I’ve not been able to. I am completely stuck in the course.