Форум администраторов игровых серверов

Форум администраторов игровых серверов (https://forum.zone-game.info/TT.php)
-   Серверная часть (https://forum.zone-game.info/forumdisplay.php?f=148)
-   -   Компилирование AionJ-Hungary (https://forum.zone-game.info/showthread.php?t=11826)

black-soul 02.01.2011 12:31

Компилирование AionJ-Hungary
 
Подскажите пожалуйста как скомпилировать AionJ-Hungary???ant некомпилирует,подскажите(пожалуйста поподробней)

ALeKsIuS 02.01.2011 12:34

Re: Компилирование AionJ-Hungary
 
Когда поиском пользоваться научитесь? ТЫК

black-soul 02.01.2011 13:03

Re: Компилирование AionJ-Hungary
 
Я находил ету тему,она не помогла там есть файлы компиляторы!!!а тут нету

ALeKsIuS 02.01.2011 13:05

Re: Компилирование AionJ-Hungary
 
А батник создать великая проблема?

PROGRAMMATOR 02.01.2011 13:25

Re: Компилирование AionJ-Hungary
 
Цитата:

Сообщение от black-soul (Сообщение 102389)
а тут нету

А это? http://aionj-hungary.googlecode.com/...meServer/c.bat

sotariz 02.01.2011 13:56

Re: Компилирование AionJ-Hungary
 
c.bat надо еще перед запуском отредактировать, и компилируется при помощи maven

Infinity 02.01.2011 16:09

Re: Компилирование AionJ-Hungary
 
а что надо отредактировать ? можите кто поделиться батником для компиляции, то тот который в комплекте идет, не работает.

sotariz 02.01.2011 17:46

Re: Компилирование AionJ-Hungary
 
Код:

@echo off

REM ------------------------------------------------------------------

REM Author : Mystick, Based on Resp@wner (L2j)

REM Last modified : 04/08/2010

REM ------------------------------------------------------------------

REM ------------------------------------------------------------------

REM Change path without drive letter where projects are

set pom.xmlGSPath=AL-Game <- указать полный путь к папке с правильным названием

set pom.xmlLSPath=AL-Login <- указать полный путь к папке с правильным названием

set build.xmlCMPath=AL-Commons <- указать полный путь к папке с правильным названием

REM ------------------------------------------------------------------



echo You have to edit this script to match your project folder

echo.

echo What do you want to do ?

echo For build project type b

echo For clean project type c

echo For quit the script's execution type q

echo.

:asktype1

set projecttype=x

set /p buildproject=Build project : b  / Clean project : c ?

if /i %buildproject%==b goto build

if /i %buildproject%==c goto clean

if /i %buildproject%==q goto end

goto asktype1



:build

echo Choose the project you want to build.

echo c for Commons (First step)

echo g for GameServer

echo l for LoginServer

echo q for quit

echo.

:asktype2

set buildproject=x

set /p buildproject= Commons install type : c / GameServer build type : g  / LoginServer build type : l  ?

if /i %buildproject%==g goto gsbuild

if /i %buildproject%==l goto lsbuild

if /i %buildproject%==c goto cmbuild

if /i %buildproject%==q goto end

goto asktype2



:gsbuild

echo This script allow to automatise the compilation of the GameServer

echo with Maven in command line.

echo.

echo Moving to project folder (%pom.xmlGSPath%)

cd %pom.xmlGSPath%

echo.

echo Building project

mvn assembly:assembly -Dmaven.test.skip=true

pause



:lsbuild

echo This script allow to automatise the compilation of the LoginServer

echo with Maven in command line.

echo.

echo Moving to project folder (%pom.xmlLSPath%)

cd %pom.xmlLSPath%

echo.

echo Building project

mvn assembly:assembly -Dmaven.test.skip=true

pause



:cmbuild

echo This script allow to automatise the compilation of the Commons

echo with Maven in command line.

echo.

echo Moving to project folder (%build.xmlCMPath%)

cd %build.xmlCMPath%

echo.

echo Installing project

mvn install

pause



:clean

echo Choose the project you want to clean.

echo g for GameServer

echo l for LoginServer

echo c for Commons

echo q for quit

echo.

:asktype3

set cleanproject=x

set /p cleanproject= Commons : c / GameServer clean type : g  / LoginServer clean type : l ?

if /i %cleanproject%==g goto gsclean

if /i %cleanproject%==l goto lsclean

if /i %cleanproject%==c goto cmclean

if /i %cleanproject%==q goto end

goto asktype3



:gsclean

echo This script allow to automatise the clean of the GameServer

echo with Maven in command line.

echo.

echo Moving to project folder (%pom.xmlGSPath%)

cd %pom.xmlGSPath%

echo.

echo cleaning project

mvn clean

deltree target



:lsclean

echo This script allow to automatise the clean of the LoginServer

echo with Maven in command line.

echo.

echo Moving to project folder (%pom.xmlLSPath%)

cd %pom.xmlLSPath%

echo.

echo Cleaning project

mvn clean

deltree target



:cmclean

echo This script allow to automatise the cleaning of the DataPack

echo with Ant in command line.

echo.

echo Moving to project folder (%build.xmlDPPath%)

cd %build.xmlDPPath%

echo.

echo Cleaning project

ant clean



:end

echo.

echo Script complete.

pause


black-soul 02.01.2011 23:39

Re: Компилирование AionJ-Hungary
 
использовал вот етот код:
Цитата:

echo off
REM ------------------------------------------------------------------
REM Author : Mystick, Based on Resp@wner (L2j)
REM Last modified : 04/08/2010
REM ------------------------------------------------------------------
REM ------------------------------------------------------------------
REM Change path without drive letter where projects are
set pom.xmlGSPath=.
set pom.xmlLSPath=..\LoginServer
set build.xmlCMPath=..\Commons
REM ------------------------------------------------------------------

echo You have to edit this script to match your project folder
echo.
echo What do you want to do ?
echo For build project type b
echo For clean project type c
echo For quit the script's execution type q
echo.
:asktype1
set projecttype=x
set /p buildproject=Build project : b / Clean project : c ?
if /i %buildproject%==b goto build
if /i %buildproject%==c goto clean
if /i %buildproject%==q goto end
goto asktype1

:build
echo Choose the project you want to build.
echo c for Commons (First step)
echo g for GameServer
echo l for LoginServer
echo q for quit
echo.
:asktype2
set buildproject=x
set /p buildproject= Commons install type : c / GameServer build type : g / LoginServer build type : l ?
if /i %buildproject%==g goto gsbuild
if /i %buildproject%==l goto lsbuild
if /i %buildproject%==c goto cmbuild
if /i %buildproject%==q goto end
goto asktype2

:gsbuild
echo This script allow to automatise the compilation of the GameServer
echo with Maven in command line.
echo.
echo Moving to project folder (%pom.xmlGSPath%)
cd %pom.xmlGSPath%
echo.
echo Building project
mvn assembly:assembly -Dmaven.test.skip=true
pause

:lsbuild
echo This script allow to automatise the compilation of the LoginServer
echo with Maven in command line.
echo.
echo Moving to project folder (%pom.xmlLSPath%)
cd %pom.xmlLSPath%
echo.
echo Building project
mvn assembly:assembly -Dmaven.test.skip=true
pause

:cmbuild
echo This script allow to automatise the compilation of the Commons
echo with Maven in command line.
echo.
echo Moving to project folder (%build.xmlCMPath%)
cd %build.xmlCMPath%
echo.
echo Installing project
mvn install
pause

:clean
echo Choose the project you want to clean.
echo g for GameServer
echo l for LoginServer
echo c for Commons
echo q for quit
echo.
:asktype3
set cleanproject=x
set /p cleanproject= Commons : c / GameServer clean type : g / LoginServer clean type : l ?
if /i %cleanproject%==g goto gsclean
if /i %cleanproject%==l goto lsclean
if /i %cleanproject%==c goto cmclean
if /i %cleanproject%==q goto end
goto asktype3

:gsclean
echo This script allow to automatise the clean of the GameServer
echo with Maven in command line.
echo.
echo Moving to project folder (%pom.xmlGSPath%)
cd %pom.xmlGSPath%
echo.
echo cleaning project
mvn clean
deltree target

:lsclean
echo This script allow to automatise the clean of the LoginServer
echo with Maven in command line.
echo.
echo Moving to project folder (%pom.xmlLSPath%)
cd %pom.xmlLSPath%
echo.
echo Cleaning project
mvn clean
deltree target

:cmclean
echo This script allow to automatise the cleaning of the DataPack
echo with Ant in command line.
echo.
echo Moving to project folder (%build.xmlDPPath%)
cd %build.xmlDPPath%
echo.
echo Cleaning project
ant clean

:end
echo.
echo Script complete.
pause
высвечиваеться вот такая ошибка:(ну посмотрите я там еще чтото клацнул) http://i059.radikal.ru/1101/5b/18312420120b.jpg
тоже самое высвечиваеться при использовании кода sotariz

sotariz 03.01.2011 13:43

Re: Компилирование AionJ-Hungary
 
Цитата:

Сообщение от black-soul (Сообщение 102474)
использовал вот етот код:

высвечиваеться вот такая ошибка:(ну посмотрите я там еще чтото клацнул) http://i059.radikal.ru/1101/5b/18312420120b.jpg
тоже самое высвечиваеться при использовании кода sotariz

судя по скрину компилировал до того как отредактировал c.bat (moving to project folder (AL-Game))- это раз, два - установи maven ("mvn" не является внутренней или внешней командой...) и пропиши его в Path (переменные среды)

да... какой-то косяк есть... компилится все окромя GS:
лог компилирования GS:
Свернуть ↑Развернуть ↓

ошибки в LegionMember.java и Legion.java
ps. оба кода для c.bat работоспособны

Добавлено через 2 часа 33 минуты
был у меня скомпилированный GS предыдущей ревизии (какой именно не помню), при запуске ругается
Код:

Starting AionJ-Hungary Game Server.

INFO [03 янв 15:03:52,478] Logging Initialized.
------------------------------------------------------------=[ Administration ]
INFO [03 янв 15:03:52,512] Loading: .\config\administration\admin.properties
----------------------------------------------------------------------=[ Main ]
INFO [03 янв 15:03:53,187] Loading: .\config\main\cache.properties
INFO [03 янв 15:03:53,190] Loading: .\config\main\craft.properties
INFO [03 янв 15:03:53,191] Loading: .\config\main\custom.properties
INFO [03 янв 15:03:53,193] Loading: .\config\main\enchants.properties
INFO [03 янв 15:03:53,195] Loading: .\config\main\falldamage.properties
INFO [03 янв 15:03:53,197] Loading: .\config\main\gameserver.properties
INFO [03 янв 15:03:53,198] Loading: .\config\main\group.properties
INFO [03 янв 15:03:53,202] Loading: .\config\main\html.properties
INFO [03 янв 15:03:53,204] Loading: .\config\main\legions.properties
INFO [03 янв 15:03:53,206] Loading: .\config\main\npcmovement.properties
INFO [03 янв 15:03:53,210] Loading: .\config\main\options.properties
INFO [03 янв 15:03:53,214] Loading: .\config\main\prices.properties
INFO [03 янв 15:03:53,217] Loading: .\config\main\rates.properties
INFO [03 янв 15:03:53,222] Loading: .\config\main\shutdown.properties
INFO [03 янв 15:03:53,226] Loading: .\config\main\siege.properties
INFO [03 янв 15:03:53,227] Loading: .\config\main\thread.properties
-------------------------------------------------------------------=[ Network ]
INFO [03 янв 15:03:53,294] Loading: .\config\network\database.properties
INFO [03 янв 15:03:53,295] Loading: .\config\network\network.properties
-------------------------------------------------------------------=[ Threads ]
INFO [03 янв 15:03:53,375] ThreadPoolManager: Initialized with 7 scheduler, 3 instant, 0 long running thread(s).
---------------------------------------------------------------=[ StaticDatas ]
INFO [03 янв 15:04:13,059] Loaded world maps data: 68 maps
INFO [03 янв 15:04:13,060] Loaded player exp table: 56 levels
INFO [03 янв 15:04:13,061] Loaded 424 player stat templates
INFO [03 янв 15:04:13,061] Loaded 299 summon stat templates
INFO [03 янв 15:04:13,062] Loaded 49106 item templates
INFO [03 янв 15:04:13,062] Loaded 27649 npc templates
INFO [03 янв 15:04:13,063] Loaded 91 pet templates
INFO [03 янв 15:04:13,063] Loaded 4 initial player templates
INFO [03 янв 15:04:13,063] Loaded 481 trade lists
INFO [03 янв 15:04:13,064] Loaded 87 npc teleporter templates
INFO [03 янв 15:04:13,064] Loaded 107 teleport locations
INFO [03 янв 15:04:13,064] Loaded 6127 skill templates
INFO [03 янв 15:04:13,065] Loaded 7007 skill learn entries
INFO [03 янв 15:04:13,066] Loaded 10 cube expand entries
INFO [03 янв 15:04:13,066] Loaded 58 warehouse expand entries
INFO [03 янв 15:04:13,067] Loaded 60 bind point entries
INFO [03 янв 15:04:13,067] Loaded 3726 quest data entries
INFO [03 янв 15:04:13,068] Loaded 410 gatherable entries
INFO [03 янв 15:04:13,068] Loaded 148 title entries
INFO [03 янв 15:04:13,069] Loaded 106 walker routes
INFO [03 янв 15:04:13,069] Loaded 470 zone entries
INFO [03 янв 15:04:13,069] Loaded 992 goodslist entries
INFO [03 янв 15:04:13,070] Loaded 304 tribe relation entries
INFO [03 янв 15:04:13,070] Loaded 5071 recipe entries
INFO [03 янв 15:04:13,070] Loaded 91 portal entries
INFO [03 янв 15:04:13,071] Loaded 200 item set entries
INFO [03 янв 15:04:13,071] Loaded 8767 npc skill list entries
INFO [03 янв 15:04:13,072] Loaded 17 pet skill list entries
INFO [03 янв 15:04:13,072] Loaded 54 siege location entries
INFO [03 янв 15:04:13,073] Loaded 27649 objectInfos entries
FATAL [03 янв 15:04:13,076] Error while loading static datanull
javax.xml.bind.UnmarshalException
 - with linked exception:
[java.lang.reflect.InvocationTargetException]
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.JaxBeanInfo.invokeUnmarshallCallback(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.JaxBeanInfo.invokeAfterUnmarshalMethod(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.fireAfterUnmarshal(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.leaveElement(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.endElement(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.endElement(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.endElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at com.aionemu.gameserver.dataholders.loadingutils.XmlDataLoader.loadStaticData(XmlDataLoader.java:80)
        at com.aionemu.gameserver.dataholders.DataManager.<init>(DataManager.java:154)
        at com.aionemu.gameserver.dataholders.DataManager.<init>(DataManager.java:35)
        at com.aionemu.gameserver.dataholders.DataManager$SingletonHolder.<clinit>(DataManager.java:193)
        at com.aionemu.gameserver.dataholders.DataManager.getInstance(DataManager.java:148)
        at com.aionemu.gameserver.GameServer.<init>(GameServer.java:109)
        at com.aionemu.gameserver.GameServer.main(GameServer.java:86)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        ... 31 more
Caused by: java.lang.NullPointerException
        at com.aionemu.gameserver.dataholders.StaticData.afterUnmarshal(StaticData.java:165)
        ... 35 more
ERROR [03 янв 15:04:13,087] Critical Error - Thread: main terminated abnormaly: java.lang.Error: Error while loading static data
java.lang.Error: Error while loading static data
        at com.aionemu.gameserver.dataholders.loadingutils.XmlDataLoader.loadStaticData(XmlDataLoader.java:85)
        at com.aionemu.gameserver.dataholders.DataManager.<init>(DataManager.java:154)
        at com.aionemu.gameserver.dataholders.DataManager.<init>(DataManager.java:35)
        at com.aionemu.gameserver.dataholders.DataManager$SingletonHolder.<clinit>(DataManager.java:193)
        at com.aionemu.gameserver.dataholders.DataManager.getInstance(DataManager.java:148)
        at com.aionemu.gameserver.GameServer.<init>(GameServer.java:109)
        at com.aionemu.gameserver.GameServer.main(GameServer.java:86)
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[java.lang.reflect.InvocationTargetException]
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.JaxBeanInfo.invokeUnmarshallCallback(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.JaxBeanInfo.invokeAfterUnmarshalMethod(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.fireAfterUnmarshal(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.leaveElement(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.endElement(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.endElement(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.endElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
        at com.aionemu.gameserver.dataholders.loadingutils.XmlDataLoader.loadStaticData(XmlDataLoader.java:80)
        ... 6 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        ... 31 more
Caused by: java.lang.NullPointerException
        at com.aionemu.gameserver.dataholders.StaticData.afterUnmarshal(StaticData.java:165)
        ... 35 more

Добавлено через 2 часа 57 минут
вот нашел рабочий серв последней ревы
aionjhungaryserv253.rar


Текущее время: 02:33. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot