Author |
Message |
BlueGoku Novice
Age:37 Gender: Joined: Jul 05 2005 Posts: 87 Location: Toronto Offline
|
Posted: Tue Oct 04, 2005 11:07 pm Post subject: obscene.txt |
|
|
|
|
Are there any plans for an obscene.txt like module or addition to the ASSS source itself? Here in HZ we rely heavily on obscene.txt because I don't want to censor my players and thus I have obscene.txt set to turn on by default. That way, if anyone doesn't want to hear any racist/offensive comments, they just simply don't turn off the filter.
Anyway, if this hasn't been created already, anyone have any pointers or something, so I can possibly get one of my dev guys working on it?
Thanks in advance. _________________ Owner of SSCE Hockey Zone.
SSC Billing Operator
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Tue Oct 04, 2005 11:48 pm Post subject: |
|
|
|
|
Censorship is obscene. _________________ 4,691 irradiated haggis!
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Wed Oct 05, 2005 2:56 am Post subject: |
|
|
|
|
I thought the way obscene.txt worked was that if a line of chat matched, it just got dropped. How do players "turn off" the filter?
In general, though, I agree with Ekted, which is why I haven't implemented it yet. I realize that some people want it, though, so I'd consider doing it, if someone explains exactly how it works. Or I'd merge it in the standard distribution if someone else writes it.
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Oct 05, 2005 3:24 am Post subject: |
|
|
|
|
Zone owners can set the obscene filter on by default. That means that any (pub/team) chat line containing a word or a part of a word that matches anything on obscene.txt, is dropped.
Players can toggle the obscene filter off by typing '?obscene' in the zone.
However, players can also set the obscene filter on with the same command. So players always toggle the obscene filter ON when they are in zones who have set the obscene filter to OFF by default.
As3 should not follow this line of censoring chat lines like that imo, instead as3 should blank out the obscene words if they are on the obscene filter.
For example:
Quote: | PlayerName> Why did you do that *********? |
Players can toggle this behaviour the same way they toggle the obscene filter in subgame (by typing ?obscene).
On a side note: In subgame, toggling the obscene filter to ON by default also disallows players to enter who have an obscene name. (A player name is obscene when a part of their name is on the obscene filter) _________________
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Wed Oct 05, 2005 3:53 am Post subject: |
|
|
|
|
I would be in favor of the feature only if it was client-side. hen players could setup their own obscene.txt file. Of course, this has the added bonus that they would have to type all the words that offend them. Muahaha!
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Oct 05, 2005 10:05 am Post subject: |
|
|
|
|
I think it would be better if its server-side: more newb-friendly.
|
|
Back to top |
|
|
BlueGoku Novice
Age:37 Gender: Joined: Jul 05 2005 Posts: 87 Location: Toronto Offline
|
Posted: Wed Oct 05, 2005 10:59 am Post subject: |
|
|
|
|
Ekted: The only offensive references on our obscene.txt are racist words.
A lot of zones just flat out don't allow racism and ban/silence for it on site. I set up an in-between so that only people who go out of their way to avoid the racism filter will get silenced.
Mav: That's a good idea, but I'm thinking it's a lot harder than coding a module that drops the whole sentence.
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Oct 05, 2005 11:14 am Post subject: |
|
|
|
|
BlueGoku, not really. You just replace the word from obscene.txt with ******* in the sentence.
However, I don't know how as3 exactly words so I can't be certain
|
|
Back to top |
|
|
Muskrat Server Help Squatter
Age:37 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Wed Oct 05, 2005 11:22 am Post subject: |
|
|
|
|
I agree. It wouldn't be much more work than a normal obscene module.
|
|
Back to top |
|
|
i88gerbils Oldbie Server Help
Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Wed Oct 05, 2005 5:35 pm Post subject: |
|
|
|
|
Obscene.txt - Just like the Infantry Forums!
---
Hmm, this is a Server Suggestion or Custom Code? I'll move it to Server Suggestion for now. [ed. - on second thought it may require either a patch or a module so i'm moving to Custom Code].
Can you do this with CB_CHATMSG? Or is the callback called after the chat message is sent to everyone?
if (net)
net->SendToArena(arena, p, (byte*)to, strlen(msg)+6,
ismacro ? cfg_msgrel | NET_PRI_N1 : cfg_msgrel);
if (chatnet)
chatnet->SendToArena(arena, p, "MSG:PUB:%s:%s", p->name, msg);
DO_CBS(CB_CHATMSG, arena, ChatMsgFunc, (p, to->type, sound, NULL, -1, msg));
|
Hm.. it looks like it happens afterwards.. _________________ Oldbie Server Help
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Oct 06, 2005 12:16 am Post subject: |
|
|
|
|
Wrong forum.
Why have a server suggestions forum at all? After all, everything "may require either a patch or a module". _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Thu Oct 06, 2005 5:15 am Post subject: |
|
|
|
|
Nope, CB_CHATMSG won't work. And if you want players to have the ability to turn it on and off independently, it'll need a bunch of work in chat.c, to construct two different lists of players (or at least one list, that may be a subset of the current list).
Also, how persistent is the setting? Is it stored on the client? Does the client send ?obscene=1/0 on every login? How does the client know what the server's default is?
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Thu Oct 06, 2005 6:02 am Post subject: |
|
|
|
|
Grelminar wrote: | Also, how persistent is the setting? Is it stored on the client? Does the client send ?obscene=1/0 on every login? How does the client know what the server's default is? |
The setting gets resed as soon as the client leaves the zone (or server). The client doesn't store the ?obscene setting by itself afaik, the server does that.
The client doesn't know the default setting of the server, it just doesn't see obscene messages when the filter is ON at the server. As soon a client does ?obscene, the server sends obscene messages to the client from that moment on and sends an arena message to the client that the obscene filter is toggled OFF.
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Oct 06, 2005 10:13 am Post subject: |
|
|
|
|
Anyone know what this does?
obscene.png - 7.46 KB
File downloaded or viewed 13 time(s)
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Thu Oct 06, 2005 11:20 am Post subject: |
|
|
|
|
oh, that might mean the client blocks obscene messages by itself?
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Thu Oct 06, 2005 1:47 pm Post subject: |
|
|
|
|
Yes, it might. Do you actually know what you're talking about, or are you just guessing? So far it looks like guessing, and I'd really like to know for sure before I start working on it.
|
|
Back to top |
|
|
BlueGoku Novice
Age:37 Gender: Joined: Jul 05 2005 Posts: 87 Location: Toronto Offline
|
Posted: Thu Oct 06, 2005 3:48 pm Post subject: |
|
|
|
|
Perhaps Ekted can shed some light on this?
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Oct 06, 2005 4:27 pm Post subject: |
|
|
|
|
I always assumed the client sent some flag (bit in login packet?) to the server, and the server did the filtering. But I don't know for sure.
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Thu Oct 06, 2005 5:38 pm Post subject: |
|
|
|
|
I'm not guessing, im theorizing from what I know already.
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Fri Oct 07, 2005 6:04 am Post subject: |
|
|
|
|
I suggest a server side command ?obscene with optional arguments. That way a player can control whether it is on or off with the auto-commands: ?obscene off.
Also the * method would have to convert words of any length to something like four *'s, otherwise people can try and guess the word.
One last thing, I helped Solo Ace write such a module a long time ago (and I think there was some agreement I couldn't distribute it).
|
|
Back to top |
|
|
Mr Ekted Movie Geek
Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Fri Oct 07, 2005 6:09 am Post subject: |
|
|
|
|
No matter what you do, you can't filter all possible "creative" text: sh1t, @ssh0le, etc.
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Fri Oct 07, 2005 9:38 am Post subject: |
|
|
|
|
Bak wrote: | Call a cop a "pig" to his face and he'll arrest you. |
There is a difference between calling a cop a "pig" and telling the cop that you find him a "pig".
Sorry for this offtopic reply.
Grelminar, if this module is created, would it be included in the next release version?
|
|
Back to top |
|
|
i88gerbils Oldbie Server Help
Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Fri Oct 07, 2005 9:58 am Post subject: |
|
|
|
|
Yes, one is slightly more respectful of another person's opinion, but that is all.
|
|
Back to top |
|
|
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Sat Oct 08, 2005 1:11 am Post subject: |
|
|
|
|
If it's implemented to my satisfaction, I'll at least include it in the contrib directory. I can't guarantee when I'll have time to actually do a release, but there's nothing preventing you from using it before that. I would like a release to happen soon, though, since there's some useful stuff that hasn't been released yet.
|
|
Back to top |
|
|
Chambahs Power attack
Joined: Jun 19 2005 Posts: 820 Offline
|
Posted: Sat Oct 08, 2005 2:30 am Post subject: |
|
|
|
|
like what? did you fix the ?quickfix/esc+c bug?
|
|
Back to top |
|
|
|