Jump to content
  • 0

L2Jbrasil Imports


rokasbalsys

Question

Hello, I openned server on l2jbrasil files, I am trying to put custom buffer but I got problem with imports.

 

My __init__.py imports I have

import sys
from com.it.br.gameserver.model.quest import State
from com.it.br.gameserver.model.quest import QuestState
from com.it.br.gameserver.model.quest.jython import QuestJython as JQuest
from com.it.br.gameserver.datatables.sql import ItemTable

from com.it.br.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.it.br.gameserver.datatables import SkillTable
from com.it.br			       import L2DatabaseFactory

I receive error in log file:
 

Error on: C:\Users\ROKAS\Desktop\srv2\Game\data\jscript\custom\99_NPCBuffer\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
  File "__init__.py", line 9, in ?
ImportError: cannot import name SkillTable

So something wrong with
from com.it.br.gameserver.datatables import SkillTable

can someone help me ?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello, I openned server on l2jbrasil files, I am trying to put custom buffer but I got problem with imports.

 

My __init__.py imports I have

import sys
from com.it.br.gameserver.model.quest import State
from com.it.br.gameserver.model.quest import QuestState
from com.it.br.gameserver.model.quest.jython import QuestJython as JQuest
from com.it.br.gameserver.datatables.sql import ItemTable

from com.it.br.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.it.br.gameserver.datatables import SkillTable
from com.it.br			       import L2DatabaseFactory

I receive error in log file:

 

Error on: C:\Users\ROKAS\Desktop\srv2\Game\data\jscript\custom\99_NPCBuffer\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
  File "__init__.py", line 9, in ?
ImportError: cannot import name SkillTable

So something wrong with

from com.it.br.gameserver.datatables import SkillTable

 

can someone help me ?

go at your source in eclipse and find com.it.br.gameserver.datatables

after change from com.it.br.gameserver.datatables import SkillTable

to correct route

Link to comment
Share on other sites

  • 0

I Found SkillTable.java in eclipse source l2JBRASIL_CORE\Java\com.it.br.gameserver.datatables.sql

I should improt new if there is one

so try with the correct root

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...