[CRIT][Java.Script] Failed running: [C] 38 Say2

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
masterrs
Posts: 42
Joined: Wed Mar 19, 2008 7:57 pm
Location: Łódź - Poland
Contact:

[CRIT][Java.Script] Failed running: [C] 38 Say2

Post by masterrs »

L2J Revision 3668:
L2JDP Revision 6924:

Code: Select all

Failed running: [C] 38 Say2 - L2J Server Version: ${l2j.revision} - DP Revision: ${l2jdp.revision}^Mjava.util.regex.PatternSyntaxException: Unclosed group near index 6(?i):(      ^        at java.util.regex.Pattern.error(Pattern.java:1713)        at java.util.regex.Pattern.accept(Pattern.java:1571)        at java.util.regex.Pattern.group0(Pattern.java:2533)        at java.util.regex.Pattern.sequence(Pattern.java:1806)        at java.util.regex.Pattern.expr(Pattern.java:1752)        at java.util.regex.Pattern.compile(Pattern.java:1460)        at java.util.regex.Pattern.<init>(Pattern.java:1133)        at java.util.regex.Pattern.compile(Pattern.java:823)        at java.lang.String.replaceAll(String.java:2189)        at com.l2jserver.gameserver.network.clientpackets.Say2.checkText(Say2.java:177)        at com.l2jserver.gameserver.network.clientpackets.Say2.runImpl(Say2.java:166)        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:92)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)        at java.lang.Thread.run(Thread.java:619)at com.l2jserver.gameserver.network.clientpackets.Say2.checkText(Say2.java:177)        at com.l2jserver.gameserver.network.clientpackets.Say2.runImpl(Say2.java:166)        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:92)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)        at java.lang.Thread.run(Thread.java:619)
So... When I'm writing something in chat window see what I'm writing. After enter is nothing happend. Text is not in chat window.

Code: Select all

		// Say Filter implementation		if (Config.USE_SAY_FILTER)line: 166 -->>>			checkText();  	 private void checkText()	    {		String filteredText = _text;		for (String pattern : Config.FILTER_LIST)line:177 --->>>			filteredText = filteredText.replaceAll("(?i)" + pattern, Config.CHAT_FILTER_CHARS);		_text = filteredText;	    } 
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: [CRIT][Java.Script] Failed running: [C] 38 Say2

Post by janiii »

what is the content of Config.FILTER_LIST ? what are your filter words? probably you use some special chars in your filter list like ( or : . you have to escape them with \\ . the filter list is a list of patterns/regexp so you need to align to some rules.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
masterrs
Posts: 42
Joined: Wed Mar 19, 2008 7:57 pm
Location: Łódź - Poland
Contact:

Re: [CRIT][Java.Script] Failed running: [C] 38 Say2

Post by masterrs »

Yes I had in chatfilter.txt Iike :) :> etc. but know I have word suck. And I don't have more errors in gameserver window but still is the same.
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: [CRIT][Java.Script] Failed running: [C] 38 Say2

Post by JIV »

try:
:\(
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [CRIT][Java.Script] Failed running: [C] 38 Say2

Post by _DS_ »

Check sample in the beginning of the chatfilter.txt
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply