maximum room name length 20 characters?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
BattleSpace
Posts: 41
Joined: 03 Oct 2005, 20:53
Location: Phoenix, AZ
Contact:

maximum room name length 20 characters?

Post by BattleSpace »

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
BattleSpace
Posts: 41
Joined: 03 Oct 2005, 20:53
Location: Phoenix, AZ
Contact:

Post by BattleSpace »

I should mention that I did shorten the ID to 20 characters and now my code works.

I couldn't find any maximum length for room names mentioned anywhere in the documentation...

Out of curiosity... why is there a limit?

Brent
patso
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Post by patso »

BattleSpace wrote:I should mention that I did shorten the ID to 20 characters and now my code works.

I couldn't find any maximum length for room names mentioned anywhere in the documentation...

Out of curiosity... why is there a limit?

Brent
What version you use. There was a problem with the long room names but as far as I remember this problem was fixed in on of the patches - the version is something that I don't remmember :).
BattleSpace
Posts: 41
Joined: 03 Oct 2005, 20:53
Location: Phoenix, AZ
Contact:

Post by BattleSpace »

Hi,

At the time this was happening I had 1.5.5. I have recently upgraded to 1.5.9 but have not tried it again.

Regards,
Brent
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Yes it is fixed.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply