Jump to content
jspoiler

Смена профы

Recommended Posts

Всем доброго времени суток,

Хочу поставить кота в деревне для того, чтобы покупать/менять профы. Где и как настроить эту функции, чтобы работала корректно?

Пользуюсь сборкой Helios ---> https://www.vlemon.info/article/1055-sozdanie-servera-lineage-2-helios.html

Спасибо тем, кто отзовется 🙂  

Share this post


Link to post
Share on other sites

Добрый вечер, путь game > projects > x5 > config файл services.properties:

Включить функцию AllowClassMasters

AllowClassMasters = True

 

Share this post


Link to post
Share on other sites

Не работает...

Выдает следующее при запуске сервера:

Starting Game Server


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.0.RELEASE)

08.06 20:10:16 INFO  Starting GameServer on LAPTOP-Q26NOFQQ with PID 20532 (D:\GAMES\la2GC\l2helios\game\libs\game-0.0.1.jar started by user in D:\GAMES\la2GC\l2helios\game)
08.06 20:10:16 INFO  No active profile set, falling back to default profiles: default
08.06 20:10:16 INFO  Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@4ccb53: startup date [Sat Jun 08 20:10:16 CEST 2019]; root of context hierarchy
08.06 20:10:18 INFO  Overriding bean definition for bean 'dataSource' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]]
08.06 20:10:18 INFO  Building JPA container EntityManagerFactory for persistence unit 'default'
08.06 20:10:19 INFO  HHH000204: Processing PersistenceUnitInfo [
        name: default
        ...]
08.06 20:10:19 INFO  HHH000412: Hibernate Core {5.0.9.Final}
08.06 20:10:19 INFO  HHH000206: hibernate.properties not found
08.06 20:10:19 INFO  HHH000021: Bytecode provider name : javassist
08.06 20:10:19 INFO  HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
08.06 20:10:19 INFO  HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
08.06 20:10:20 INFO  HHH000228: Running hbm2ddl schema update
08.06 20:10:20 INFO  Initialized JPA EntityManagerFactory for persistence unit 'default'
08.06 20:10:20 INFO  =================================================
08.06 20:10:20 INFO  Authserver host info: IP[127.0.0.1], PORT[9014]
08.06 20:10:20 INFO  =================================================
08.06 20:10:20 INFO  Gameserver host info:
08.06 20:10:20 INFO  ID[1], IP[127.0.0.1], INNER_IP[127.0.0.1], PORT[7777]
08.06 20:10:20 INFO  =================================================
08.06 20:10:20 WARN  Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gameServer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$1ec04095]: Constructor threw exception; nested exception is java.lang.NumberFormatException: For input string: "True"
08.06 20:10:20 INFO  Closing JPA EntityManagerFactory for persistence unit 'default'
08.06 20:10:20 INFO

Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)


08.06 20:10:20 ERROR Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gameServer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$1ec04095]: Constructor threw exception; nested exception is java.lang.NumberFormatException: For input string: "True"
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
        at studio.lineage2.gameserver.GameServer.main(GameServer.java:421)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$1ec04095]: Constructor threw exception; nested exception is java.lang.NumberFormatException: For input string: "True"
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1098)
        ... 16 common frames omitted
Caused by: java.lang.NumberFormatException: For input string: "True"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at studio.lineage2.gameserver.Config.loadServicesSettings(Config.java:2548)
        at studio.lineage2.gameserver.Config.load(Config.java:2968)
        at studio.lineage2.gameserver.GameServer.<init>(GameServer.java:129)
        at studio.lineage2.gameserver.GameServer$$EnhancerBySpringCGLIB$$1ec04095.<init>(<generated>)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)
        ... 18 common frames omitted

Server terminated abnormaly ...


Server terminated ...

Для продолжения нажмите любую клавишу . . .
 

Share this post


Link to post
Share on other sites

Игра работает корректно до того момента, пока не напишешь "True" 😞

Share this post


Link to post
Share on other sites
1 час назад, jspoiler сказал:

Игра работает корректно до того момента, пока не напишешь "True" 😞

Попробуйте включить ниже функцию, ошибка тоже будет? (редактируйте не в блокноте, к примеру в notepad)

Share this post


Link to post
Share on other sites

Решила проблему, прописывать нужно не false/true, а номер класса, id итема и цена. К примеру: 1,4037,150;2,4037,150... и т.д.

Да там так и написано 🙂

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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