Page 2 of 3

Re: Check it

Posted: Fri Jan 29, 2010 12:44 pm
by MerHaN
janiii wrote:
Deadmeat wrote:
MerHaN wrote: EDIT: When using the file it doesn't show any errors, it shows it normal..
but when i compile it say package com.l2jserver.script.python not found =/
You need to change (com.l2jserver.) to (net.sf.l2j.)
latest jython engine uses com.l2jserver and i think it always used this. if he uses latest jar file, i am for sure he must use com.l2jserver for the library import. but that can handle eclipse for him if the library is well imported in the eclipse project.
i cant understand..
when i close the file it doesn't show any "X" (Which would show me any solutions) so everything looks normal.
when i try to compile it, it say package com.l2jserver.script.jython does not exist

=(

Re: Check it

Posted: Fri Jan 29, 2010 12:50 pm
by janiii
did you add it in the build.xml file?

Re: Check it

Posted: Fri Jan 29, 2010 12:56 pm
by MerHaN
janiii wrote:did you add it in the build.xml file?
yes..
and i checked for the imports and its true, they are com.l2jserver
dunno wtf is wrong :S

Can anyone try to add it and tell me whats wrong?
thnx

Re: Check it

Posted: Fri Jan 29, 2010 1:09 pm
by janiii
how does your build.xml looks like with the added jar file? is it really in that lib folder of the project (not of the build server!)?

check in your build.xml where jython.jar is used and check if you have there also jython-engine.jar . there are 2 places where to add it in build.xml .

Re: Check it

Posted: Fri Jan 29, 2010 1:11 pm
by MerHaN
janiii wrote:how does your build.xml looks like with the added jar file? is it really in that lib folder of the project (not of the build server!)?



and the jython-engine is on Gameserver-lib

EDIT: Ok compile error fixed..
i will add now a jaa quest to see if the gs console reads it..
wait for more =)

Re: Check it

Posted: Fri Jan 29, 2010 1:23 pm
by janiii
waiting for your report if java script works ^^ :)

Re: Check it

Posted: Fri Jan 29, 2010 2:05 pm
by MerHaN
Image

that error appears for all quests :S
What's wrong?

EDIT: I found what it is..
scripts.cfg tries to find quests on "Scripts" folder, while in interlude the name is "jscript"
any ideas how to fix it?
i think is core side..
or maybe prob with the jar??

Re: Check it

Posted: Fri Jan 29, 2010 2:28 pm
by BiggBoss
use notepad -> edit -> replace

Re: Check it

Posted: Fri Jan 29, 2010 2:29 pm
by janiii
and if you rename the folder to scripts ? ^^

Re: Check it

Posted: Fri Jan 29, 2010 2:30 pm
by MerHaN
well i did smth else.
I renamed the jscript folder into scripts.

but i still get error in all.
and the message says to check init.py error log.

when i see the file it says like:

Error on: C:\Pack\gameserver\data\scripts\custom\4000_ShadowWeapons\__init__.py.error.log
Line: -1 - Column: -1

No engine registered for extension (py)

Re: Check it

Posted: Fri Jan 29, 2010 2:32 pm
by janiii
check L2ScriptEngineManager class. or just search your gameserver sources for all occurence of "data/scripts" and replace with what your folder name is.

Re: Check it

Posted: Fri Jan 29, 2010 2:34 pm
by MerHaN
janiii wrote:check L2ScriptEngineManager class. or just search your gameserver sources for all occurence of "data/scripts" and replace with what your folder name is.
so it has to be core error? =/

Re: Check it

Posted: Fri Jan 29, 2010 2:36 pm
by janiii
MerHaN wrote:
janiii wrote:check L2ScriptEngineManager class. or just search your gameserver sources for all occurence of "data/scripts" and replace with what your folder name is.
so it has to be core error? =/
dont know, you can try.

Re: Check it

Posted: Fri Jan 29, 2010 2:38 pm
by MerHaN
Well i checked the files i just added and all talk about scripts folder, not jscript..

maybe pay more attention at this error?
dunno..
i will try many things, give more ideas if you can..

and thank you all that you try to help me, while you will not win anything..
that's what professional is about..
helping newbies..

rly tnx

EDIT: I am now fixing __init__.py files in the other folders in order to fix the imports..
i will clean scripts.cfg later and i hope that the errors will be less..

EDIT 2: To load java files it needs java-engine too..
I added it I will test it now..

Re: Check it

Posted: Fri Jan 29, 2010 5:12 pm
by MerHaN
sorry for double post, but still i cant make them work..
i need java engine for java files =(