why motto filter?

NOTE: this is an informal bug post place ONLY. Real bugs should be posted on GitHub
Post Reply
Kolorciuk
Private
Private
Posts: 3
Joined: Thu Dec 25, 2008 11:38 pm

why motto filter?

Post by Kolorciuk »

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.
dereliction of duty
Private First Class
Private First Class
Posts: 122
Joined: Sat May 10, 2008 9:38 pm

Re: why motto filter?

Post by dereliction of duty »

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?
User avatar
Mark_IV
Private First Class
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?

Post by Mark_IV »

ttfkad 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?
Yes, he is. It was changed to say Motto instead of Email in 2.4
dereliction of duty
Private First Class
Private First Class
Posts: 122
Joined: Sat May 10, 2008 9:38 pm

Re: why motto filter?

Post by dereliction of duty »

ahh, so I'm the late one! Tks for the update
User avatar
FangUp
Private First Class
Private First Class
Posts: 96
Joined: Fri Aug 21, 2009 2:53 pm
Location: Slovenia

Re: why motto filter?

Post by FangUp »

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.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: why motto filter?

Post by JeffM »

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.
ImageJeffM
Post Reply