PDA

View Full Version : [share] autocensor/stopsay


astrid
09.10.2006, 09:21
monitor basic, trade and shout channels.
punishment: chatblock to user

cached_ip - IP of your cached
dictonary - "bad words" dictonary, 1 word (regular expression pattern) per line
chat_log_dir - path to server chat logs, it monitor log files by last access time
punish - on|off you can test new dictonary with this
punish_time - time to block, minutes

be careful with dictonary, matches is simple regexp on whole string.

tested on 200 online average, .NET required.

hope it will help :)

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
antimatbyastrid.rar — 5126 байт

TuMBLer
09.10.2006, 09:37
astrid, thanks!
will test it!

hater
09.10.2006, 10:53
astrid, thnx for sharing.
Mm, I run it, but nothing happened :(
May be because .NET required?
But I already have Microsoft .NET Framework(x64)..
May be it doesnt work because my server is already running?

Xari0n
09.10.2006, 11:01
Wow спасибо Астрид :)

hel
09.10.2006, 17:14
Thanks astrid.
Maybe my, from now, players will stop insulting other players on server. :)

hater
09.10.2006, 18:23
//ru
Кто-нибудь добился нормальной работы? :(
У меня не реагирует на мат никак.. Коннектов к CacheD'у нет.
ХЗ, в чем дело может быть..

Dmytro
09.10.2006, 19:14
//ru
Кто-нибудь добился нормальной работы? :(
У меня не реагирует на мат никак.. Коннектов к CacheD'у нет.
ХЗ, в чем дело может быть..

На сколько я понял она по логам рубит, а вот не у всех в логах пишет наверняка по русски (одни вопросики). =)

m4rk
09.10.2006, 19:18
Thx a lot, I'll test :D

PS: mmmh ¿could you add a feature to freeze the character? Would be helpful for some idiots saying really haaard insults XD

hater
09.10.2006, 19:24
Все, допер =)
Забыл про директорию с логами, думал что не те логи.
Все, работает супер.
Автору респект.

FidoW
09.10.2006, 20:13
Thx a lot, I'll test :D

PS: mmmh ¿could you add a feature to freeze the character? Would be helpful for some idiots saying really haaard insults XD

Would be interesting can add owns cached functions... like teleport (to jail) .. etc... what packet are u using to mute character ? maybe #18 PunishCharPacket("ddd") ¿???

I have a good CP write in PHP ... to teleport... ban... make announces... but this tool is definitive the best... not more bad words ingame hahaha, i have your tool running right now and works very well. Thx a lot!

Shawnmb
09.10.2006, 20:40
A useful feature suggestion would be to prevent spamming (ie people that sign in on walker and spam channels) using this method. Just a suggestion, maybe it could be implimented.

hex0id
10.10.2006, 06:02
A useful feature suggestion would be to prevent spamming (ie people that sign in on walker and spam channels) using this method. Just a suggestion, maybe it could be implimented.

It can be done with AmpeDx64 though.

2astrid, your antimat looking mats in nicknames also! I think that such check is not needed ;)


user: 3336->xer
10/10/2006 13:11:xx.xx0, 1,3336,0,-42654,159208,1360,я бы сходил на рейда,XEROX,

Charis
10.10.2006, 06:56
user: 3336->xer
10/10/2006 13:11:xx.xx0, 1,3336,0,-42654,159208,1360,я бы сходил на рейда,XEROX,

//ru
Можно вопрос- как ты добился что в логи ложаться нормально русские буквы? у меня там ??????
:(

//eng
Question - how to make log russian letters correctly, not with "?" signs?

Thanks

Stazis
10.10.2006, 07:54
that's why i was not angry when you shared those geos =)
respect for this work
keep up!

astrid
10.10.2006, 08:09
that's why i was not angry when you shared those geos =)
respect for this work
keep up!

Glad to hear it :) thank you Stazis

Stazis
10.10.2006, 09:09
ok - have some suggestions
whould be great and think not difficult to include in .ini option like

[Channel]
Shout=true
General=true
Private=false
Trade=true
Clan=false
Ally=false
Hero=true

mentioned option on
[Punishment]
chatban=true
teleport=true
bantime=60
tel_coordX=
tel_coordY=
tel_coordZ=

another possible option - lets say - GM should have possibility to Add words to dictionary - e.g. if GM says in TradeChannel +++fuck word is being added to dictionary.txt
[GMList]
List=HeadGM;AntiMatGM

indeed this is greate idea about total access to administering through chat-commands =) 1 thing is dangerous - exploits we can make with it.=)

hater
10.10.2006, 10:38
//rus
хотелось бы также, поддержку не только регекспов, но и отдельных слов.
Например, как-нибудь чтобы можно было выделить слово отдельное, например, поставив # перед словом.
пример: б*я
также были бы полезны маски, к примеру: х**сос

hel
10.10.2006, 12:12
hater:
//ru
Слово "потреблять", "сабля"? :P

hater
10.10.2006, 15:39
hel:
//ru
Можно было бы указать, что фильтровать только те слова, которые начинаются на "б*я".

Zuko
10.10.2006, 15:50
Really problem in russian language :)

seraphii
10.10.2006, 18:10
I test and does´nt work my ini is:
[config]
cached_ip=127.0.0.1
dictonary=dictonary.txt
chat_log_dir=D:\Server C4\CacheD\log\chat
punish=on
punish_time=10

I Try this:
[config]
cached_ip=127.0.0.1
dictonary=dictonary.txt
chat_log_dir=D:\Server C4\CacheD\log\chat
punish=true
punish_time=10

Log in the game writte the forbiden word, say it e nothing happen anybody help?

Stazis
10.10.2006, 18:54
think he need a
chat_log_dir="D:\Server C4\CacheD\log\chat\"

since he have a space in folder name

TheOrder
10.10.2006, 19:21
Great Share bro ! Will come in handy ;)

Stazis get on MSN pl0x :D !

Charis
10.10.2006, 19:34
//rus
Повторю вопрос.

Помогите пожалуста заставить сервер ложить в логи русские буквы вместо вопросиков...
Я так и не поняла, как это сделать :(

Русский шрифт установлен на машине... а вот толку... :(

TuMBLer
10.10.2006, 19:41
//rus
Повторю вопрос.

Помогите пожалуста заставить сервер ложить в логи русские буквы вместо вопросиков...
Я так и не поняла, как это сделать :(

Русский шрифт установлен на машине... а вот толку... :(
/rus/
collation должен быть cirllic в mssql
меняется в свойствах

Xari0n
11.10.2006, 00:07
Спасибо Астрид
у меня есть идея
добавить в опции, возможность замены мата на другое слово, символ
а так же, добавить словать исключений

paul
11.10.2006, 00:45
I thought this was the english part of the forums?

seraphii
11.10.2006, 00:53
I run all sugestions and dont work why...
chat_log_dir="D:\Server C4\CacheD\log\chat\" this show me error
chat_log_dir=D:\Server C4\CacheD\log\chat\ this not show nothing

what is wrong...

paul
11.10.2006, 00:56
could easily be the space in your folder name.

s00r_
11.10.2006, 01:50
I run all sugestions and dont work why...
chat_log_dir="D:\Server C4\CacheD\log\chat\" this show me error
chat_log_dir=D:\Server C4\CacheD\log\chat\ this not show nothing

what is wrong...

try
chat_log_dir=D:\Server C4\..(your_log_name)..\log\chat\

paul
11.10.2006, 02:26
also i just realized somethin - point it towards your L2Server folder not cached that worked fine for me.

forsage
11.10.2006, 08:37
/rus/
collation должен быть cirllic в mssql
меняется в свойствах
Не работает ... :( Проставил на всех базах CYRILLIC_CI_AS -
В логах пишет все равно вопросами....

/ENG
not work for me . :( Change collation to CYRILLIC_CI_AS for all
databases ... only ??? in the log...

hr
11.10.2006, 10:33
text logs contain right symbols?

Stazis
11.10.2006, 13:36
mssql collation has nothing to do with text logfiles
try to make this changes in registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Nls\CodePage]
"ACP"="1251"
"OEMCP"="1251"

and don't forget to restert windows after that

another place is chat_data.fmt file in LogD folder

8.0
10
1 SQLCHAR 0 50 "," 1 act_time ""
2 SQLCHAR 0 50 "," 2 log_id ""
3 SQLCHAR 0 50 "," 3 actor ""
4 SQLCHAR 0 50 "," 4 target ""
5 SQLCHAR 0 50 "," 5 location_x ""
6 SQLCHAR 0 50 "," 6 location_y ""
7 SQLCHAR 0 50 "," 7 location_z ""
8 SQLCHAR 0 50 "," 8 say SQL_Latin1_General_CP1251_CI_AS
9 SQLCHAR 0 50 "," 9 STR_actor SQL_Latin1_General_CP1251_CI_AS
10 SQLCHAR 0 50 "\r\n" 10 STR_target SQL_Latin1_General_CP1251_CI_AS

Stazis
11.10.2006, 13:41
try
chat_log_dir=D:\Server C4\..(your_log_name)..\log\chat\

yep just wondering why are you using CacheD logs instead of LogD - or if you are not running one - then L2Server\log\chat\

hr
11.10.2006, 17:20
try to make this changes in registry
or simply Control Panel->Regional Settings->Advanced

another place is chat_data.fmt file in LogD folder
actually not - there difined collations for columns, not codepages, it's simple format file ;) btw seems it is not used by logD

http://msdn2.microsoft.com/en-us/library/aa337558.aspx
http://msdn2.microsoft.com/en-us/library/ms191516.aspx

another real place for codepage in sql is CODEPAGE option for BULK INSERT statement
http://msdn2.microsoft.com/en-us/library/ms188365.aspx
(look @ lin_BulkInsert)

mastery
11.10.2006, 20:14
great tool! works great! big thanks.
if possible, more options to configure like was suggested in 1 page..

astrid
11.10.2006, 21:02
great tool! works great! big thanks.
if possible, more options to configure like was suggested in 1 page..

thank you. i will make update when i got more free time.

forsage
12.10.2006, 02:23
mssql collation has nothing to do with text logfiles
try to make this changes in registry

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Nls\CodePage]
"ACP"="1251"
"OEMCP"="1251"



Tnank you :)
Now all work fine !

hel
12.10.2006, 03:50
Russian badword "бля", those letters must be first, not middle or last! (because it's letters can be used in "good" words)
How I can do it?

Xari0n
12.10.2006, 06:35
Russian badword "бля", those letters must be first, not middle or last! (because it's letters can be used in "good" words)
How I can do it?

try 2 use space :)

hel
12.10.2006, 09:13
If that word is first, then space don't help with...

astrid
12.10.2006, 20:54
currently , (comma) indicate start and end fo chat string.

use this in dictonary:
бля
,бля
бля,
,бля,

hel
13.10.2006, 07:55
astrid:
"String"?
Maybe you mean "word"? ;)
Very good chat monitor. Respect!

FidoW
13.10.2006, 08:30
astrid:
"String"?
Maybe you mean "word"? ;)
Very good chat monitor. Respect!
a word can be a string... but basically.. .a string is any finite sequence of characters (i.e., letters, numerals, symbols and punctuation marks)

srh
13.10.2006, 14:21
astrid, thanks!

//rus
Ещо бы кто словарик расшарил нормальный с матами =)

serjr
13.10.2006, 16:56
/rus

http://yusuppresents.narod.ru/rus.htm например :)
а вообще вот бы такой двигло кто реализовал http://www.tcen.ru/antimat/ (там кнопка попробовать есть, например вот такой текс отлично детектится Сабля упала на грабля и отрубила X y Й ) (x и y латиница).

/eng
here is thery good word filter on perl http://www.tcen.ru/antimat/ and here you can test it http://www.tcen.ru/antimat/action.html

s00r_
13.10.2006, 22:05
/rus

http://yusuppresents.narod.ru/rus.htm например :)
а вообще вот бы такой двигло кто реализовал http://www.tcen.ru/antimat/ (там кнопка попробовать есть, например вот такой текс отлично детектится Сабля упала на грабля и отрубила X y Й ) (x и y латиница).

/eng
here is thery good word filter on perl http://www.tcen.ru/antimat/ and here you can test it http://www.tcen.ru/antimat/action.html

/rus аха, чтобы сразу в чат лило _бип_ ;) , и спикер пикал тоже,
звиняйте за оффтоп...

/eng this not translation

ALECS
14.10.2006, 13:29
//ru
Спасибо astrid

kin
19.10.2006, 16:59
currently , (comma) indicate start and end fo chat string.

use this in dictonary:
бля
,бля
бля,
,бля,

There is the problem with it. When you use
,бля,
it won't stop the phrase like that "Я бля ща тебя.." and when you use
бля (without spaces)
it stops every word including this! In other case we have to insert 1 word 4 times, as you shown.
Is there any chanse to fix it?

Grundik
23.10.2006, 01:40
<rus>
Давайте все по возможности напишем один большой словать матов, я вот тут немного посидел и у меня получилось около 430 матов на 10 языках
http://www.mytempdir.com/1010010
Если каждый подключит фантазию то можно и до десятка тысяч довести, главное чтобы сам Антимат прохавал
</rus>

AHTUKULLEP
23.10.2006, 05:36
Кластный словарик, но, проблему опяттаки, за слобо сабля банит за БЛЯ, а это есть плохо!

Zil
23.10.2006, 06:59
Я чуть не обоссался от смеха, когда прочитал словарик Грюндика :)
Сейчас, без позволения создателя, переделываем прогу, чтобы контролировались лишь каналы main и trade. Надеюсь, что Astrid против иметь ниче не будет ;)

Starting to remake autocensor for main and trade channels.
Grundik, respect :)))

kin
23.10.2006, 16:11
/rus
Чтоб не банил за слово сабля, надо писать так:
(пробел)бля(пробел)
,бля,
(пробел)бля
бля(пробел)
В этом случае все ок! А словарь точно прикольный :)
/rus
Explained some word wich can't be translated to English :D

top-gear
03.01.2007, 06:24
one question: do you run this on your l2server or your cached box?

Xari0n
03.01.2007, 11:30
Поставил приватную версию AmpeD.
Автоцензор начал постоянно крешиться.

Namenlos
12.01.2007, 01:50
<rus>
Давайте все по возможности напишем один большой словать матов, я вот тут немного посидел и у меня получилось около 430 матов на 10 языках
http://www.mytempdir.com/1010010
Если каждый подключит фантазию то можно и до десятка тысяч довести, главное чтобы сам Антимат прохавал
</rus>


=))) У меня на русском языке получилось 1360 слов, из них 400 повторения но с запятыми и т.п. Сейчас на транслит перевожу =))
По прогнозам словарик будет 5-6 тысяч слов.

//ENG
My dictionary consists over 1360 RUSSIAN (only) bad words. Dear brothers, you have to think - its great language, the biggest and very usefull. I think 2000 russian bad word dictionary it will be not final. =))

kin
12.01.2007, 09:08
Поставил приватную версию AmpeD.
Автоцензор начал постоянно крешиться.
Запусти CMD и уже через него антимат свой. Когда крашнется, увидишь что ему не понравилось.

top-gear
12.01.2007, 17:56
Запусти CMD и уже через него антимат свой. Когда крашнется, увидишь что ему не понравилось.

ﭖﭽﭸ תּﯤﺄﺉﺅ ﮓפּﮇוֹﮬ ﭚﮏﮅ

kin
12.01.2007, 22:53
TopGear, please translate your post. Can't understand you (at least tell us the lanquage you used :) )!

Xari0n,
Стукнись в аську - скажу в чем проблема скорее всего, хотя у меня нет приватной версии.

Кстати, поправка к моему посту наверху:
(пробел)бля(пробел)
,бля,
(пробел)бля,
,бля(пробел)

Drag
02.02.2007, 18:27
Thanks! It help a lot! :)

Namenlos
27.03.2007, 17:58
Need help!
Wonderfull tool but i have got a problem on win_server x64.
Loading dictionary... Ok
When anybody say bad word from dictionary, my autocensor detect it and shut down himself with error

censor.exe has encountered a problem and needs to close.... bla bla blaaa..
Please, help me to fix this.

Language is russian.

Namenlos
28.03.2007, 12:02
So nothing?

astrid
28.03.2007, 23:09
Never enounter this problem...

PM me or post here please your dictonary regexp patterns and fragment from chatlog where autocensor crash. i will see if i can fix

edit:
One more thing: make sure that you configured cached IP in ini and autocensor has access to this IP.

ZeniMax
29.03.2007, 00:45
Thank you for your tool! great share!

smeli
29.03.2007, 13:29
thank for share

besides this "mat" (who antimat fights) is related to tatar invaders or to native russians

Namenlos
01.04.2007, 11:11
Antimat did not write logs. Just display it and shutdown himself. My dictionary is in attachment. But even i make a dictionary with 1 word i have got this error again.

Dmytro
02.04.2007, 07:01
Antimat did not write logs. Just display it and shutdown himself. My dictionary is in attachment. But even i make a dictionary with 1 word i have got this error again.

Create dir for logs - "log" or "logs".