|
You last visited: Today at 20:16
Advertisement
Special Characters[5165]
Discussion on Special Characters[5165] within the CO2 Private Server forum part of the Conquer Online 2 category.
08/13/2010, 20:39
|
#1
|
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
|
Special Characters[5165]
Hello everybody!
Im Looking for help....
You know , on all 5165 Sources you cant use special characters..(§, †... etc)
Can somebody help me about this ... Many ppl are looking for that
Thanks
If you have msn add me at
|
|
|
08/14/2010, 00:23
|
#2
|
elite*gold: 0
Join Date: Dec 2006
Posts: 94
Received Thanks: 29
|
my friend Fang (who is banned but saw this and wanted to help you) says that it's in the character creation file and to look for where it checks to see if it's a valid name.
also, here is his email: ill PM you his email.
|
|
|
08/14/2010, 15:02
|
#3
|
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
|
Go to GameClient.cs and go to the bottom of that cs file. You will see something like
Code:
public bool ValidName(string Name)
{
if (Name.IndexOfAny(new char[15] { ' ', '~', '[', ']', '#', '*', '\\', '/', '<', '>', ':', '"', '|', '?', '='}) > -1) //this is all windows folder invalids characters
{
return false;
}
else
{
return true;
}
}
Thats where you change the special characters that are not allowed
|
|
|
08/15/2010, 11:41
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Code:
public bool ValidName(string name)
{
foreach (char ch in name)
{
byte c = Convert.ToByte(ch);
if (!
((c >= 48 && c <= 57) ||
(c >= 65 && c <= 90) ||
(c >= 97 && c <= 122))
)
return false;
}
return true;
}
|
|
|
08/15/2010, 12:14
|
#5
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
|
Can use a regular expression.
Code:
public bool ValidName(string Name)
{
return !new Regex("[^a-zA-Z0-9]").IsMatch(Name);
}
|
|
|
08/27/2010, 22:47
|
#6
|
elite*gold: 0
Join Date: Sep 2008
Posts: 39
Received Thanks: 0
|
None of your codes worked.. still cant create a char with special characters
at the /accounts form it doesnt show the special characters.... but in the \Character folder it does...
|
|
|
08/27/2010, 23:31
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by 2087
None of your codes worked.. still cant create a char with special characters
at the /accounts form it doesnt show the special characters.... but in the \Character folder it does...
|
Oh he wants it so you CAN?
I gave him a code so you can't do it.
|
|
|
08/28/2010, 09:46
|
#8
|
elite*gold: 0
Join Date: Sep 2008
Posts: 39
Received Thanks: 0
|
Ye, i noticed that you CAN'T do it with the codes of you
But i'd like to be able to do it
Anyhows possible? o.o
|
|
|
08/28/2010, 15:55
|
#9
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Get rid of the validname check in CharacterMaking.cs
|
|
|
08/28/2010, 18:09
|
#10
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by 2087
Ye, i noticed that you CAN'T do it with the codes of you
But i'd like to be able to do it
Anyhows possible? o.o
|
do wat matty said...go to gameclient.cs
find:
Code:
public bool ValidName(string Name)
and replace ur whole void with mine LOL easiest thing u can do...(I just commented mine wasnt anything hard)
Code:
/*public bool ValidName(string Name)
{
if (Name.IndexOfAny(new char[15] { ' ', '~', '[', ']', '#', '*', '\\', '/', '<', '>', ':', '"', '|', '?', '='}) > -1) //this is all windows folder invalids characters
{
return false;
}
else
{
return true;
}
}*/
and then do what .Arco said above me.
not hard ^_^.
|
|
|
08/28/2010, 18:13
|
#11
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Code:
public bool ValidName(string Name)
Right click on valid name and click "Find All References", you will be given a list of all places where that method is used. Then double click each place on the list to be taken to it and remove it.
|
|
|
08/28/2010, 19:26
|
#12
|
elite*gold: 0
Join Date: Sep 2008
Posts: 39
Received Thanks: 0
|
Still don't work for me o.o
I'm getting error on that line
Code:
FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\" + C.Name + ".chr", FileMode.Open);
... maybe it can't read the special character?
|
|
|
08/28/2010, 22:15
|
#13
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
That's exactly WHY that check is needed.
|
|
|
08/29/2010, 11:47
|
#14
|
elite*gold: 0
Join Date: Sep 2008
Posts: 39
Received Thanks: 0
|
Ahh i see!
So am i right that it doenst work at all ? :P
|
|
|
08/29/2010, 12:47
|
#15
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
What exception do you receive from it?
If its ArgumentException, then its because of invalid characters in the path.
|
|
|
|
|
Similar Threads
|
[Question] Special Characters in 5165
08/27/2010 - CO2 Private Server - 2 Replies
Good morning community :)
Like everyone knows it's not possible to make a char with special Characters ( Like †, £, Ð and so on ).. That's poor :(
Well. Did anyone fixed this yet, or is it possible to do this at All ?
|
Special characters in name
12/16/2009 - Aion - 3 Replies
Seen ppl around with special characters in there name just like ". , _ -" etc.
Or even: "My Name" <--- First letter tall and the letter of the 2nd word also.
I didn't manage it yet. HelpzZz...:facepalm:
|
Special characters in name?
11/16/2008 - Silkroad Online - 5 Replies
Hey,
today i saw a guy with a thief alias, and in his thief alias there was a "?".
Also the same guy has some special characters in his grant name like ¤ or `.
I want to figure out how he made this, what do u guys think about it? Pk2 edit?
|
special characters in your name
04/04/2005 - WoW Exploits, Hacks, Tools & Macros - 7 Replies
wie ihr alle wisst ist man bei der namenseingabe streng limitiert, sprich es sind keine fremdzeichen erlaubt, allerdings scheint die gute alte ALT+blabla methode von dieser protection unbetastet zu sein.
öffnet eure Zeichentabelle (Start/Programme/Zubehör/Systemprogramme/Zeichenta belle) und sucht euch irgendein Fremdzeichen raus, nachdem ihr dieses markiert habt seht ihr rechts unten in der Ecke vom Programm den jeweiligen "ALT-Code".
Glaube nicht das man deswegen einen ban kassiert,...
|
All times are GMT +2. The time now is 20:16.
|
|