When implementing cloud code modules for handling Matchmaker allocations as outlined in the steps for using Third-party hosting with Matchmaker (see announcement post), you may get the following error when using one of the supplied Allocator Modules:
ArgumentException: Failed to lookup discriminator value for None. Possible values: MatchIdAssignment, MultiplayAssignment
As a result of supporting other hosting providers, there are additional assignment types for ticket types that are available in the Multiplayer Services SDK v2.1.0+, these include:
- NoneAssignment for pending allocations.
- IpPortAssignment for IP/Port connections to the dedicated game server.
- MatchIdAssignment for Peer-to-Peer connections.
- MultiplayAssignment for Multiplay connections.
- CustomAssignment to manage custom connection info to the dedicated game server.
You should review your Cloud code module allocation to best understand which assignment type you are expecting to receive. eg. on a successful allocation with GameLift, we return an IpPortAssignment (link)