Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Saint
(16 posts) bio
|
| Date |
Thu 31 Mar 2005 11:57 PM (UTC) [ quote
] |
| 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 (349 posts) bio
|
| Date |
Reply #1 on Fri 01 Apr 2005 01:27 AM (UTC) [ quote
] 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. |
EldhaMUD Game Developments
The_Fury: Lead Developer, Head Coder
http://fury.eldhamud2.org
| top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #2 on Thu 07 Apr 2005 05:03 AM (UTC) [ quote
] |
| 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) [ quote
] |
| 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.
1,948 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )