Jump to content

Recommended Posts

Posted

Όσοι έχετε ασχοληθεί με τον κώδικα του L2JServer θα έχετε παρατηρήσει οτι κάθε φορά που κάνετε Build, ανοίγετε το φάκελο με το αρχείο L2JServer.jar και κάνετε Copy/Paste το αρχείο αυτό μέσα στον φάκελο που τρέχει ο local Server σας ( όσοι χρησιμοποιείτε έναν για testing στο PC σας, δηλαδή οι περισσότεροι. ).

 

Στον οδηγό αυτό θα δημιουργήσουμε ένα δεύτερο build αρχείο ας το ονομάσουμε CustomBuild.xml το οποίο με το που το τρέχουμε, όχι μόνο κάνει build αλλά μεταφέρει τα αρχεία και στην σωστή θέση, απαλλάσοντάς μας από την πλοήγηση στους φακέλους και το copy/paste του l2jserver.jar.

 

Βήμα πρώτο.

Βρίσκουμε το αρχείο build.xml στο pack μας kai to κάνουμε copy/paste στο ίδιο directory. Του δίνουμε ένα κενούργιο όνομα, ότι θέλουμε ( εγώ το ονόμασα ApostasyBuild ). Όταν τελειώσουμε από αυτό το βήμα , έχουμε κάτι σαν το παρακάτω:

 

duplicatebuildfile.jpg

 

Βήμα δεύτερο.

Προσθέτουμε μέσα στον κώδικα του νέου αρχείου που μόλις αντιγράψαμε, τα κομμάτια που βρίσκονται "μέσα" στα πορτοκαλί σχόλια. Δεν θα προσθέσετε ολόκληρο το αρχείο, απλά θα εντοπίσετε τα σημεία. Δεν το έδωσα σε patch, γιατί μπορεί να μην θέλετε να το περάσετε ολόκληρο.

 

<?xml version="1.0" encoding="UTF-8"?>

<project name="L2J_Server" default="dist" basedir=".">

<description>

This script will build the L2J Server.

 

This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation; either version 3, or (at your option)

any later version.

 

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

 

You should have received a copy of the GNU General Public License

along with this program; if not, write to the Free Software

Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA

02111-1307, USA.

 

http://www.gnu.org/copyleft/gpl.html

</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" />

<property name="build.dist.libs" location="${build.dist}/libs" />

<property name="build.dist.languages" location="${build.dist}/languages" />

<property name="build.dist.images" location="${build.dist}/images" />

<property name="build.dist.doc" location="${build.dist}/doc" />

 

<path id="classpath">

<fileset dir="${lib}">

<include name="c3p0-0.9.1.2.jar" />

<include name="jython.jar" />

<include name="jython-engine.jar" />

<include name="javolution-5.5.0.jar" />

<include name="mmocore.jar" />

<include name="trove-2.1.0.jar" />

<include name="netcon.jar" />

</fileset>

</path>

 

<target name="verifyRequirements" description="Checks if the necessary requirements for building L2J are fulfilled">

<available classname="javax.script.ScriptContext" property="JDK6.present" />

<fail unless="JDK6.present" message="JDK 6 or greater is required." />

</target>

 

<target name="init" depends="clean, verifyRequirements" 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="version" description="Compile the source.">

<javac destdir="${build.classes}" optimize="on" debug="on" source="1.6" target="1.6" nowarn="off">

<src path="${src}" />

<classpath refid="classpath" />

</javac>

</target>

 

<target name="jar" depends="compile" description="Create the jar file">

<jar destfile="${build}/l2jserver.jar">

<fileset dir="${build.classes}" >

<exclude name="**/loginserver/**"/>

<exclude name="**/accountmanager/**"/>

<exclude name="**/gsregistering/**"/>

</fileset>

</jar>

<jar destfile="${build}/l2jlogin.jar">

<fileset dir="${build.classes}" >

<exclude name="**/gameserver/**"/>

</fileset>

</jar>

 

<!--Add these lines in your new build file. -->

<!--This is the path where you want your l2jserver.jar to go. -->

<jar destfile="C:\aurora\L2J_Server\gameserver\l2jserver.jar">

<fileset dir="${build.classes}" >

<exclude name="**/loginserver/**"/>

<exclude name="**/accountmanager/**"/>

<exclude name="**/gsregistering/**"/>

</fileset>

</jar>

 

<!--This is the path where you want your l2jlogin.jar to go. -->

<jar destfile="C:\aurora\L2J_Server\login\l2jlogin.jar">

<fileset dir="${build.classes}" >

<exclude name="**/gameserver/**"/>

</fileset>

</jar>

<!-- ends custom edit. -->

 

 

<copy todir="${build.dist.login}">

<fileset dir="${build}">

<include name="l2jlogin.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" />

</fileset>

</copy>

<copy todir="${build.dist.game}">

<fileset dir="${src}">

<include name="log.cfg" />

<include name="console.cfg" />

</fileset>

</copy>

<copy todir="${build.dist.libs}">

<fileset dir="${src}/../lib">

<include name="*.jar" />

</fileset>

</copy>

<copy todir="${build.dist.languages}">

<fileset dir="${src}/../languages" />

</copy>

<copy todir="${build.dist.images}">

<fileset dir="${src}/../images" />

</copy>

<copy todir="${build.dist.doc}">

<fileset dir="${basedir}">

<include name="changes.txt" />

<include name="LICENSE.txt" />

<include name="README.txt" />

</fileset>

</copy>

<copy todir="${build.dist.doc}">

<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.*" />

<include name="GSRegister.exe" />

<include name="L2JConfig.exe" />

<include name="L2JConfig.sh" />

</fileset>

</copy>

<copy todir="${build.dist.game}">

<fileset dir="dist">

<include name="GameServer_loop.sh" />

<include name="startGameServer.*" />

<include name="L2JConfig.exe" />

<include name="L2JConfig.sh" />

<include name="hibernate.cfg.xml" />

</fileset>

</copy>

<fixcrlf srcdir="${build.dist.game}" eol="lf" eof="remove" includes="**/*.sh" />

<fixcrlf srcdir="${build.dist.login}" eol="lf" eof="remove" includes="**/*.sh" />

<fixcrlf srcdir="${build.dist.game}" eol="crlf" eof="remove" includes="**/*.bat" />

<fixcrlf srcdir="${build.dist.login}" eol="crlf" eof="remove" includes="**/*.bat" />

<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="*.properties" />

<include name="chatfilter.txt" />

<exclude name="loginserver.properties" />

</fileset>

</copy>

 

 

<!-- This is where you want your configs to go. -->

<!-- BE CAREFUL !, this may wipe your configs if they differ

from eclipse ones. Dont add that if you edit your configs out

side eclipse platform -->

<copy todir="C:/aurora/L2J_Server/gameserver/config">

<fileset dir="java/config">

<include name="*.properties" />

<include name="chatfilter.txt" />

<exclude name="loginserver.properties" />

</fileset>

</copy>

<copy todir="C:/aurora/L2J_Server/login/config">

<fileset dir="java/config">

<include name="loginserver.properties" />

<include name="mmo.properties" />

<include name="telnet.properties" />

</fileset>

</copy>

<!-- ends custom edit. -->

 

 

<copy todir="${build.dist.login}/config">

<fileset dir="java/config">

<include name="loginserver.properties" />

<include name="mmo.properties" />

<include name="telnet.properties" />

</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>

 

<!-- You may remove your l2j_server.zip creation to compile faster. -->

 

<!-- ends custom edit. -->

 

 

</target>

 

<target name="version" depends="init" description="Create l2j-version.properties file">

<tstamp>

<format property="build.tstamp" pattern="yyyyMMdd_HHmm" />

</tstamp>

<exec dir="." executable="svnversion" outputproperty="l2j.revision" failifexecutionfails="false">

<arg line="-n ." />

</exec>

<concat destfile="${build.dist.game}/config/l2j-version.properties">

version=${l2j.revision}

builddate=${build.tstamp}

detailed info:

</concat>

<concat destfile="${build.dist.game}/config/l2j-version.properties" append="true">

<filelist dir="${src}/../.svn/" files="entries" />

<filterchain>

<prefixlines prefix="          " />

<headfilter lines="8" skip="4" />

<tokenfilter>

<ignoreblank />

</tokenfilter>

</filterchain>

</concat>

</target>

 

<target name="clean" description="Remove the output directories">

<delete dir="${build}" />

</target>

</project>

 

Η διαδρομή που είναι με κόκκινα γράμματα , είναι η διαδρομή στον φάκελο με τον οποίο εκκινεί ο server σας. To αλλάζετε με την διαδρομή που έχετε εσείς. ( μην βάλετε την δική μου ...  ::) ).

 

Εάν βάλετε όλλες τις αλλαγές που έκανα, τότε κάθε φορά που κάνετε build:

 

1)Πραγματοποιείται αυτόματη αντιγραφή του L2JServer.jar στον κατάλληλο φάκελο.

2)Πραγματοποιείται αυτόματη αντιγραφή του L2Jlogin.jar στον κατάλληλο φάκελο.

3)Πραγματοποιείτε αυτόματη αντιγραφή των configs στους κατάλληλους φάκελους.

 

Προσοχή ! Η εκτέλεση του custom build αρχείου, θα αντιγράψει τα configs που βρίσκονται μέσα στον eclipse , πάνω στα δικά σας configs. Άν τα configs σας διαφέρουν από αυτά που έχει μέσα στον eclipse, τότε θα χάθούν οι ρυθμίσεις σας. Άν δεν θέλετε να προστίθεντε τα configs τότε μην περάσετε τον κώδικα που βρίσκεται στα εντός των πορτοκαλί γραμμάτων ( εκεί που λέει BE CAREFUL ! ).

 

Αυτα :).

Posted

Allakse to title tou topic se [Guide]Γρήγορο build του L2JServer με compile

giati allios fenete pos tha kaneis ton server sou (me kapoio etoimo pack) grigora

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • We have the best prices for Adena on L2Reborn. discord - adver745645
    • Played the first 20 lvls in the OBT, very promising indeed. Quests seemed to be working fine for the most part although there's no need for the repetitive quests in the start since with x3 rates (x4 with premium which is pretty cheap tbh) adena from mobs outperforms the repetitive quests since you outlevel them in the early stage before you finish the quest, one time quests are good though and that's where is the juice. Idk how the og elixir was since I was a kid but this is definetely going to be much easier than your usual x1-2 no buffs server since GK is free for the first 40 lvls and you get basic 6 basic normal buffs even after low levels, that's not a bad thing for a lot of people though. Will be there on the opening.  
    • This post originally appeared on MmoGah. As the global release of Aion 2 draws near, players are eagerly preparing to dive into this highly anticipated MMORPG. One of the most important decisions you’ll make is choosing the right class, as it will define your experience in both solo and group content. Aion 2 introduces eight distinct classes, each with unique gameplay mechanics, strengths, and roles. Whether you’re a seasoned veteran or a newcomer, understanding these classes is essential to finding the one that suits your preferred playstyle. This guide provides a comprehensive overview of all eight classes, tips for selecting your ideal role, and recommendations for different types of players. Aion 2’s class system offers a variety of options across tanks, damage dealers, healers, and hybrid supports. Here’s a quick breakdown of the roles: - Tank Classes: Templar - Physical DPS Classes: Gladiator, Assassin, Ranger - Magical DPS Classes: Sorcerer - Hybrid Classes: Spiritmaster, Chanter - Healer Class: Cleric Each class has been carefully designed to excel in specific scenarios, whether it’s PvP, PvE, solo leveling, or large-scale faction battles. Pro Tip: As you embark on your journey, remember that having Aion 2 Kinah can greatly enhance your experience, so consider acquiring it to make the most of your adventure.   Class Breakdown Templar – The Indomitable Tank The Templar is the quintessential tank, specializing in defense and crowd control. With high durability and reliable aggro management, this class is invaluable in group content and large-scale battles. Strengths: - Exceptional survivability  - Top-tier aggro control  - Disruption tools for PvP  Playstyle: Templars thrive on the frontlines, soaking up damage and protecting allies. They are perfect for players who enjoy leading the charge and maintaining battlefield control. Gladiator – The Melee Powerhouse The Gladiator strikes a balance between offense and defense, offering strong AoE damage and decent survivability. This class excels in fast-paced melee combat and open-world PvP. Strengths: - High AoE damage  - Lifesteal-style abilities for sustain  - Versatile in both PvE and PvP  Playstyle:  Gladiators are ideal for players who enjoy dynamic melee combat with a mix of durability and damage. Assassin – The Stealthy Burst Specialist Assassins are masters of stealth and mobility. Known for their high single-target burst damage, they dominate in duels and small-scale PvP encounters. Strengths: - Exceptional burst damage  - Stealth mechanics for ambushes  - High mobility for quick disengagement Playstyle: This class is perfect for players who prefer fast-paced, tactical gameplay with an emphasis on sneaky kills. Ranger – The Precision Archer Rangers excel at dealing consistent physical damage from a distance. With excellent crowd control abilities and strong kiting potential, they are a solid choice for both PvE and PvP. Strengths:  - Safe ranged damage  - Strong crowd control tools  - Great for solo play  Playstyle: Rangers suit players who enjoy staying at range, controlling enemies, and executing precise attacks. Sorcerer – The Magical Artillery Sorcerers are pure magic damage dealers with devastating AoE spells and crowd control abilities. They are capable of turning the tide of battle with their massive burst potential. Strengths: - Highest magical burst damage  - Excellent AoE capabilities  - Crowd control via slows and immobilizes  Playstyle: Sorcerers are perfect for players who enjoy dealing immense magical damage while controlling enemies from a distance. Spiritmaster – The Tactical Summoner The Spiritmaster brings strategic depth to combat by combining summons, debuffs, and utility spells. This class is highly versatile and excels in both solo and group settings. Strengths: - Elemental summons with unique abilities  - Strong debuffs for PvP dominance  - Great solo leveling potential  Playstyle: Spiritmasters are best suited for players who enjoy strategic gameplay and multitasking in battle. Cleric – The Essential Healer The Cleric is the backbone of any group, providing powerful healing, cleansing, and defensive buffs. This class is indispensable in dungeons and raids. Strengths: - Reliable direct and AoE healing  - Cleansing abilities to remove debuffs  - Vital for group survival  Playstyle: Clerics are ideal for players who take pride in supporting their team and ensuring everyone stays alive. Chanter – The Hybrid Support The Chanter blends melee combat with healing and party-wide buffs. This versatile class can fill multiple roles in a group, making it a valuable addition to any team. Strengths: - Strong party buffs  - Solid healing capabilities  - Decent melee damage Playstyle: Chanters are perfect for players who want to contribute both offensively and defensively while supporting their team.   Choosing the Right Class What’s Your Playstyle? To help narrow down your choice, consider what you enjoy most in an MMORPG: • If you like tanking and leading the charge, choose Templar. • If you like melee combat with high durability, choose Gladiator.  • If you like stealthy gameplay with burst damage, choose Assassin.  • If you like ranged combat with precision, choose Ranger.   • If you like Massive magical damage, choose Sorcerer. • If you like tactical utility with summons, choose Spiritmaster. • If you like healing and supporting teammates, choose Cleric.  • If you like hybrid support with melee combat, choose Chanter. Beginner-Friendly Classes If you’re new to MMORPGs or unsure where to start, these classes offer straightforward mechanics: 1. Templar – Durable, beginner-friendly tank. 2. Cleric – Essential healer with clear roles in group content. Solo vs. Group Play Some classes excel in solo play, while others shine in groups: - Best Solo Classes: Gladiator, Ranger, Spiritmaster (good sustain and flexibility). - Best Group Classes: Templar (tank), Cleric (healer), Chanter (support). PvP Recommendations For competitive players who enjoy PvP: - 1v1/Small-Scale PvP: Assassin (stealth burst) or Sorcerer (burst + CC).  - Large-Scale PvP: Spiritmaster (debuffs) or Templar (frontline disruption). Team Composition Tips Building a balanced party is crucial in Aion 2. Consider these combinations for optimal synergy: - Tank + DPS + Healer: Templar + Sorcerer + Cleric (classic setup).  - Buff-Oriented Group: Gladiator + Chanter + Cleric (durability + support).    Final Thoughts Aion 2 offers a rich variety of classes tailored to different playstyles. Whether you prefer tanking, dealing damage, or supporting your team, there’s a class that fits your preferences. To summarize: - For beginners: Start with Templar or Cleric. - For high damage: Choose Gladiator, Assassin, or Sorcerer. - For strategic gameplay: Go with Spiritmaster. - For support roles: Opt for Cleric or Chanter. Still undecided? Share your preferred playstyle—solo adventuring, competitive PvP, or cooperative group play—and you’ll find the perfect class to begin your journey in Aion 2!  
    • Prepare for OBT (Open Beta Test)! https://www.l2ertheia.eu/news:open-beta-test-obt/
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock