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

Check it

Post by MerHaN »

Well I know that you are working on epilogue but becus the most pro devs work here i need some help.

just tell me how or give me a patch to add scripts.cfg on interlude..
i cant run AIs writed on java =(

on old forum there was some support for old chronicles so spend some minites to explein me =(
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post by MerHaN »

guys is emergency help pls
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 »

There is a Legacy server support section
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 »

moved to legacy support ;)
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:moved to legacy support ;)

tnx i hope somebody helps me
Deadmeat
Posts: 286
Joined: Fri Sep 22, 2006 1:03 am
Location: Red Rock, Mars

Re: Check it

Post by Deadmeat »

I don't understand your question, what script are you having problems with loading?
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post by MerHaN »

Deadmeat wrote:I don't understand your question, what script are you having problems with loading?
i am using interlude.
in interlude scripts.cfg file doesnt exist to register my scripts.

so everything must be registered in __init__.py
but init.py is loads only python files.

so i can't add java files to load.

all i want is to add scripts.cfg
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 »

Heres the l2j java script compiler for interlude. You will need to rework the AI's for IL (Smthing that will cause many core-side modifications)

Also, add jython-engine.jar to your lib folder
You do not have the required permissions to view the files attached to this post.
Image
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post by MerHaN »

all is fine but i get an error here:
context.setAttribute(com.l2jserver.script.jython.JythonScriptEngine.JYTHON_ENGINE_INSTANCE, engine, ScriptContext.ENGINE_SCOPE);

it shows error at com.l2jserver.script

obviusly cuz now the imports are changed, but doesn't work even with net.sf.l2j...

all the others dont give compile errors, i hope they will work..

PS: Can anyone share jython engine?
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 the lib to your lib folder of the gameserver project? did you add it also to the classpath of the project in eclipse? did you also add it in the build.xml file? that are not questions, just do it ;) having all needed jar files on the classpath of the project, you can use the organize import function in eclipse to check the imports of unknown classes like the java scripting engine.
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 the lib to your lib folder of the gameserver project? did you add it also to the classpath of the project in eclipse? did you also add it in the build.xml file? that are not questions, just do it ;) having all needed jar files on the classpath of the project, you can use the organize import function in eclipse to check the imports of unknown classes like the java scripting engine.
I'll take care, only give me a jython engine jar :S
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 »

the classpath and build.xml modifications that you need (the same as janiii said) are inside the path. And you can get the jython-engine.jar by downloading the nightly core
Image
MerHaN
Posts: 33
Joined: Wed Jan 27, 2010 3:39 pm

Re: Check it

Post by MerHaN »

B1ggBoss wrote:the classpath and build.xml modifications that you need (the same as janiii said) are inside the path. And you can get the jython-engine.jar by downloading the nightly core
did everything but still shows error when i try to compile the gs at
com.l2jserver =/

Any ideas?
I added all files and made changes..


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 =/
Deadmeat
Posts: 286
Joined: Fri Sep 22, 2006 1:03 am
Location: Red Rock, Mars

Re: Check it

Post by Deadmeat »

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.)
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 »

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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Post Reply