Room name length and character limits?
Options
Is there a max room name length and are there any not allowed characters? (Symbols etc) can it handle foreign character sets?
1
Best Answer
-
It would be better if you use properties. To enable somewhat server-side matchmaking, you could divide them into multiple keys and search for them (in JoinRandom).
Afaik, our serialization limits all strings to 32,767 chars (short max). We don't actively have a size limit at the moment but we also don't guarantee that your clients will do fine when you don't worry about scaling at all (think: 10.000 rooms in the list being sent to your clients)...
A binary format should be much more compact.
See also: http://gafferongames.com/building-a-game-network-protocol/reading-and-writing-packets/6
Answers
-
no any language and symbols limitiations.
length is not limited to, but it is subject to change in the future. so, be sane to not suffer from that change0 -
Can you give me some idea of max string length. Such as 255 characters? 64 characters? What is the current limitation?chvetsov said:no any language and symbols limitiations.
length is not limited to, but it is subject to change in the future. so, be sane to not suffer from that change0 -
Can we turn this around?
What do you plan to "store" in the room name?
And do you think this is the best place?0 -
It would be better if you use properties. To enable somewhat server-side matchmaking, you could divide them into multiple keys and search for them (in JoinRandom).
Afaik, our serialization limits all strings to 32,767 chars (short max). We don't actively have a size limit at the moment but we also don't guarantee that your clients will do fine when you don't worry about scaling at all (think: 10.000 rooms in the list being sent to your clients)...
A binary format should be much more compact.
See also: http://gafferongames.com/building-a-game-network-protocol/reading-and-writing-packets/6