- Home /
Matchmaker Matchlist on different devices.,Matchmaker MatchList issue
Hello! After the last launch of the application for an unknown reason yet stopped working method matchMaker.ListMatches. Matches are created correctly, no errors occur, but rooms are displayed only for the device where they were created (PC and Android device). I no longer see rooms created on other devices.
That's how new room created:
networkManager.matchMaker.CreateMatch(roomName,2,true,"","","", 0 , 0 , OnMatchCreate);
public void OnMatchCreate(bool success, string extendedInfo, MatchInfo matchInfo) { if (success) { Debug.Log("ROOM CREATED !");
MatchInfo hostInfo = matchInfo;
NetworkServer.Listen(hostInfo, 9000);
NetworkManager.singleton.StartHost(hostInfo);
}
else
{
Debug.LogError("Create match failed");
}
}
That's how list is calling:
networkManager.matchMaker.ListMatches(0.5,"", false, 0, 0, OnMatchList);
public void on Match List(bool success, string extended Info, List<Match Info Snapshot> matches)
{
if (success)
{
CurMatchesRoomNumbers.Clear();
CurMatchesList.Clear();
foreach (Match Info Snapshot match in matches)
{
CurMatchesList.Add(match);
CurMatchesRoomNumbers.Add(match.name);
}
}
else
{
….
}
},Hello! After the last launch of the application for an unknown reason yet stopped working method matchMaker.ListMatches. Matches are created correctly, but rooms are displayed only for the device where they were created (PC and Android device). I no longer see rooms created on other devices.
That's how new room created:
networkManager.matchMaker.CreateMatch(roomName,2,true,"","","", 0 , 0 , OnMatchCreate);
public void OnMatchCreate(bool success, string extendedInfo, MatchInfo matchInfo) { if (success) { Debug.Log("ROOM CREATED !");
MatchInfo hostInfo = matchInfo;
NetworkServer.Listen(hostInfo, 9000);
NetworkManager.singleton.StartHost(hostInfo);
}
else
{
Debug.LogError("Create match failed");
}
}
That's how list is calling:
networkManager.matchMaker.ListMatches(0.5,"", false, 0, 0, OnMatchList);
public void on Match List(bool success, string extended Info, List<Match Info Snapshot> matches)
{
if (success)
{
CurMatchesRoomNumbers.Clear();
CurMatchesList.Clear();
foreach (Match Info Snapshot match in matches)
{
CurMatchesList.Add(match);
CurMatchesRoomNumbers.Add(match.name);
}
}
else
{
….
}
}
Your answer
Follow this Question
Related Questions
How can I silence the network matchmaker 1 Answer
Why do my matching functions match more gems than they should? 0 Answers
Finding an object's neighbor C# 0 Answers
How to set different score values to different prefabs of an array? 0 Answers
UNET match making finding but not showing matches.. 1 Answer