I want players to able to use names that consist of only three letters. Like Leo. When I try to create with Leo, it says illegal name. Any idea how I can fix this? Thanks
Help yet again?
Posted by Saint on Thu 31 Mar 2005 11:57 PM — 4 posts, 20,619 views.
You need to look in comm.c.
What i did was search the code for the error that the player receives, "Illegal name" and found this section of code, in the nanny function. Something to note here is that everything to do with a pc's login is just about done in the nanny function.
So argument is being passed to check_parse_name to see if the name being given is valid (hope i said that right) and if the name is not a valid name then you get the error.
So this function check_parse_name is the one that says wether a name is correct or not. Have a look throught it and you will find a section that deals with string lengths.
Good Luck.
What i did was search the code for the error that the player receives, "Illegal name" and found this section of code, in the nanny function. Something to note here is that everything to do with a pc's login is just about done in the nanny function.
if ( !check_parse_name( argument ) )
{
send_to_desc( "{RIllegal name, try another.{x\n\r{GName: {x", d );
return;
}
So argument is being passed to check_parse_name to see if the name being given is valid (hope i said that right) and if the name is not a valid name then you get the error.
So this function check_parse_name is the one that says wether a name is correct or not. Have a look throught it and you will find a section that deals with string lengths.
Good Luck.
Indeed, inside that function are tests like this:
Whilst on the face of it that would seem to allow 3-character names, perhaps your version is different.
/*
* Length restrictions.
*/
if ( strlen(name) < 3 )
return FALSE;
if ( strlen(name) > 12 )
return FALSE;
Whilst on the face of it that would seem to allow 3-character names, perhaps your version is different.
I am having a similer problem but with mine its not the length it just says Illegal name, try another when the name its saying this to used to work fine I just moved the files from one folder to another.
name is stalker it used to work but for some reason now it will not. It is still in the player folder but even if i delete it and try to start this character as a new one the same error. Where can I look for illegal names?
name is stalker it used to work but for some reason now it will not. It is still in the player folder but even if i delete it and try to start this character as a new one the same error. Where can I look for illegal names?