Перейти к содержанию

sotiga

Пользователи
  • Публикаций

    129
  • Зарегистрирован

  • Посещение

  • Отзывы

    0%

Весь контент sotiga

  1. <?xml version="1.0" encoding="UTF-8"?> <project name="GameServer" default="dist" basedir="."> <description> This script will build the Interlude Server. </description> <property name="src" location="java"/> <property name="lib" location="lib"/> <property name="build" location="build"/> <property name="build.classes" location="${build}/classes"/> <property name="build.dist" location="${build}/dist"/> <property name="build.dist.login" location="${build.dist}/login"/> <property name="build.dist.game" location="${build.dist}/gameserver"/> <path id="classpath"> <fileset dir="${lib}"> <include name="c3p0-0.9.1.2.jar"/> <include name="bsf.jar"/> <include name="bsh-2.0b4.jar"/> <include name="commons-logging-1.1.jar"/> <include name="commons-lang-2.4.jar"/> <include name="jython.jar"/> <include name="javolution-5.5.1.jar"/> <include name="mysql-connector-java-5.1.13-bin.jar"/> <include name="ISProtect.jar"/> <include name="l2jserver.jar"/> </fileset> </path> <target name="init" depends="clean" description="Create the output directories."> <mkdir dir="${build}"/> <mkdir dir="${build.classes}"/> <mkdir dir="${build.dist}" /> <mkdir dir="${build.dist.login}" /> <mkdir dir="${build.dist.game}" /> </target> <target name="compile" depends="init" description="Compile the source."> <javac destdir="${build.classes}" includeantruntime="true" optimize="on" debug="on" source="1.8" target="1.8" nowarn="off" encoding="UTF-8"> <compilerarg value="-Xlint:all"></compilerarg> <src path="${src}"/> <classpath refid="classpath"/> </javac> </target> <target name="jar" depends="compile" description="Create the jar file"> <pathconvert property="libs.project" pathsep=" "> <mapper> <chainedmapper> <flattenmapper/> <globmapper from="*" to="*"/> </chainedmapper> </mapper> <path> <fileset dir="${lib}"> <include name="*.jar"/> </fileset> </path> </pathconvert> <jar destfile="${build}/l2jserver.jar"> <fileset dir="${build.classes}"/> <manifest> <attribute name="Main-Class" value="net.sf.l2j.Server"/> <attribute name="Implementation-Vendor-Id" value="RusTeam"/> <attribute name="Class-Path" value="${libs.project}"/> </manifest> </jar> <copy todir="${build.dist.login}"> <fileset dir="${build}"> <include name="l2jserver.jar"/> </fileset> </copy> <copy todir="${build.dist.game}"> <fileset dir="${build}"> <include name="l2jserver.jar"/> </fileset> </copy> </target> <target name="dist" depends="jar"> <copy todir="${build.dist.login}"> <fileset dir="${src}"> <include name="log.cfg"/> <include name="banned_ip.cfg"/> <include name="console.cfg"/> <include name="servername.xml"/> </fileset> </copy> <copy todir="${build.dist.game}"> <fileset dir="${src}"> <include name="log.cfg"/> <include name="console.cfg"/> <include name="rt.cfg"/> </fileset> </copy> <copy todir="${build.dist.login}/lib"> <fileset dir="${src}/../lib"> <include name="c3p0-0.9.1.2.jar"/> <include name="commons-lang-2.4.jar"/> <include name="mysql-connector-java-5.1.13-bin.jar"/> <include name="javolution-5.5.1.jar"/> <include name="mmocore.jar"/> </fileset> </copy> <copy todir="${build.dist.game}/lib"> <fileset dir="${src}/../lib"> <include name="*.jar"/> </fileset> </copy> <copy todir="${build.dist}"> <fileset dir="${basedir}"> <include name="README.txt"/> <include name="CHANGELOG.txt"/> </fileset> </copy> <copy todir="${build.dist}"> <fileset dir="${src}/../lib"> <include name="*LICENSE*"/> </fileset> </copy> <copy todir="${build.dist.login}"> <fileset dir="dist"> <include name="startAccountManager.*"/> <include name="startSQLAccountManager.*"/> <include name="LoginServer_loop.sh"/> <include name="startLoginServer.*"/> <include name="RegisterGameServer.*"/> </fileset> </copy> <copy todir="${build.dist.game}"> <fileset dir="dist"> <include name="GameServer_loop.sh"/> <include name="startGameServer.*"/> </fileset> </copy> <fixcrlf srcdir="${build.dist.game}" eol="lf" eof="remove" includes="**/*.sh"> </fixcrlf> <fixcrlf srcdir="${build.dist.login}" eol="lf" eof="remove" includes="**/*.sh"> </fixcrlf> <fixcrlf srcdir="${build.dist.game}" eol="crlf" eof="remove" includes="**/*.bat"> </fixcrlf> <fixcrlf srcdir="${build.dist.login}" eol="crlf" eof="remove" includes="**/*.bat"> </fixcrlf> <mkdir dir="${build.dist.game}/log" /> <mkdir dir="${build.dist.login}/log" /> <mkdir dir="${build.dist.game}/config" /> <mkdir dir="${build.dist.login}/config" /> <copy todir="${build.dist.game}/config"> <fileset dir="java/config"> <include name="*.ini"/> <include name="sayfilter.txt"/> <include name="sayfilter-ex.txt"/> <include name="license.key"/> <exclude name="loginserver.ini" /> <exclude name="login_dev.ini" /> </fileset> </copy> <copy todir="${build.dist.login}/config"> <fileset dir="java/config"> <include name="loginserver.ini"/> <include name="login_dev.ini"/> <include name="telnet.ini"/> </fileset> </copy> <mkdir dir="${build.dist.game}/data" /> <copy todir="${build.dist.game}/data"> <fileset dir="data"> <include name="*.csv"/> <include name="*.txt"/> </fileset> </copy> <mkdir dir="${build.dist.game}/data/geodata" /> <copy todir="${build.dist.game}/data/geodata"> <fileset dir="data/geodata"> <include name="*.txt"/> <include name="*.l2j"/> </fileset> </copy> <mkdir dir="${build.dist.game}/data/pathnode" /> <copy todir="${build.dist.game}/data/pathnode"> <fileset dir="data/pathnode"> <include name="*.txt"/> <include name="*.pn"/> </fileset> </copy> <zip destfile="${build}/GameServer.zip" basedir="${build.dist}" /> </target> <target name="clean" description="Remove the output directories"> <delete dir="${build}"/> </target> </project> так?
  2. Привет всем кто может обьяснить ,у меня исходный код lineage 2 на основе java 6 как мне сделать что бы исхдоный код был на java 7 или 8 ?
  3. https://yadi.sk/d/TgTVkp5SfFvjc но + мало что то =)
  4. sotiga

    AugmentShop

    Спасибо =)
  5. sotiga

    AugmentShop

    ошибку выдаёт распаковать не могу , у кого нормально скачалось ?
  6. sotiga

    Interlude класика

    мне тоже интересно =)
  7. а в ней какой класс отвечает за это?=)
  8. Мануалы есть как это сделать ?
  9. Кто знает возможно сделать на исходниках RT что бы она работала на Java 1.7 ? Если возможно то как !
  10. нпц который умеет: Покупка\Продажа скилов Выбор расы\класса у которой можно купить Аукцион по скилам Поиск скилов на аукционе Кабинет в акционе[Добавить\Текущие лоты\Забрать деньги] Комиссия в аукционе ps// Написано под люцеру,ну адаптировать под другие сборки тоже можно Писал этот скрипт не я
  11. такой нпц был на сервере Pulse-World.ru (не реклама), не забываем ставить + https://yadi.sk/d/ISrI4nhMevrLu
  12. подскажите команду на debian 7 что бы удалить Java , Google не нашёл! дам + =)
  13. sotiga

    Lucera

    я слышал что фрозен очень сильную нагрузку даёт ,да и выдрать с неё много чего надо не нужного !
  14. sotiga

    GameServer

    1.7, мне кажется что серверу нужно 1.6
  15. http://l2edit.ru/forum/9-200-1 (Не реклама)
  16. Подскажите что теперь у меня запускам GameServer Loading GameServer config MLog clients using java 1.4+ standard logging. Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 100, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1j866p971i0ounds5poj2|26832b87, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1j866p971i0ounds5poj2|26832b87, idleConnectionTestPeriod -> 60, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://5.135.104.81/impulse?useUnicode=yes&characterEncoding=UTF-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 100, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 5, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ] Updated characters online status. Cleaned 0 elements from database. IDFactory: 102912 id's available. Initializing Script Compiler. Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main at net.sf.l2j.gameserver.scripting.ScriptCompiler.compile(ScriptCompiler.java:235) at net.sf.l2j.gameserver.scripting.ScriptCompiler.main(ScriptCompiler.java:274) at net.sf.l2j.gameserver.scripting.ScriptCompiler.load(ScriptCompiler.java:248) at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:194) at net.sf.l2j.gameserver.GameServer.main(GameServer.java:618) Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 5 more
  17. Решил проблему тему можно закрыть
  18. Запускаю логин сервер логах пишет это , кто помочь может ? Loading LoginServer config Loading Telnet config MLog clients using java 1.4+ standard logging. Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 100, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1j866p971hzkf2e1c7dr15|142a3945, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1j866p971hzkf2e1c7dr15|142a3945, idleConnectionTestPeriod -> 60, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://localhost/impulse, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 600, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 10, maxStatements -> 100, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 5, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ] An exception occurred while acquiring a poolable resource. Will retry. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2308) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:241) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292) ... 19 more
  19. sotiga

    Lucera

    а рт на java 1.6 на 1.7 она будет работать ?
  20. sotiga

    Lucera

    ссылку с исходниками можешь кинуть если есть ?
  21. sotiga

    Lucera

    что можешь из бесплатных предложить что можно пилить ?
×
×
  • Создать...