Why is there a motto filter?
Motto filter is placed in src/game/PlayerInfo.cxx line 301 function PlayerInfo::isMottoReadable.
You can have any motto that is shorter then 5 letters. When motto length is longer then or equal to 5 letters
you need it to have more punctuation marks then 50% of the whole motto.
for example:
<example motto> - <comment>
!@#$ - works, everythink shorter then or equal to 4 letters works
!@#$! - does not work
!@#$!abcde - does not work, but:
!@#$!abcdef - works (punctuation marks / length = 5/11 = 0,45
Callsign filter is a good idea, but, i think, this motto filter is unnecessary.
Why mottos with more punctuation marks then letters are not allowed?
I read the comment in the source: it's a "readability filter".
But i want to be able to make my motto "unreadable" or use 1337 speech, for example.
Sorry for my bad english.
why motto filter?
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: why motto filter?
not a coding person myself so I can't help there, but am curious if you are referring to the email string shown behind your callsign in the game?
- Mark_IV
- Private First Class
- Posts: 157
- Joined: Wed Aug 25, 2010 12:24 am
- Location: Actually joined 2004 or 2005 as tyjr ;)
Re: why motto filter?
Yes, he is. It was changed to say Motto instead of Email in 2.4ttfkad wrote:not a coding person myself so I can't help there, but am curious if you are referring to the email string shown behind your callsign in the game?
-
- Private First Class
- Posts: 122
- Joined: Sat May 10, 2008 9:38 pm
Re: why motto filter?
ahh, so I'm the late one! Tks for the update
Re: why motto filter?
I think that "E-Mail" changed into "Motto" is because for the 1st time downloading the BZFlag the E-Mail field automaticly fills up. Now some peoples take that as a pearsonal information and do not wanna share it. i think so could be wrong.
To be or not to be. - W. Shakespeare
To bee or not to bee? I sure love Honee! - FangUp
Playing since 2005, with an unregistered nickname.
To bee or not to bee? I sure love Honee! - FangUp
Playing since 2005, with an unregistered nickname.
Re: why motto filter?
yes we changed email to motto since the game doesn't really need your email address and it is a bad idea to publish it.
The filter is there to prevent lame mottos.
The filter is there to prevent lame mottos.
JeffM