Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Luxer on July 24, 2004, 09:23 AM

Title: Max Characters
Post by: Luxer on July 24, 2004, 09:23 AM
What is the max number of characters (letters) that battle.net allowes in a message?
Title: Re:Max Characters
Post by: hismajesty on July 24, 2004, 09:50 AM
230 truncated I think.
Title: Re:Max Characters
Post by: Spht on July 24, 2004, 10:05 AM
Quote from: Luxer on July 24, 2004, 09:23 AM
What is the max number of characters (letters) that battle.net allowes in a message?

If you're referring to a SID_CHATCOMMAND message, Battle.net truncates when text field is >0xe0 bytes (including null terminator).
Title: Re:Max Characters
Post by: LordNevar on July 24, 2004, 10:36 AM
Damn, was thinking the wrong thing. Was thinking charachter for usernames. Ooopppssss....  ::)
Title: Re:Max Characters
Post by: hismajesty on July 24, 2004, 11:18 AM
Quote from: LordNevar on July 24, 2004, 10:36 AM
Damn, was thinking the wrong thing. Was thinking charachter for usernames. Ooopppssss....  ::)

That's 16.
Title: Re:Max Characters
Post by: ChR0NiC on July 24, 2004, 12:29 PM
Since when? I thought it was 15....and a max password of 12
Title: Re:Max Characters
Post by: dxoigmn on July 24, 2004, 01:06 PM
Quote from: ChR0NiC on July 24, 2004, 12:29 PM
Since when? I thought it was 15....and a max password of 12

Password length restriction is a client-side thing, correct?
Title: Re:Max Characters
Post by: UserLoser. on July 24, 2004, 01:07 PM
Quote from: ChR0NiC on July 24, 2004, 12:29 PM
Since when? I thought it was 15....and a max password of 12

There can't be a limit on the password.
Title: Re:Max Characters
Post by: dxoigmn on July 24, 2004, 01:15 PM
Quote from: UserLoser. on July 24, 2004, 01:07 PM
Quote from: ChR0NiC on July 24, 2004, 12:29 PM
Since when? I thought it was 15....and a max password of 12

There can't be a limit on the password.

Well, there could be problems if you create accounts with passwords longer than 12 characters using a emulation client.  If you try to logon to that account via a real client, you won't be able (without some sort of hack).  This is similar to the one discussion about the password having to be lower-case because the real clients do it.
Title: Re:Max Characters
Post by: ChR0NiC on July 24, 2004, 01:18 PM
Quote from: dxoigmn on July 24, 2004, 01:15 PM
Well, there could be problems if you create accounts with passwords longer than 12 characters using a emulation client.  If you try to logon to that account via a real client, you won't be able (without some sort of hack).  This is similar to the one discussion about the password having to be lower-case because the real clients do it.

So basically the client has certain restrictions only enforced by the client itself, and not the server. Wow BNET sure is bloody smart >:(

PS: Yes I know how bloody smart they really are >:(
Title: Re:Max Characters
Post by: Soul Taker on July 25, 2004, 02:25 AM
Quote from: ChR0NiC on July 24, 2004, 01:18 PM
Quote from: dxoigmn on July 24, 2004, 01:15 PM
Well, there could be problems if you create accounts with passwords longer than 12 characters using a emulation client.  If you try to logon to that account via a real client, you won't be able (without some sort of hack).  This is similar to the one discussion about the password having to be lower-case because the real clients do it.

So basically the client has certain restrictions only enforced by the client itself, and not the server. Wow BNET sure is bloody smart >:(

PS: Yes I know how bloody smart they really are >:(
You try figuring out the length of a password after it's been hashed.
Title: Re:Max Characters
Post by: Lenny on July 25, 2004, 03:17 AM
Techinically, the password can be virtually any length since its always hashed into a 160-bit digest.  But my question is how does the server verify the account via Telnet connection since the password is sent plaintext?
Title: Re:Max Characters
Post by: Maddox on July 25, 2004, 03:38 AM
Quote from: Lenny on July 25, 2004, 03:17 AM
Techinically, the password can be virtually any length since its always hashed into a 160-bit digest.  But my question is how does the server verify the account via Telnet connection since the password is sent plaintext?

The server does the hash on the password itself and then compares it, obviously.
Title: Re:Max Characters
Post by: Maddox on July 25, 2004, 03:39 AM
Quote from: Spht on July 24, 2004, 10:05 AM
Quote from: Luxer on July 24, 2004, 09:23 AM
What is the max number of characters (letters) that battle.net allowes in a message?

If you're referring to a SID_CHATCOMMAND message, Battle.net truncates when text field is >0xe0 bytes (including null terminator).

Ok, you could have just said 224.
Title: Re:Max Characters
Post by: Spht on July 25, 2004, 10:24 AM
Quote from: Maddox on July 25, 2004, 03:39 AM
Quote from: Spht on July 24, 2004, 10:05 AM
Quote from: Luxer on July 24, 2004, 09:23 AM
What is the max number of characters (letters) that battle.net allowes in a message?

If you're referring to a SID_CHATCOMMAND message, Battle.net truncates when text field is >0xe0 bytes (including null terminator).

Ok, you could have just said 224.

Easier to remember the hex code rather than a number which looks random.
Title: Re:Max Characters
Post by: Maddox on July 27, 2004, 06:25 PM
Quote from: Spht on July 25, 2004, 10:24 AM
Easier to remember the hex code rather than a number which looks random.

I don't think in hexadecimal, sorry.
Title: Re:Max Characters
Post by: MyndFyre on July 27, 2004, 06:46 PM
Quote from: Spht on July 25, 2004, 10:24 AM
Quote from: Maddox on July 25, 2004, 03:39 AM
Quote from: Spht on July 24, 2004, 10:05 AM
Quote from: Luxer on July 24, 2004, 09:23 AM
What is the max number of characters (letters) that battle.net allowes in a message?

If you're referring to a SID_CHATCOMMAND message, Battle.net truncates when text field is >0xe0 bytes (including null terminator).

Ok, you could have just said 224.

Easier to remember the hex code rather than a number which looks random.

Just like it's easier to remember 1,000 meters in a kilometer than 5280ft in a mile, or 100 degrees at boiling instead of 212 degrees.  :P

Or 0K as opposed to -273.15oC or -459.67oF.
Title: Re:Max Characters
Post by: Spht on July 27, 2004, 07:33 PM
Quote from: Maddox on July 27, 2004, 06:25 PM
Quote from: Spht on July 25, 2004, 10:24 AM
Easier to remember the hex code rather than a number which looks random.

I don't think in hexadecimal, sorry.

Neither do I.  Kp does though.

Some numbers are meant to be read in hex so they're easier to remember, like Botnet's server port 0x5555 (21845).

See Myndfyre's reply for more examples/analogies.