Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug with multiple local players on a client #688

Closed
toberge opened this issue Jun 2, 2024 · 0 comments · Fixed by #695
Closed

Possible bug with multiple local players on a client #688

toberge opened this issue Jun 2, 2024 · 0 comments · Fixed by #695
Labels
bug Something isn't working

Comments

@toberge
Copy link
Contributor

toberge commented Jun 2, 2024

Seems like they're being spawned more times than necessary:

Component [9] not found for [netId=38]
Component [6] not found for [netId=38]
Component [9] not found for [netId=39]
Component [6] not found for [netId=39]
Component [9] not found for [netId=40]
Component [6] not found for [netId=40]
Spawning local player 2
Spawning local player 3
Spawning network player 1
Spawning network player 0
Spawning local player 3
ArgumentException: An item with the same key has already been added. Key: 3
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000dd] in <cbc72d4a9767498db39486e941a498e3>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <cbc72d4a9767498db39486e941a498e3>:0 
  at MatchController.RegisterPlayer (PlayerManager player) [0x0000c] in <b1742e4d0b514f94aadc6a16ba563ce9>:0 
  at Peer2PeerTransport+<WaitAndInitializeFPSPlayer>d__62.MoveNext () [0x00444] in <b1742e4d0b514f94aadc6a16ba563ce9>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <92bdeb79bbf747978f6bdddb01d294a5>:0 

Server log seemed to spawn AI players, not sure if that was from another match or related.

@toberge toberge added the bug Something isn't working label Jun 2, 2024
@ghost ghost moved this to Ideas in Prosjekt-Spill-H22 board Jun 2, 2024
@github-project-automation github-project-automation bot moved this from Ideas to Done 🎉 in Prosjekt-Spill-H22 board Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done 🎉
Development

Successfully merging a pull request may close this issue.

1 participant