Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ ROM
➜ Running the server
➜ Help yet again?
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Saint
(16 posts) Bio
|
Date
| Thu 31 Mar 2005 11:57 PM (UTC) |
Message
| 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 | Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #1 on Fri 01 Apr 2005 01:27 AM (UTC) Amended on Fri 01 Apr 2005 01:28 AM (UTC) by Robert Powell
|
Message
| 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.
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. |
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #2 on Thu 07 Apr 2005 05:03 AM (UTC) |
Message
| Indeed, inside that function are tests like this:
/*
* 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.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Wrath
USA (25 posts) Bio
|
Date
| Reply #3 on Sun 17 Apr 2005 05:50 PM (UTC) |
Message
| 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? |
Always remember he who increses knowledge increses sorrow.
And he who thinks mudding is easy is allways sorry. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,434 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top