Page 1 of 1

Have error: No Public Constructors

Posted: Sun Jul 17, 2011 5:39 pm
by zippel

Code: Select all

 com.l2jserver.gameserver.model.quest.Quest showErrorFile "__init__.py", line 277, in onAdvEventFile "__init__.py", line 218, in subclassopcionsTypeError: no public constructors for com.l2jserver.gameserver.network.serverpackets.SystemMessage     at org.python.core.Py.TypeError(Unknown Source)    at org.python.core.PyJavaInstance.__init__(Unknown Source)    at org.python.core.PyJavaClass.__call__(Unknown Source)    at org.python.core.PyObject.__call__(Unknown Source)    at org.python.pycode.serializable._pyx1310922124984.subclassopcions$8(__init__.py:218)    at org.python.pycode.serializable._pyx1310922124984.call_function(__init__.py)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyFunction.__call__(Unknown Source)    at org.python.core.PyObject.__call__(Unknown Source)    at org.python.pycode.serializable._pyx1310922124984.onAdvEvent$12(__init__.py:277)    at org.python.pycode.serializable._pyx1310922124984.call_function(__init__.py)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyFunction.__call__(Unknown Source)    at org.python.core.PyMethod.__call__(Unknown Source)    at org.python.core.PyObject.__call__(Unknown Source)    at org.python.core.PyObject._jcallexc(Unknown Source)    at org.python.core.PyObject._jcall(Unknown Source)    at org.python.proxies.main$Quest$396.onAdvEvent(Unknown Source)    at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:448)    at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.processQuestEvent(L2PcInstance.java:1747)    at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:208)    at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62)    at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1026)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source)

Code: Select all

 com.l2jserver.gameserver.model.quest.Quest showErrorTraceback (innermost last):File "__init__.py", line 277, in onAdvEventFile "__init__.py", line 143, in subclassopcionsTypeError: no public constructors for com.l2jserver.gameserver.network.serverpackets.SystemMessage     at org.python.core.Py.TypeError(Unknown Source)    at org.python.core.PyJavaInstance.__init__(Unknown Source)    at org.python.core.PyJavaClass.__call__(Unknown Source)    at org.python.core.PyObject.__call__(Unknown Source)    at org.python.pycode.serializable._pyx1310922124984.subclassopcions$8(__init__.py:143)    at org.python.pycode.serializable._pyx1310922124984.call_function(__init__.py)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyFunction.__call__(Unknown Source)    at org.python.core.PyObject.__call__(Unknown Source)    at org.python.pycode.serializable._pyx1310922124984.onAdvEvent$12(__init__.py:277)    at org.python.pycode.serializable._pyx1310922124984.call_function(__init__.py)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyTableCode.call(Unknown Source)    at org.python.core.PyFunction.__call__(Unknown Source)    at org.python.core.PyMethod.__call__(Unknown Source)    at org.python.core.PyObject.__call__(Unknown Source)    at org.python.core.PyObject._jcallexc(Unknown Source)    at org.python.core.PyObject._jcall(Unknown Source)    at org.python.proxies.main$Quest$396.onAdvEvent(Unknown Source)    at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:448)    at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.processQuestEvent(L2PcInstance.java:1747)    at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:208)    at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62)    at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1026)    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)    at java.lang.Thread.run(Unknown Source) 
What can i do for fix this error?

Re: Have error: No Public Constructors

Posted: Sun Jul 17, 2011 7:08 pm
by jurchiks
You're trying to do something like this:

Code: Select all

SystemMessage xx = new SystemMessage(SystemMessageId.blablabla);
but that doesn't work anymore, it was changed to this:

Code: Select all

SystemMessage xx = SystemMessage.getSystemMessage(SystemMessageId.blablabla);
Only the dev who made it knows why he made it that way...

Re: Have error: No Public Constructors

Posted: Sun Jul 17, 2011 7:26 pm
by zippel
Not Get

Code: Select all

 Line 97: st.player.sendPacket(SystemMessage(SystemMessageId.SUBCLASS_NO_CHANGE_OR_CREATE_WHILE_SKILL_IN_USE))Line 97: st.player.sendPacket(SystemMessage(SystemMessageId.SUBCLASS_NO_CHANGE_OR_CREATE_WHILE_SKILL_IN_USE))Line 123:  st.player.sendPacket(SystemMessage(SystemMessageId.CLASS_TRANSFER))Line 123: st.player.sendPacket(SystemMessage(SystemMessageId.CLASS_TRANSFER))Line 136: st.player.sendPacket(SystemMessage(SystemMessageId.ADD_NEW_SUBCLASS))Line 136: st.player.sendPacket(SystemMessage(SystemMessageId.ADD_NEW_SUBCLASS))Line 211: st.player.sendPacket(SystemMessage(SystemMessageId.ADD_NEW_SUBCLASS))Line 211: st.player.sendPacket(SystemMessage(SystemMessageId.ADD_NEW_SUBCLASS))

Re: Have error: No Public Constructors

Posted: Sun Jul 17, 2011 8:22 pm
by jurchiks
Didn't you read my reply in your other topic?
there is NO "st.player.", only "st.getPlayer()."!
And you didn't even understand my response here!
It's:

Code: Select all

st.getPlayer().sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CLASS_TRANSFER))
And you must also have the proper imports for SystemMessage and SystemMessageId.

Re: Have error: No Public Constructors

Posted: Sun Jul 17, 2011 9:06 pm
by zippel
jurchiks wrote:Didn't you read my reply in your other topic?
there is NO "st.player.", only "st.getPlayer()."!
And you didn't even understand my response here!
And you must also have the proper imports for SystemMessage and SystemMessageId.
I give to you scrip (.py) Can you check for mistake and comment on why you do this, for me plz.
ohmygad.rar

Re: Have error: No Public Constructors

Posted: Mon Jul 18, 2011 3:35 pm
by zippel
[quote="jurchiks"]Didn't you read my reply in your other topic?
there is NO "st.player.", only "st.getPlayer()."!

with st.getPlayer - script says error..

Re: Have error: No Public Constructors

Posted: Mon Jul 18, 2011 7:57 pm
by jurchiks
that can't be, it's the right way. Did you write the "()"?

Re: Have error: No Public Constructors

Posted: Mon Jul 18, 2011 8:34 pm
by zippel
jurchiks wrote:that can't be, it's the right way. Did you write the "()"?
Yes it's. But it's very big script for me. Maybe I'm wrong sometimes...