Have error: No Public Constructors

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
zippel
Posts: 123
Joined: Wed Feb 09, 2011 7:21 pm
Location: [RF] Krasnoyarsk
Contact:

Have error: No Public Constructors

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Have error: No Public Constructors

Post 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...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
zippel
Posts: 123
Joined: Wed Feb 09, 2011 7:21 pm
Location: [RF] Krasnoyarsk
Contact:

Re: Have error: No Public Constructors

Post 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))
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Have error: No Public Constructors

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
zippel
Posts: 123
Joined: Wed Feb 09, 2011 7:21 pm
Location: [RF] Krasnoyarsk
Contact:

Re: Have error: No Public Constructors

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
zippel
Posts: 123
Joined: Wed Feb 09, 2011 7:21 pm
Location: [RF] Krasnoyarsk
Contact:

Re: Have error: No Public Constructors

Post 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..
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Have error: No Public Constructors

Post by jurchiks »

that can't be, it's the right way. Did you write the "()"?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
zippel
Posts: 123
Joined: Wed Feb 09, 2011 7:21 pm
Location: [RF] Krasnoyarsk
Contact:

Re: Have error: No Public Constructors

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