Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Shark-TM[Source] - UP1
#51
offtop
Fortuna - non penis, in manus non recipe.
Ответ
#52
BasicDataSource сделал abstract не помогло
Код:
init:

compile-commons:
   [delete] Deleting directory C:\ant\svn\build\classes
    [mkdir] Created dir: C:\ant\svn\build\classes
    [javac] C:\ant\svn\build.xml:56: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 77 source files to C:\ant\svn\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] 1 warning

commons-jar:
      [jar] Building jar: C:\ant\svn\build\commons.jar

compile-authserver:
   [delete] Deleting directory C:\ant\svn\build\classes
    [mkdir] Created dir: C:\ant\svn\build\classes
    [javac] C:\ant\svn\build.xml:151: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 54 source files to C:\ant\svn\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:7: error: BasicDataSource is not public in la2shark.commons.dbcp; cannot be accessed from outside package
    [javac] import la2shark.commons.dbcp.BasicDataSource;
    [javac]                             ^
    [javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:10: error: cannot find symbol
    [javac] public class L2DatabaseFactory extends BasicDataSource
    [javac]                                        ^
    [javac]   symbol: class BasicDataSource
    [javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:26: error: method getConnection in class L2DatabaseFactory cannot be applied to given types;
    [javac]         return getConnection(null);
    [javac]                ^
    [javac]   required: no arguments
    [javac]   found: <null>
    [javac]   reason: actual and formal argument lists differ in length
    [javac] C:\ant\svn\authserver\java\la2shark\authserver\database\L2DatabaseFactory.java:23: error: method does not override or implement a method from a supertype
    [javac]     @Override
    [javac]     ^
    [javac] 4 errors
    [javac] 1 warning

BUILD FAILED
C:\ant\svn\build.xml:151: Compile failed; see the compiler error output for details.

Total time: 4 seconds
Ответ
#53
Предлагаю прочитать тему. Решение ошибки было выложено в теме.
Ответ
#54
Zubastic Написал:Предлагаю прочитать тему. Решение ошибки было выложено в теме.
Ну это же нужно читать, лучше когда тебе приносят готовое на блюдечке с голубой каёмочкой. :redlol:
Fortuna - non penis, in manus non recipe.
Ответ
#55
Ro_0TT Написал:Да



В методе
PHP код:
<?php 
public void onBypassCommand(Player player, String bypass)
{
....
}
удалите строки:
PHP код:
<?php 
if (!Config.COMMUNITYBOARD_CUSTOM_ENABLED)
html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "bbs_top.htm", player);
else
{
HtmlManager.getInstance().onBypassCommand(player, bypass);
return;
}




Бесспорно, Андрюх, по ДП спасибо тебе.

Добавлено через 59 минут
В ближайшие дни вылью исходники Up2, там будут некоторые фиксы, которые я не успел запилить для шарной сборки.если про это , то сделал

Добавлено через 31 секунду
не помогло
Ответ
#56
ardashes, http://forum.zone-game.info/showthread.php?t=21755

Учитесь пользоваться поиском.
Fortuna - non penis, in manus non recipe.
Ответ
#57
Ashe Написал:ardashes, http://forum.zone-game.info/showthread.php?t=21755

Учитесь пользоваться поиском.
спасибо, ща попробу отпишусь.Smile

Добавлено через 7 часов 9 минут
Ashe Написал:ardashes, http://forum.zone-game.info/showthread.php?t=21755

Учитесь пользоваться поиском.

Добавил в BasicDataSource, получлось так
Код:
public class BasicDataSource implements DataSource
{
    [B]public Logger getParentLogger() throws SQLFeatureNotSupportedException
    {
        return Logger.getLogger(BasicDataSource.class.getName());
    }[/B]
    private final PoolingDataSource _source;
    private final ObjectPool _connectionPool;
........
[CODE]
теперь такая хрень
[CODE]

init:

compile-commons:
   [delete] Deleting directory C:\ant\svn\svn\build\classes
    [mkdir] Created dir: C:\ant\svn\svn\build\classes
    [javac] C:\ant\svn\svn\build.xml:56: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 77 source files to C:\ant\svn\svn\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] C:\ant\svn\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:28: error: cannot find symbol
    [javac]     public Logger getParentLogger() throws SQLFeatureNotSupportedException {
    [javac]            ^
    [javac]   symbol:   class Logger
    [javac]   location: class BasicDataSource
    [javac] C:\ant\svn\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:28: error: cannot find symbol
    [javac]     public Logger getParentLogger() throws SQLFeatureNotSupportedException {
    [javac]                                            ^
    [javac]   symbol:   class SQLFeatureNotSupportedException
    [javac]   location: class BasicDataSource
    [javac] C:\ant\svn\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:29: error: cannot find symbol
    [javac]         return Logger.getLogger(BasicDataSource.class.getName());
    [javac]                ^
    [javac]   symbol:   variable Logger
    [javac]   location: class BasicDataSource
    [javac] 3 errors
    [javac] 1 warning

BUILD FAILED
C:\ant\svn\svn\build.xml:56: Compile failed; see the compiler error output for details.

Total time: 2 seconds
Пробовал заменить версию джавы в build.xml не помогло.
Помогите скомпилить эту сборкуSmile

Добавлено через 7 часов 46 минут
Вопрос снят, установил jre6 и все пошло
Ответ
#58
Скомпилировал а запустить пока не удалось, скомпиллировал, установил базы sql через install.bat из gameserver и authserver,
Лог компилирования
Код:
init:

compile-commons:
   [delete] Deleting directory C:\ant\svn\svn\build\classes
    [mkdir] Created dir: C:\ant\svn\svn\build\classes
    [javac] C:\ant\svn\svn\build.xml:56: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 77 source files to C:\ant\svn\svn\build\classes

commons-jar:
      [jar] Building jar: C:\ant\svn\svn\build\commons.jar

compile-authserver:
   [delete] Deleting directory C:\ant\svn\svn\build\classes
    [mkdir] Created dir: C:\ant\svn\svn\build\classes
    [javac] C:\ant\svn\svn\build.xml:151: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 54 source files to C:\ant\svn\svn\build\classes

authserver-jar:
      [jar] Building jar: C:\ant\svn\svn\build\authserver.jar

authserver:
    [mkdir] Created dir: C:\ant\svn\svn\build\dist
    [mkdir] Created dir: C:\ant\svn\svn\build\dist\authserver
    [mkdir] Created dir: C:\ant\svn\svn\build\dist\authserver\log
    [mkdir] Created dir: C:\ant\svn\svn\build\dist\authserver\libs
     [copy] Copying 2 files to C:\ant\svn\svn\build\dist\authserver\libs
     [copy] Copying 18 files to C:\ant\svn\svn\build\dist\authserver\libs
     [copy] Copying 15 files to C:\ant\svn\svn\build\dist\authserver

compile-gameserver:
   [delete] Deleting directory C:\ant\svn\svn\build\classes
    [mkdir] Created dir: C:\ant\svn\svn\build\classes
    [javac] C:\ant\svn\svn\build.xml:85: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1661 source files to C:\ant\svn\svn\build\classes
    [javac] C:\ant\svn\svn\gameserver\java\la2shark\gameserver\model\instances\RaidBossInstance.java:199: warning: [unchecked] unchecked cast
    [javac] found   : java.lang.Object
    [javac] required: java.util.Set<la2shark.gameserver.model.Player>
    [javac]                         ((Set<Player>) info[0]).add(p);
    [javac]                                            ^
    [javac] C:\ant\svn\svn\gameserver\java\la2shark\gameserver\model\instances\RaidBossInstance.java:205: warning: [unchecked] unchecked cast
    [javac] found   : java.lang.Object
    [javac] required: java.util.Set<la2shark.gameserver.model.Player>
    [javac]                         ((Set<Player>) info[0]).add(p);
    [javac]                                            ^
    [javac] C:\ant\svn\svn\gameserver\java\la2shark\gameserver\model\instances\RaidBossInstance.java:208: warning: [unchecked] unchecked cast
    [javac] found   : java.lang.Object
    [javac] required: java.util.Set<la2shark.gameserver.model.Player>
    [javac]                 ((Set<Player>) info[0]).add(player);
    [javac]                                    ^
    [javac] C:\ant\svn\svn\gameserver\java\la2shark\gameserver\model\instances\RaidBossInstance.java:215: warning: [unchecked] unchecked cast
    [javac] found   : java.lang.Object
    [javac] required: java.util.HashSet<la2shark.gameserver.model.Player>
    [javac]             Set<Player> players = (HashSet<Player>) groupInfo[0];
    [javac]                                                              ^
    [javac] C:\ant\svn\svn\gameserver\java\la2shark\gameserver\network\l2\s2c\ExReceiveOlympiad.java:73: warning: [unchecked] unchecked conversion
    [javac] found   : java.util.ArrayList[]
    [javac] required: java.util.ArrayList<la2shark.gameserver.network.l2.s2c.ExReceiveOlympiad.MatchResult.PlayerInfo>[]
    [javac]         private ArrayList<PlayerInfo>[] _players = new ArrayList[2];
    [javac]                                                    ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 5 warnings

gameserver-jar:
      [jar] Building jar: C:\ant\svn\svn\build\gameserver.jar

gameserver:
    [mkdir] Created dir: C:\ant\svn\svn\build\dist\gameserver
    [mkdir] Created dir: C:\ant\svn\svn\build\dist\gameserver\log
    [mkdir] Created dir: C:\ant\svn\svn\build\dist\gameserver\libs
     [sync] Copying 32160 files to C:\ant\svn\svn\build\dist\gameserver
     [sync] Removed 2 dangling directories from C:\ant\svn\svn\build\dist\gameserver
     [copy] Copying 2 files to C:\ant\svn\svn\build\dist\gameserver\libs
     [copy] Copying 18 files to C:\ant\svn\svn\build\dist\gameserver\libs

dist:
      [zip] Building zip: C:\ant\svn\svn\build\mmocore-dist.zip

BUILD SUCCESSFUL
Total time: 9 minutes 4 seconds

запускаю StartGameServer.bat :
Код:
Starting GameServer.

log4j:WARN No appenders could be found for logger (la2shark.gameserver.GameServe
r).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
fo.
java.io.FileNotFoundException: C:\ant\svn\svn\build\dist\gameserver\config\GMAcc
ess.xml (╨Э╨╡ ╤Г╨┤╨░╨╡╤В╤Б╤П ╨╜╨░╨╣╤В╨╕ ╤Г╨║╨░╨╖╨░╨╜╨╜╤Л╨╣ ╤Д╨░╨╣╨╗)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at la2shark.gameserver.Config.loadGMAccess(Config.java:1973)
        at la2shark.gameserver.Config.loadGMAccess(Config.java:1951)
        at la2shark.gameserver.Config.load(Config.java:1902)
        at la2shark.gameserver.GameServer.<init>(GameServer.java:122)
        at la2shark.gameserver.GameServer.main(GameServer.java:338)

и висит так.

Запускаю authserver:
Код:
Starting AuthServer.

log4j:WARN No appenders could be found for logger (la2shark.authserver.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
fo.
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@
'localhost' (using password: NO)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:935)
        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4101)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1300)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2337)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
370)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2154)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:305)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnecti
on(DriverManagerConnectionFactory.java:78)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java:582)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericOb
jectPool.java:1181)
        at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSo
urce.java:106)
        at la2shark.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
ava:77)
        at la2shark.authserver.database.L2DatabaseFactory.getConnection(L2Databa
seFactory.java:26)
        at la2shark.authserver.AuthServer.main(AuthServer.java:89)

Server terminated abnormaly ...


Server terminated ...
Посдкажите что не так?
Ответ
#59
ardashes, Вы не хотите думать и учиться, вот в чём дело. Да, кстати, Вы поиском принципиально не пользуетесь?
Fortuna - non penis, in manus non recipe.
Ответ
#60
Ashe Написал:ardashes, Вы не хотите думать и учиться, вот в чём дело. Да, кстати, Вы поиском принципиально не пользуетесь?
Понял, деиствую)

Логин запустился нормально, а вот геим че-то опять не хочет

Код:
[12:57:43]  INFO =================================================
[12:57:43]  INFO Revision: ................ Unversioned directory
[12:57:43]  INFO Build date: .............. 2012.08.24 21:40
[12:57:43]  INFO Compiler version: ........ 1.6.0_34-b04 (Sun Microsystems Inc.)

[12:57:43]  INFO =================================================
[12:57:43] ERROR Error loading config : CommunityBoard.properties!
[12:57:43]  INFO Abuse: Loaded 18 abuse words.
[12:57:44]  INFO IdFactory: Clear characters online status.
[12:57:44]  INFO IdFactory: Extracted total 0 used id's.
[12:57:44]  INFO IdFactory: 102912 id's available.
[12:57:44]  INFO Scripts: Loading...
[12:58:08]  INFO Scripts: Loaded 1114 classes.
[12:58:08]  INFO GeoEngine: Loading Geodata...
[12:58:08]  INFO Loaded 418 translit entries.
[12:58:08]  INFO GameTimeController: initialized. Current time is 11:48 in the d
ay.
[12:58:08]  INFO L2World: Creating regions: [256][272][32].
[12:58:08]  INFO HtmCache: disabled.
[12:58:09]  INFO StringHolder: load strings: 424 for lang: RUSSIAN
[12:58:09]  INFO StringHolder: load strings: 424 for lang: ENGLISH
[12:58:16]  INFO SkillsEngine: Loaded 65980 skill templates from XML files. Max
id: 90001, max level: 259
[12:58:21]  INFO OptionDataHolder: loaded 24973 option data(s) count.
[12:58:25]  INFO ItemHolder: loaded 19134 item(s) count.
[12:58:31]  INFO NpcHolder: loaded 10456 npc(s) count.
[12:58:31]  INFO MapRegionManager: loaded 272 map region manager(s) count.
[12:58:31]  INFO MapRegionManager: loaded 272 map region manager(s) count.
[12:58:31]  INFO StaticObjectHolder: loaded 50 static object(s) count.
[12:58:32]  INFO DoorHolder: loaded 1155 door(s) count.
[12:58:32]  INFO ZoneHolder: loaded 1130 zone(s) count.
[B][12:58:35] ERROR SpawnParser: Invalid polygon: null{[[x: 149382 y: 119327]]}. Fi
le: 24_21.xml
[12:58:35]  INFO SpawnHolder: loaded 28164 spawn(s) count.
[12:58:36]  INFO InstantZoneHolder: loaded 80 instant zone(s) count.
Exception in thread "main" java.lang.ExceptionInInitializerError
        at la2shark.gameserver.data.xml.Parsers.parseAll(Parsers.java:39)
        at la2shark.gameserver.GameServer.<init>(GameServer.java:150)
        at la2shark.gameserver.GameServer.main(GameServer.java:338)
Caused by: java.lang.NullPointerException
        at la2shark.gameserver.geodata.GeoEngine.getGeoBlockFromGeoCoords(GeoEng
ine.java:1344)
        at la2shark.gameserver.geodata.GeoEngine.applyGeoCollision(GeoEngine.jav
a:1926)
        at la2shark.gameserver.model.instances.DoorInstance.setGeoOpen(DoorInsta
nce.java:481)
        at la2shark.gameserver.model.instances.DoorInstance.closeMe(DoorInstance
.java:306)
        at la2shark.gameserver.model.instances.DoorInstance.onSpawn(DoorInstance
.java:379)
        at la2shark.gameserver.model.GameObject.spawn0(GameObject.java:247)
        at la2shark.gameserver.model.GameObject.spawnMe0(GameObject.java:229)
        at la2shark.gameserver.model.GameObject.spawnMe(GameObject.java:220)
        at la2shark.gameserver.model.Creature.spawnMe(Creature.java:4786)
        at la2shark.gameserver.model.entity.Reflection.init(Reflection.java:649)

        at la2shark.gameserver.instancemanager.ReflectionManager.<init>(Reflecti
onManager.java:42)
        at la2shark.gameserver.instancemanager.ReflectionManager.<clinit>(Reflec
tionManager.java:21)
        ... 3 more[/B]
как я понял это из-за геодаты?

Добавлено через 10 часов 54 минуты
Походу я тут один
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Source Lineage2 God Awakening LonelyDragon 0 1,631 06-01-2019, 11:39 AM
Последний пост: LonelyDragon
  L2J-Devs (High Five) Open-Source U3Games 1 3,830 11-05-2018, 10:38 PM
Последний пост: U3Games
  Lucera 2 r658 Source n3k0nation 3 4,758 02-23-2018, 09:08 PM
Последний пост: Pastorious
  Source AceWorld & Interlude.Su n3k0nation 23 13,779 04-11-2017, 08:16 PM
Последний пост: T0T0
  L2 Tenkai Source Code - Helios tuningxtreme 3 6,207 02-02-2017, 10:52 PM
Последний пост: tuningxtreme
  Ищу Source Gracia Part2 L2Emu-RT 1553 TFH 39 8,991 08-07-2016, 12:08 PM
Последний пост: AndruliKxD
  Шара: Lucera 2 (actual source) Ro_0TT 142 81,477 08-05-2016, 11:24 PM
Последний пост: Emperor
  Server Source Code C++ Numeric 14 8,126 04-18-2016, 03:54 PM
Последний пост: ANZO
  L2WT Ertheia Open Source ALF. 6 3,992 02-28-2016, 08:17 PM
Последний пост: xlBASlx
  Lucera 2 SOURCE (RC 7.4) Ro_0TT 73 28,144 02-27-2016, 07:12 PM
Последний пост: Shed

Перейти к форуму:


Пользователи, просматривающие эту тему: 3 Гость(ей)