Check it

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post 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

=(
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Check it

Post by janiii »

did you add it in the build.xml file?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post 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
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Check it

Post 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 .
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post 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 =)
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Check it

Post by janiii »

waiting for your report if java script works ^^ :)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post 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??
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Check it

Post by BiggBoss »

use notepad -> edit -> replace
Image
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Check it

Post by janiii »

and if you rename the folder to scripts ? ^^
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post 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)
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Check it

Post 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post 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? =/
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Check it

Post 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post 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..
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post by MerHaN »

sorry for double post, but still i cant make them work..
i need java engine for java files =(
Post Reply