Simple Chatroom.
Whats supposed to happen
- text object that lists every PeerAlias and their PeerID in the room (including the host)
- as soon as someone joins/leaves the room, update that list
What actually happens
I tried to use an Array, but they don't support strings, so I tried with a Dictionary
every tick it would set the Key and the Value for that key to this:
Key: multiplayer.peerAliasAt(loopindex)
Value: multiplayer.peerIDat(loopindex)
but since Dictionaries don't support numbers I have to do it like this
Key: multiplayer.peerAliasAt(multiplayer.peerCount)
Value: multiplayer.peerIDat(multiplayer.peerCount)
In theory, every time a new peer joins it should just get the Alias and ID of the newest peer.
I don't know if its really obvious and it just something that I missed. Can somebody help.