The issue is, in the Player Prefab, if I toggle on the Cmd_EquipItem method to be synced it gives me this error when playing:
CoherenceBridge connection error Exception=Coherence.Connection.ConnectionDeniedException: Exception of type ‘Coherence.Connection.ConnectionDeniedException’ was thrown., DenyReason: InvalidChallenge, HasPayload: False logId=ToolkitBridgeConnectionError
The same thing happens if I try to sync any variable on a script I made (unity ones work fine, like Transform)
I haved baked the schema.
also tried creating a NetworkedPrefab with just this code:
public class NetworkingTest : MonoBehaviour
{
public int testInt;
}
if i try and sync testInt, the same error happens
Let me know if there is any information that would be useful to help debug this.
Hey, if you look a little earlier in the logs it will probably explain what caused the challenge to fail. That error is when you try to connect to a replication server (RS) when:
you’re trying to connect a client as a simulator (check for any simulator defines in the player script definitions)
you’re trying to connect without having baked (probably not this since you say you’ve baked)
you’ve baked but not uploaded the schemas to the cloud (if you’re connecting to a cloud RS)
you’re connecting to a locally launched RS and you’ve baked but you haven’t restarted the RS.
The error is not related to any particular kind of syncing, that’s your client failing to connect to the replication server in which case no network activity is possible.
Hey cary, thanks for the fast reply!
So I checked the things you mentioned, and I’m still getting the same issue.
checked, no simulators
checked, I have baked
checked, I’m not connecting to a cloud RS
checked, I used your steam integration sample as a starting point so im starting an RS server when hosting a session and and stop it when the game is closed
I also dont see any relevant log before that error
Aha, yeah. Sometimes windows can fail to kill the process that runs the RS. Glad you sorted it out. Next time this happens, you’ll probably notice an error in the start up of the RS:
This is saying that it tried to start the RS but failed to bind to the IP because you had another one running.