Creating a match through UNET match maker on WSA causes AccessViolationException.
Steps to recreate in Unity:
- Create empty gameobject, add NetworkManager component
- Create new prefab with NetworkIdentity component, name it player
- Drag the player prefab to the NetworkManager as player prefab under Spawn Info
- Add the script below as new component to the same gameobject (with name CreateMatch):
using UnityEngine;
using System.Collections;
using UnityEngine.Networking.Match;
using UnityEngine.Networking;
using UnityEngine.Networking.Types;
public class CreateMatch : MonoBehaviour {
private int appId = 113202;
void Start () {
NetworkManager manager = GetComponent<NetworkManager>();
manager.StartMatchMaker();
manager.matchMaker.SetProgramAppID((AppID)appId);
manager.matchMaker.CreateMatch("roomname", 2, false, "password", (CreateMatchResponse matchInfo) => {
Debug.Log("Created game: " + matchInfo.success);
manager.OnMatchCreate(matchInfo);
});
}
}
-
Save scene
-
Build for WSA (8.1, local machine, leave debugging options unchecked)
-
Open the solution in VS
-
In VS, Under Package.appxmanifest → Capabilities, check Internet (client) and Internet (client & server)
-
Debug on local machine
When debugging, I get AccessViolationException once the start script runs. This happens both on desktop and phone.
Yeah, I’ve made a bug report of it, but posting this hoping someone might have ideas or suggestions here. Any chance to get someone looking into this? Because of this, the matchmaking (networking) is now completely broken for Windows Store Applications.