UGS is not compatible with the old RELAY and LOBBY Packages logics

Relay and Lobby packages are deprecated and are now both replaced by the package “Multiplayer services” that includes both of them.

The old logic I have in games gives errors like:

GameManager.cs(41,51): error CS1729: ‘RelayServerData’ does not contain a constructor that takes 2 arguments

or

LobbyManager.cs(246,58): error CS0234: The type or namespace name ‘Instance’ does not exist in the namespace ‘Lobbies’ (are you missing an assembly reference?)

How to solve these kind of errors once we switch from old relay and lobby to the new UGS system?

1 Like

You can look at this thread for the alternative way of building the relay server data with the multiplayer services package:

The LobbyService is still available and in the same namespace, but now in a different assembly.

For your lobby manager, is it in an assembly definition? In that case, you would need to point to the new assembly.