Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Duplicate UserIDs

$
0
0
Hi!

So I've been working with photon for a bit over a year now and am loving it, when I first started using it I had setup so that the Photon NickName would be a person's steam name, so when they joined I'd just need to access that. In order to prevent duplicate names I hard-coded in something that checks each player in the room, and if their name was the same it'd add a "(1)" to the end of their name (then repeat for 2,3,4,5,etc.) Now it'd been a while since I had updated (didn't want to risk breaking anything) so I did that today and found out that i can no longer join rooms with a player in there who already has my name, making my workaround obsolete (since that was done after connection).

I've been digging through to see what I can do and short of re-coding any display to just show the steam name and setting the UserID to the unique steamID I can't seem to find anything else. Before I jump into recoding all of that is there any other way I can work around this?

The error I get when joining a room is this: Operation failed: OperationResponse 226: ReturnCode: 32746 (Join failed: UserId '(Omitted Username)' already joined the specified game (JoinMode=0).). Parameters: {} Server: GameServer

Thanks for any assistance!

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>