Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Shark-TM[Source] - UP1
#41
Отредактировал:
Немного не так прочитал суть вашей ошибки, она ругается на то что не может найти метод который указан в строчке запуска, ищите проблему в расположении либсы, либо в батнике запуска.
22 пост посмотрите..
open-team.ru
Ответ
#42
Серый_Ветер Написал:geodata включена и присутсуют все файлы.

1. не та ошибка:

2. все ошибки перерыл, нету таких...

Да как нету? Я писал выше, внимательнее.

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;
}
Ответ
#43
в каком именно?
Код:
> find . -name "*.*" -exec grep -H 'public void onBypassCommand(Player player, String bypass)' {} \; | awk -F":" '{print $1}' | uniq
Код:
./build/dist/gameserver/data/scripts/services/community/PrivateMail.java
./build/dist/gameserver/data/scripts/services/community/CommunityBoard.java
./build/dist/gameserver/data/scripts/services/community/ManageFavorites.java
./build/dist/gameserver/data/scripts/services/community/ManageMemo.java
./build/dist/gameserver/data/scripts/services/community/ClanCommunity.java
./build/dist/gameserver/data/scripts/services/community/ManageFriends.java
./build/dist/gameserver/data/scripts/services/community/RegionCommunity.java
./gameserver/data/scripts/services/community/ManageFavorites.java
./gameserver/data/scripts/services/community/ClanCommunity.java
./gameserver/data/scripts/services/community/CommunityBoard.java
./gameserver/data/scripts/services/community/RegionCommunity.java
./gameserver/data/scripts/services/community/ManageMemo.java
./gameserver/data/scripts/services/community/ManageFriends.java
./gameserver/data/scripts/services/community/PrivateMail.java
./gameserver/java/la2shark/gameserver/handler/bbs/CommunityBoardManager.java

все, нашел...по содержимому
Код:
> find . -name "*.*" -exec grep -H 'html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML +' {} \; | awk -F":" '{print $1}' | uniq
Код:
./services/community/CommunityBoard.java
>
Ответ
#44
В ошибке было указано в каком файле.
Ответ
#45
убрал вышеуказанные строки строки
все равно
Код:
> cat stdout.log
Exception in thread "main" java.lang.NoClassDefFoundError: la2shark/gameserver/GameServer
Caused by: java.lang.ClassNotFoundException: la2shark.gameserver.GameServer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
Ответ
#46
Класс не может найти, написано же, у вас видимо ядро не скомпилировано.
Ответ
#47
с ссылки в первом посте слито.
в корне с build.xml
Код:
ant -i log
в логах пишет что все сделано.

Добавлено через 4 минуты
Цитата:> cat log

i
Код:
nit:

compile-commons:
   [delete] Deleting directory /home/l2serv/source/sharkteam/source/build/classes
    [mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/classes
    [javac] /home/l2serv/source/sharkteam/source/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 /home/l2serv/source/sharkteam/source/build/classes

commons-jar:
     [exec] Execute failed: java.io.IOException: Cannot run program "/home/l2serv/source/sharkteam/source/C:/Program Files/SlikSvn/bin/svnversion.exe": java.io.IOException: error=2, No such file or directory
      [jar] Building jar: /home/l2serv/source/sharkteam/source/build/commons.jar

compile-authserver:
   [delete] Deleting directory /home/l2serv/source/sharkteam/source/build/classes
    [mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/classes
    [javac] /home/l2serv/source/sharkteam/source/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 /home/l2serv/source/sharkteam/source/build/classes

authserver-jar:
     [exec] Execute failed: java.io.IOException: Cannot run program "/home/l2serv/source/sharkteam/source/C:/Program Files/SlikSvn/bin/svnversion.exe" (in directory "/home/l2serv/source/sharkteam/source/authserver"): java.io.IOException: error=2, No such file or directory
      [jar] Building jar: /home/l2serv/source/sharkteam/source/build/authserver.jar

authserver:
     [copy] Copying 2 files to /home/l2serv/source/sharkteam/source/build/dist/authserver/libs

compile-gameserver:
   [delete] Deleting directory /home/l2serv/source/sharkteam/source/build/classes
    [mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/classes
    [javac] /home/l2serv/source/sharkteam/source/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 /home/l2serv/source/sharkteam/source/build/classes
    [javac] /home/l2serv/source/sharkteam/source/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] /home/l2serv/source/sharkteam/source/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] /home/l2serv/source/sharkteam/source/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] /home/l2serv/source/sharkteam/source/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] /home/l2serv/source/sharkteam/source/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:
     [exec] Execute failed: java.io.IOException: Cannot run program "/home/l2serv/source/sharkteam/source/C:/Program Files/SlikSvn/bin/svnversion.exe" (in directory "/home/l2serv/source/sharkteam/source/gameserver"): java.io.IOException: error=2, No such file or directory
      [jar] Building jar: /home/l2serv/source/sharkteam/source/build/gameserver.jar

gameserver:
    [mkdir] Created dir: /home/l2serv/source/sharkteam/source/build/dist/gameserver/log
     [sync] Copying 1 file to /home/l2serv/source/sharkteam/source/build/dist/gameserver
     [sync] Removed 2 dangling directories from /home/l2serv/source/sharkteam/source/build/dist/gameserver
     [sync] Removed 20 dangling files from /home/l2serv/source/sharkteam/source/build/dist/gameserver
     [copy] Copying 2 files to /home/l2serv/source/sharkteam/source/build/dist/gameserver/libs
     [copy] Copying 18 files to /home/l2serv/source/sharkteam/source/build/dist/gameserver/libs

dist:
      [zip] Building zip: /home/l2serv/source/sharkteam/source/build/mmocore-dist.zip

BUILD SUCCESSFUL
Total time: 22 seconds
>

Добавлено через 2 часа 34 минуты
она что только пд виндой скомпилится?

ээээ...
и смысл тогда от нее?

Добавлено через 3 часа 37 минут
проблема решена.
отчасти.
Цитата:ищите проблему в расположении либсы
закинул все ее содержимое в корень gameserver
и пошло.
покрайней мере дальше:
Цитата:> cat stdout.log
[19:14:31] INFO =================================================
[19:14:31] INFO Revision: ................ ${build.revision}
[19:14:31] INFO Build date: .............. 2012.07.11 15:15
[19:14:31] INFO Compiler version: ........ 1.6.0_07-b02 (The FreeBSD Foundation)
[19:14:31] INFO =================================================
[19:14:31] ERROR Error loading config : CommunityBoard.properties!
[19:14:31] INFO Abuse: Loaded 18 abuse words.
[19:14:31] INFO IdFactory: Clear characters online status.
[19:14:31] INFO IdFactory: Extracted 30 used id's from characters
[19:14:31] INFO IdFactory: Extracted 940 used id's from items
[19:14:31] INFO IdFactory: Extracted 1 used id's from clan_data
[19:14:31] INFO IdFactory: Extracted total 971 used id's.
[19:14:31] INFO IdFactory: 411648 id's available.
[19:14:31] INFO Scripts: Loading...
[19:14:34] ERROR /home/l2serv/source/sharkteam/tests/gameserver/data/scripts/services/community/CommunityBoard.java:19,8: The import services.community.custom cannot be resolved
[19:14:36] ERROR Scripts: Failed loading scripts!
>

одно НО!
я удалял эти строки из CommunityBoard.java
Цитата:if (!Config.COMMUNITYBOARD_CUSTOM_ENABLED)
html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "bbs_top.htm", player);
else
{
HtmlManager.getInstance().onBypassCommand(player, bypass);
return;
}

чего тут то ругается?

Добавлено через 4 часа 23 минуты
Код:
public void onBypassCommand(Player player, String bypass)
        {
                StringTokenizer st = new StringTokenizer(bypass, "_");
                String cmd = st.nextToken();
                String html = "";
                if("bbshome".equals(cmd))
                {
                        StringTokenizer p = new StringTokenizer(Config.BBS_DEFAULT, "_");
                        String dafault = p.nextToken();
                        if(dafault.equals(cmd))
                        {
                                int favCount = 0;
                                Connection con = null;
                                PreparedStatement statement = null;
                                ResultSet rset = null;
                                try
                                {
                                        con = DatabaseFactory.getInstance().getConnection();
                                        statement = con.prepareStatement("SELECT count(*) as cnt FROM `bbs_favorites` WHERE `object_id` = ?");
                                        statement.setInt(1, player.getObjectId());
                                        rset = statement.executeQuery();
                                        if(rset.next())
                                                favCount = rset.getInt("cnt");
                                }
                                catch(Exception ignored)
                                {}
                                finally
                                {
                                        DbUtils.closeQuietly(con, statement, rset);
                                }

                                html = html.replace("<?fav_count?>", String.valueOf(favCount));
                                html = html.replace("<?clan_count?>", String.valueOf(ClanTable.getInstance().getClans().length));
                                html = html.replace("<?market_count?>", String.valueOf(CommunityBoardManager.getInstance().getIntProperty("col_count")));
                        }
                        else
                        {
                                onBypassCommand(player, Config.BBS_DEFAULT);
                                return;
                        }
                }
                else if("bbslink".equals(cmd))
                        html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "bbs_homepage.htm", player);
                else if(bypass.startsWith("_bbspage"))
                {
                        //Example: "bypass _bbspage:index".
                        String[] b = bypass.split(":");
                        String page = b[1];
                        html = HtmCache.getInstance().getNotNull(COMMUNITY_BOARD_HTML + "pages/" + page + ".htm", player);
                }
                else if(bypass.startsWith("_bbsmultisell"))
                {
                        try
                        {
                                int multisell = Integer.parseInt(curCommand(trunkateCommand(bypass)));
                                MultiSellHolder.getInstance().SeparateAndSend(multisell, player, 0);
                        }
                        catch (Exception e)
                        {
                                _log.warn("Error command: " + bypass);
                        }
                        return;
                }
                else if(bypass.startsWith("_bbsscripts"))
                {
                        //Example: "_bbsscripts:events.GvG.GvG:addGroup;_bbspage:index" or "_bbsscripts:events.GvG.GvG:addGroup;_bbshome" or "_bbsscripts:events.GvG.GvG:addGroup"...
                        StringTokenizer st2 = new StringTokenizer(bypass, ";");
                        String sBypass = st2.nextToken().substring(12);
                        String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
                        if(pBypass != null)
                                CommunityBoardManager.getInstance().onBypassCommand(player, pBypass);

                        String[] word = sBypass.split("\\s+");
                        String[] args = sBypass.substring(word[0].length()).trim().split("\\s+");
                        String[] path = word[0].split(":");
                        if(path.length != 2)
                                return;

                        Scripts.getInstance().callScripts(player, path[0], path[1], word.length == 1 ? new Object[] {} : new Object[] { args });
                        return;
                }

                ShowBoard.separateAndSend(html, player);
        }
убрано все. как видите.

Добавлено через 4 часа 59 минут
теперь пишет.
Код:
[20:22:32] INFO =================================================
[20:22:32] INFO Revision: ................ ${build.revision}
[20:22:32] INFO Build date: .............. 2012.07.11 20:07
[20:22:32] INFO Compiler version: ........ 1.6.0_07-b02 (The FreeBSD Foundation)
[20:22:32] INFO =================================================
[20:22:32] ERROR Error loading config : CommunityBoard.properties!
[20:22:32] INFO Abuse: Loaded 18 abuse words.
[20:22:33] INFO IdFactory: Clear characters online status.
[20:22:33] INFO IdFactory: Extracted 30 used id's from characters
[20:22:33] INFO IdFactory: Extracted 940 used id's from items
[20:22:33] INFO IdFactory: Extracted 1 used id's from clan_data
[20:22:33] INFO IdFactory: Extracted total 971 used id's.
[20:22:33] INFO IdFactory: 411648 id's available.
[20:22:33] INFO Scripts: Loading...
[20:22:33] ERROR Scripts: Failed loading scripts!
и ни в какую
пустой файл не читает.
и заполненый тоже не читает.
Ответ
#48
тут конфигов на альт б нету хотя они прописаны в ядре
жадный попще !

Добавлено через 1 минуту
он даже баг на оли не исправил, что можно с фулл бафом ходить и тд. импорты поменял там и парочку проверок добавил.

теперь он начал мне репутацию минусовать Big Grin пустая трата времени Big Grin
Ответ
#49
PaperMan Написал:тут конфигов на альт б нету хотя они прописаны в ядре

Добавлено через 1 минуту
он даже баг на оли не исправил, что можно с фулл бафом ходить и тд. импорты поменял там и парочку проверок добавил.

Да что вы говорите :redlol:.
Ответ
#50
Попогите скомпилить сборку, ни в какую не идет, вот лог

Код:
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] C:\ant\svn\commons\java\la2shark\commons\dbcp\BasicDataSource.java:25: error: BasicDataSource is not abstract and does not override abstract method getParentLogger() in CommonDataSource
    [javac] public class BasicDataSource implements DataSource
    [javac]        ^
    [javac] 1 error
    [javac] 1 warning

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

Total time: 2 seconds
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  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,476 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,143 02-27-2016, 07:12 PM
Последний пост: Shed

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


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