__init__.py failing due to incorrect import calls (c_npc)

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
florinel
Posts: 10
Joined: Sun Nov 29, 2009 6:21 am

__init__.py failing due to incorrect import calls (c_npc)

Post by florinel »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 3813:
L2JDP Revision 6891:


Hello. I was trying to install a NPC buffer and I get failures in the __init__.py saying it's unable to import the net module.

I assume it's referring to these calls:

Code: Select all

import sys[u]from net.sf.l2j.gameserver.model.actor.instance import L2PcInstance[/u]from java.util import Iterator[u]from net.sf.l2j.gameserver.datatables import SkillTable[/u][u]from net.sf.l2j import L2DatabaseFactory[/u][u]from net.sf.l2j.gameserver.model.quest import State[/u][u]from net.sf.l2j.gameserver.model.quest import QuestState[/u][u]from net.sf.l2j.gameserver.model.base import Experience[/u][u]from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest[/u]qn = "18111983_QueenOfDragonFire"NPC = 18111983QuestId      = 18111983QuestName    = "QueenOfDragonFire"QuestDesc    = "custom"InitialHtml = "1.htm"ADENA_ID = 57print "importing custom: 18111983_QueenOfDragonFire"class Quest (JQuest) :...
Please advise if the imports have changed in epilogue. I have searched all other imports and nothing else in scripts uses the net module.

I appreciate any help. Thank you.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: __init__.py failing due to incorrect import calls (c_npc)

Post by janiii »

yes, the imports have changed in epilogue. you can check other .py scripts.

the imports have changed from "net.sf.l2j" to "com.l2jserver" .
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
florinel
Posts: 10
Joined: Sun Nov 29, 2009 6:21 am

Re: __init__.py failing due to incorrect import calls (c_npc)

Post by florinel »

Thank you. Updated and worked.
Post Reply