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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock