Jump to content

Question

Posted

Hello iam new in that website and i new in l2 worl ) i now learn how to create server. I need now help for Rin4A's buffer i have that error who can help?

 

Error on: C:\Users\Admin\Desktop\L2jRoyal_Server\game\data\scripts\custom\555_NPCBUFFER\__init__.py.error.log
Line: -1 - Column: -1

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

 

 

Pls help me :)

Sorry for bad english.
 

 

 

8 answers to this question

Recommended Posts

  • 0
Posted

Hello iam new in that website and i new in l2 worl ) i now learn how to create server. I need now help for Rin4A's buffer i have that error who can help?

 

Error on: C:\Users\Admin\Desktop\L2jRoyal_Server\game\data\scripts\custom\555_NPCBUFFER\__init__.py.error.log

Line: -1 - Column: -1

 

Traceback (innermost last):

  File "__init__.py", line 4, in ?

ImportError: cannot import name Config

 

 

Pls help me :)

Sorry for bad english.

 

 

 

Are you using regular L2j Server or something like L2J Frozen or whatever name that build has?  Make sure your Imports on all of your .java files or .py files (the one used on that buffer for example) have the correct pointers (or whatever its called) to your server stuff. For example.... this is the line 4 on the .py file right...?

from com.l2jserver import Config

If you are using some l2j build like L2jFrozen the part that says  "com.l2jserver" will be different and will look something like this instead...

from net.l2jfrozen import Config

Think of it like your server is a massive web page and the script that the buffer is trying to run is an url address trying to import stuff from your server resource. If you write the wrong address it won't find the resources it needs and give you an error. Just open another java file (or .py file from another quest) and take a look at what the Import lines address and check if they look similar.

 

Hope this can help a bit.

  • 0
Posted

i use l2jserver here my py file 4 line

 

import sys
from java.lang import System
from java.util import Iterator
from com.l2jserver import Config
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jserver.gameserver.instancemanager import QuestManager
from com.l2jserver import L2DatabaseFactory
from com.l2jserver.gameserver.datatables import SkillTable
from com.l2jserver.gameserver.datatables import ItemTable
from com.l2jserver.gameserver.model.actor.instance import L2PcInstance
from com.l2jserver.gameserver.model.actor.instance import L2PetInstance
from com.l2jserver.gameserver.model.actor.instance import L2ServitorInstance
from com.l2jserver.gameserver.network.serverpackets import SetSummonRemainTime
from com.l2jserver.gameserver.network.serverpackets import SetupGauge

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...