Jump to content
  • 0

Error importing buffer


Question

Posted

Pack: Acis

getting this error

 

 

Error on: C:\Users\User\Desktop\Server\gameserver\data\scripts\custom\9999_NPCBuffer\__init__.py.error.log
Line: -1 - Column: -1


Traceback (innermost last):
  File "__init__.py", line 144, in ?
TypeError: net.sf.l2j.gameserver.model.quest.State(): expected 0 args; got 2

 

 

 

 

Line 144

CREATED=State('Start',QUEST)

what is the problem?

13 answers to this question

Recommended Posts

  • 0
Posted
  On 1/15/2013 at 7:49 PM, Tryskell said:

As I said to the guy before you, stop to use python.

one of topics you wrote to take any buffer, change imports and the 90% of work is done.

I downloaded 90% of buffers but they don't work :(

 

can you give me link of buffer which is not based on python

  • 0
Posted
  On 1/15/2013 at 7:51 PM, Envius said:

one of topics you wrote to take any buffer, change imports and the 90% of work is done.

I downloaded 90% of buffers but they don't work :(

 

can you give me link of buffer which is not based on python

 

90% of work means the 10% left is to fix issues. If you would use Java script, such error would be redlined and you wouldn't care to ask. See how others scripts are working. If 320 scripts are correctly working, there is a reason.

 

There are 2 shared buffers made for aCis, one is by povis111 and the other (outdated so far) by mindaugas (aka darthvader). We also got few versions on forums, accessible if you're part of the community.

 

About how to make a java script, just figure reading scripts folder.

 

I already answered about your special issue on another thread, just make a search with your error. It is old of less than 2 weeks.

  • 0
Posted
  On 1/15/2013 at 8:00 PM, Envius said:

I have free acis pack. 254 rev. the buffer of povis111 don't work. and the second one i have never seen and can't find....

 

 

Then why didn't you tell me? There's smth told in my topic about making it work on any acis rev, and i'm always glad to help. So, might be the same problem with quest bypass, anyways, gonna fix that tomorrow....

  • 0
Posted
  On 1/15/2013 at 8:00 PM, Envius said:

I have free acis pack. 254 rev. the buffer of povis111 don't work. and the second one i have never seen and can't find....

 

change the imports...

 

open other ini file from your quests and see what imports are used there... 1+1 = 2

  • 0
Posted
  On 1/15/2013 at 9:02 PM, Silv3rMoon said:

change the imports...

 

Just lol..

 

Quest engine/structure is different than others forks, it's not about imports.. Use JAVA like said Tryky, find Darth's buffer* and try to addapt it.

 

* - google, simple instanced buffer

  • 0
Posted
  On 1/16/2013 at 2:00 PM, SweeTs said:

Just lol..

 

Quest engine/structure is different than others forks, it's not about imports.. Use JAVA like said Tryky, find Darth's buffer* and try to addapt it.

 

* - google, simple instanced buffer

Line: -1 - Column: -1

Is for imports...

 

k, nice to know thanks for learning me... ROFL

  • 0
Posted
  On 1/16/2013 at 2:19 PM, Silv3rMoon said:

Line: -1 - Column: -1

Is for imports...

 

k, nice to know thanks for learning me... ROFL

It's not, SweeTs is part of my crew and make customs for my pack (when he isn't lazy as an ass), ty for learning to him aswell :P.

 

As he stated, no more State.java (import + use), so once again check existing quests and you will find your dream. And using JAVA would warn you you are using deprecated stuff, so stop to use Python (+ python deprecated at next public share).

 

Import is nothing to correct in a Java file, ctrl+shift+O to fix them.

  • 0
Posted
  On 1/16/2013 at 3:29 PM, Tryskell said:

It's not, SweeTs is part of my crew and make customs for my pack (when he isn't lazy as an ass), ty for learning to him aswell :P.

 

As he stated, no more State.java (import + use), so once again check existing quests and you will find your dream. And using JAVA would warn you you are using deprecated stuff, so stop to use Python (+ python deprecated at next public share).

 

Import is nothing to correct in a Java file, ctrl+shift+O to fix them.

 

Well i had that problem too myself and when i put correct impots everything goes good...

also ctr+o is when its open via eclipse...

Guest
This topic is now closed to further replies.


×
×
  • Create New...