HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about naming characters

04-22-2004, 08:30 PM#1
The Gearhead
As in "The_Gearhead"... what are all the possible characters that can go into a WC3 battle.net name or Profile name.

I believe its less than 90 but it'd be useful to have a number to work with when assigning numbers to characters.
04-22-2004, 10:09 PM#2
The Gearhead
And I need a local integer array of variable size...

How does one define a local array?

local integer x[0] =
local integer x[1] = etc?
04-23-2004, 12:28 AM#3
SADISM
Do the following:

local integer array x

Then you can calll upon it using x[1], x[2], etc.
04-23-2004, 04:09 AM#4
Narwanza
Unlike JAVA, array sizes are not 'set'. You just create an array like SADISM said and it will hold the type from values of 0 - 8192 (or close to that). They are not dynamic unfortunatly. You can only have an array index that is 0 > < 8192. Since warcraft uses the alpha-numeric keys obviously you would already know that there are 26 + 10, but for the other, I don't know. If anyone knew what the ascii values stopped at, then you could make a function something like this to find out. This may be way more than you need to do, but it would figure it out.
04-23-2004, 04:43 AM#5
The Gearhead
ASCII stops at 255 I know that, all ASCII characters are 8 bits total.

What I want to know is what is the range that WC3 supports in naming schematic, it might be possible to do with far fewer characters. When doing mathematical functions, and you consider the sum total of every letter in somebody's name -- which is often quite long -- that's a lot of math. That, and every letter changes the equation, so why incorporate letters that will never be used as a possibility in any mathematical sequence. Impossible letters such as the ASCII codes for 1-31 which are always used in formatting. So getting WC3 to recognize those letters is pointless, they will never be in a player's name. Remember, these letters will be manipulated quite significantly... I believe the mathematics for SHA-1 manipulates a combination of letters something like 200 times using many math functions including non-native JASS functions like bitwise and, or, and xor.
04-23-2004, 12:26 PM#6
Cubasis
I did tests on this awhile ago, and the chars I could put in a Battle.Net account name were the following:

ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_

That is... A == a

I don't think there are any other, but there very well could be, I only tested most of the characters that I had access too !"#$%&/()=<>.,

Cubasis
04-23-2004, 01:00 PM#7
The Gearhead
Yeah and all of those are available to single player, so I should include those.

I will have to test the limits later... I hope single player names dont support a full ascii range.
04-23-2004, 02:02 PM#8
Narwanza
Cubasis, there are more there than that. Try inputting alt + 21, or alt + 0164. They give you characters such as § and ¤.
04-23-2004, 09:09 PM#9
The Gearhead
Characters which cannot be used in a battle.net name, but may or may not be usable in a singleplayer name.
09-08-2004, 12:41 AM#10
-={tWiStÄr}=-
Quote:
Originally Posted by Narwanza
Cubasis, there are more there than that. Try inputting alt + 21, or alt + 0164. They give you characters such as § and ¤.
I dont think those work. and if they did it would be practicly impossible to test. i just know that alt 142 doesnt work Ä cause i wanted my b.net name to be like my name here, but none of the chars cept the normal letters worked