maximum room name length 20 characters?
Posted: 13 Oct 2007, 22:41
Hi Lapo... or anyone else that may know.
I generate a rather long room name. I store this value as the game room ID in mySQL. The ID is composed of the game ID: (0003) + the Date (09162007) and Time Stamp (163757) + some random number... in this case "873".
So the complete room name in this example: 000309162007163757873
I have found that when I create a new room... the last digit is dropped as shown in my console message below.
[gameHandler.as]: checking if room exists with name 000309162007163757873
[gameHandler.as]: room = null
[gameHandler.as]: room does not exist... creating it.
[SQL_Login.as]: Internal Event: newRoom
[SQL_Login.as]: new room created
[gameHandler.as]: internal event: newRoom
[gameHandler.as]: room 00030916200716375787 created.
In this last line... the "3" at the end was dropped.... no wonder "getRoomByName" was failing...
Regards,
Brent
I generate a rather long room name. I store this value as the game room ID in mySQL. The ID is composed of the game ID: (0003) + the Date (09162007) and Time Stamp (163757) + some random number... in this case "873".
So the complete room name in this example: 000309162007163757873
I have found that when I create a new room... the last digit is dropped as shown in my console message below.
[gameHandler.as]: checking if room exists with name 000309162007163757873
[gameHandler.as]: room = null
[gameHandler.as]: room does not exist... creating it.
[SQL_Login.as]: Internal Event: newRoom
[SQL_Login.as]: new room created
[gameHandler.as]: internal event: newRoom
[gameHandler.as]: room 00030916200716375787 created.
In this last line... the "3" at the end was dropped.... no wonder "getRoomByName" was failing...
Regards,
Brent