I’m reliably getting an error when I try to use a reference to set the maximum player count for a match. I tried casting my values to unsigned int which the value calls for but it appears to still not work.
CreateMatchRequest cmr = new CreateMatchRequest();
cmr.name = System.Environment.UserName + " Game";
//Doesn't work
cmr.size = (uint)_gameSettings.PlayerCount; <- int
//Works
cmr.size = 4;
cmr.advertise = true;
cmr.password = "";
cmr.matchAttributes = new Dictionary<string, long>();
networkMatch.CreateMatch(cmr, OnMatchCreate);
Thoughts?
The more I work with the new networking, the more I feel I need to look into using a 3rd party solution like Phonon. I can’t really wait around for UNet to evolve. I wouldn’t mind some input on that either.