Jump to content
  • 0

Failed To Load Russian Pack


Question

Posted (edited)

Hello guys i am trying to setup russian sources,

 

the problem is that it stucks on loading scripts

Here is the picture:
http://prntscr.com/66vqo0


Hope someone will help me, its first time i am trying to setup ru pack

 

p.s i can run without any problem from eclipse luncher

Edited by janiko

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

Did you recompile core + scripts? What's in Scripts:77?

yes i compiled core + scripts,

 

 

        
File f = new File("data/scripts/L2J_Scripts.jar");
        if (f.exists())
        {
            _log.info(getClass().getSimpleName() + ": File found. Loading server scripts...");
            try (JarInputStream stream = new JarInputStream(new FileInputStream(f)))
            {
                JarEntry entry = null;
                while ((entry = stream.getNextJarEntry()) != null)
                {
                    if (entry.getName().contains(ClassUtils.INNER_CLASS_SEPARATOR) || !entry.getName().endsWith(".class"))
                    {
                        continue;
                    }

                    String name = entry.getName().replace(".class", "").replace("/", ".");

                    Class<?> clazz;
                    clazz = getClass().getClassLoader().loadClass(name);
                    if (Modifier.isAbstract(clazz.getModifiers()))
                    {
                        continue;
                    }
                    jarClasses.add(clazz);
                }
                result = true;
            }
            catch (ClassNotFoundException | IOException e)
            {
                _log.error(getClass().getSimpleName() + ": Failed loading L2J_Scripts.jar.", e);
                jarClasses.clear();
            }
        }

line 77 but i dont think that error can be there

String name = entry.getName().replace(".class", "").replace("/", ".");

i think that problem is in JarEntry as the jar is loaded but JarEntry cant find classes

Edited by janiko

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