Valhalla Legends Forums Archive | Battle.net Bot Development | Size Questions...

AuthorMessageTime
Smarter
I was wondering if someone could tell me the following:

1. Max character length of a message.
2. Max length of a username.
3. Max length of a password.
4. Max length of a channel owner.
5. What characters are not allowed in a username.
6. What characters are not allowed in a password.
7. What characters are not allowed in a channel.
8. What characters are not allowed in a message.
February 20, 2007, 8:49 PM
Barabajagal
Max message length is 223, not 255. 255 was for CHAT (telnet) connections.

Text able to be sent should be above character 0x20 (space). Anything lower than that, and you'll get disconnected and ipbanned for 5 minutes or more. Also, IIRC, Op channels can be longer than usernames.

Edit: Brew, your information about username lengths is bullshit.
February 20, 2007, 10:45 PM
Barabajagal
Also... Profile fields (sex, location, and description) may only be 512 characters (or 511, I forget which, but 512 seems more likely).

1. Max length of message = 223
2. Max length of username = 15
3. Max length of password = 12 (about this... DRTL will only go up to 12 characters, though the server may accept more characters, I'm not sure...)
4. Max length of a channel owner = What's that supposed to mean?
5. What characters are not allowed in a username = See the Battle.Net website?
6. What characters are not allowed in a password = Same as above?
7. What characters are not allowed in a channel = Same as below.
8. What characters are not allowed in a message = Everything above 0x20.
February 20, 2007, 11:12 PM
BreW
[quote author=[RealityRipple] link=topic=16361.msg165287#msg165287 date=1172013123]
Also... Profile fields (sex, location, and description) may only be 512 characters (or 511, I forget which, but 512 seems more likely).

1. Max length of message = 223
2. Max length of username = 15
3. Max length of password = 12 (about this... DRTL will only go up to 12 characters, though the server may accept more characters, I'm not sure...)
4. Max length of a channel owner = What's that supposed to mean?
5. What characters are not allowed in a username = See the Battle.Net website?
6. What characters are not allowed in a password = Same as above?
7. What characters are not allowed in a channel = Same as below.
8. What characters are not allowed in a message = Everything above 0x20.
[/quote]

heh. "8. What characters are not allowed in a message = Everything above 0x20."
How do we chat on battle.net? And I just tested the maximum username length. You're able to create names longer then 15 characters, just can't log on them. You get an IPBan when sending the 0x0A.
February 20, 2007, 11:45 PM
Barabajagal
Is there a reason you just quoted what I said?
February 20, 2007, 11:49 PM
Ringo
Passwords can be any lengh with any characters. Because all that is ever transmited is a SHR-1 hash.
The main problem would be the password being non-accessable from a client that wont let you enter the password.
Like for example, useing upper case characters when creating a new account would not be accessable from blizzards starcraft client.
February 20, 2007, 11:50 PM
BreW
Eh.. strange. I wrote something below that, too. then I tried to submit and it said I already posted. No idea.
February 20, 2007, 11:53 PM
Barabajagal
Oh, sorry.. typo.. Anything BELOW 0x20 isn't allowed. And that extra bit about usernames is pointless...
February 21, 2007, 12:10 AM
Smarter
Ok So:

1. Max length of message = 223
2. Max length of username = 15
3. Max length of password = Null
4. Max length of a channel owner = What's that supposed to mean?
5. What characters are not allowed in a username = See the Battle.Net website?
6. What characters are not allowed in a password = Same as above?
7. What characters are not allowed in a channel = Same as below.
8. What characters are not allowed in a message = Everything above 0x20.

Length for EACH profile field = 512

And by nothing lower then 0x20 do you mean the Char 0x20? (sorry, i'm not good with the alternitave usage of characters, I use C# and simply do e.KeyChar('*'); ;) lol.
February 21, 2007, 3:46 PM
Myndfyr
[quote author=Smarter link=topic=16361.msg165346#msg165346 date=1172072765]
Ok So:

1. Max length of message = 223
2. Max length of username = 15
3. Max length of password = Null
4. Max length of a channel owner = What's that supposed to mean?
5. What characters are not allowed in a username = See the Battle.Net website?
6. What characters are not allowed in a password = Same as above?
7. What characters are not allowed in a channel = Same as below.
8. What characters are not allowed in a message = Everything above 0x20.

Length for EACH profile field = 512

And by nothing lower then 0x20 do you mean the Char 0x20? (sorry, i'm not good with the alternitave usage of characters, I use C# and simply do e.KeyChar('*'); ;) lol.
[/quote]

Refer to the byte value 0x20.  C# chars are 2 bytes wide and will give you problems if you try to send them on Battle.net.
February 21, 2007, 4:36 PM
UserLoser
Pretty sure you can send a string of text in a chat message that is greater than 400 characters in size.  A while back I did some testing--I'm not saying the server relayed that message either but it allowed it.


IIRC, max length for channel name is 31
February 21, 2007, 7:15 PM
Barabajagal
I think you can send up to 512 characters, however, only the first 223 characters will ever be displayed publicly.
February 21, 2007, 7:19 PM
rabbit
And don't forget that all of them count towards the anti-spam calculations, regardless of how many are displayed.
February 22, 2007, 1:13 AM
Barabajagal
[quote author=rabbit link=topic=16361.msg165425#msg165425 date=1172106813]
And don't forget that all of them count towards the anti-spam calculations, regardless of how many are displayed.
[/quote]
Which is another reason why 223 is the recommended maximum.
February 22, 2007, 1:24 AM

Search