Are there any network examples for 5.4...

Just trying the Tanks networking example but hitting lots of bugs in 5.4 it looks like the API changes stop it from working, so any examples that work with 5.4?

Errors I’m seeing:

Managed to get it to work, but it’s a bit of a hack.

Can I ask… What was your hack? Id rather not have to rip and replace all my lobby scripts :confused:

@Arowx What did you end up doing? Apparently they simplified the matchmaker.

I just looked up the new API and replaced the old error lines with new ones, it seemed to work. I think I had to back track a bit through the call stack but I got it working.

1 Like

Read 5.4b documentation for fix it.
Lobby Manager:
public override void OnMatchCreate(bool success, string extendedInfo, MatchInfo matchInfo)
{
_currentMatchID = (ulong)matchInfo.networkId;

base.OnMatchCreate(success, extendedInfo, matchInfo);
}

public override void OnDestroyMatch(bool success, string extendedInfo)
{
if (_disconnectServer)
{
StopMatchMaker();
StopHost();
}
base.OnDestroyMatch(success, extendedInfo);
}

MatchDesc:
public void Populate(MatchInfoSnapshot match, LobbyManager lobbyManager, Color c)
{ …

I disabled OnGUIMatchList function.I dont need it.

Join Match:
matchMaker.JoinMatch(networkID, “”,“”,“”,0,0, lobbyManager.OnMatchJoined);

Regards

1 Like