- Home /
photon marco polo tutorial issue with "peercreated"
Alright, I have been testing the marco polo tutorial lately and I have got in to some trouble with it. I've got my Photon server on (Got it in my comp, went to PhotonInstance1 then "Start Application", it runs) Then I've got a script to connect the server and join a random room, when it fails it creates one. But when I RUN the scene it just shows "connecting" then after a few secs it shows "PeerCreated" and remains like that. And it wont react to the servers status, it shows the same when its online and it shows the same when its offline.
This is my "RandomMatchMaker" code:
using UnityEngine;
using System.Collections;
public class RandomMatchMaker : MonoBehaviour {
void Start () {
PhotonNetwork.ConnectUsingSettings("0.1");
}
void OnGUI()
{
GUILayout.Label (PhotonNetwork.connectionStateDetailed.ToString());
}
void PhotonJoinedLobby()
{
PhotonNetwork.JoinRandomRoom ();
}
void OnPhotonRandomJoinFailed()
{
PhotonNetwork.CreateRoom(null);
}
}
And this is the link to photons "Marco Polo" tutorial:
http://doc.exitgames.com/v3/photonunitynetworking/marcopolotutorial
Hi, I know this is an old question, I have the same issue - did you ever solve this problem?
Thanks, Andreas.
Answer by P3t3rK · Jan 31, 2014 at 05:18 PM
Try Edit->Project Settings->Player and set Run in background to True.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Multiplayer not working 1 Answer
MODERATORS to reject all-bold questions 0 Answers
What are the major differences between Photon Socket Servers and Basic Unity Networking? 2 Answers
Unity photon network - game room 1 Answer