Jump to content

Recommended Posts

Posted

Όλα αυτά δουλέυουν για L2j. Κάποια και για κάποια forks του.

________________________________________________________________________

 

Προετοιμασία -Απαραίτητα αρχεία:

 

Java JDK 6 Update 6 ή νεώτερο για να τρέξετε τον Server. Download: http://java.sun.com/javase/downloads/

  MySQL 5.0.51b ή νεώτερο για το DataPack. Download: http://dev.mysql.com/downloads/mysql/5.0.html

  Navicat 8 for MySQL ή νεώτερο για να διαχειριστείτε την DataBase. Download: http://www.navicat.com/download.html

  L2J Server Download: http://www.l2jserver.com/nightly/

  L2J DataPack Download: http://www.l2jdp.com/nightly/

 

Εγκατάσταση MySQL:

Εξαγωγή του 'mysql-5.*.x-win.zip' σε ένα προσωρινό φάκελο.

Εγκατάσταση MySQL όπου θέλετε (κατά προτίμιση σε ξεχωριστό σκληρό δίσκο αποκλειστικά για αυτήν).

Γράψτε τον κωδικό πρόσβασης που ορίσατε κατά την εγκατάσταση αν ορίσατε.

Επανεκκίνιση του συστήματος μετά το τέλος της εγκατάστασης.

 

Προετοιμασία Server αρχέιων:

Εξαγωγή του 'L2J_Server-unstable.zip' σε ένα προσωρινό φάκελο.

Εξαγωγή του 'L2J_DataPack-unstable.zip' στον προσωρινό φάκελο που κάνατε εξαγωγή το 'L2J_Server-unstable.zip'.

 

Εγκατάσταση Navicat:

Εκτελέστε το αρχείο και εγκατάσταση.

Τρέξτε το πρόγραμμα.

Επιλέξτε 'New Connection' και εισάγετε τα κατάλληλα δεδομένα

(τοποθεσία MySQL Server - 'localhost' άμα είναι στο ίδιο μηχάνημα, όνομα χρήστη - 'root', κωδικός πρόσβασης - αυτόν που δώσατε κατα την εγκατάσταση της MySQL)

 

Εισαγωγή δεδομένων στην βάση δεδομένων:

Διαβάστε το 'README' μέσα στον φάκελο που κάνατε Extract τον Server και το DataPack.

Εκτελέστε το 'database_installer.bat' και ακολουθήστε τις οδηγίες στην οθόνη σας.

Επιλέξτε Full install για νέα εγκατάσταση ή Upgrade για αναβάθμιση.

 

Java:

Απλά τρέξτε και εγκαταστήστε το JDK/JRE.

________________________________________________________________________

 

Εγκατάσταση Servers - Login Server:

Ανοίξτε το αρχείο '/login/config/loginserver.properties' και αλλάξτε τα εξής:

ExternalHostname= (εδώ βάζετε την Internet IP σας - Αν θέλετε να παίξετε μόνοι σας βάλτε 127.0.0.1)

InternalHostname= (εδώ βάζετε την LAN IP σας αν έχετε παίκτες μέσω LAN ή 127.0.0.1 αν είστε μόνοι σας)

 

# Database info

Driver=com.mysql.jdbc.Driver

#Driver=org.hsqldb.jdbcDriver

#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

URL=jdbc:mysql://localhost/l2jdb

#URL=jdbc:hsqldb:hsql://localhost/l2jdb

#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=

Login=root

Password=        <---- HERE PUT YOUR MYSQL PASSWORD

MaximumDbConnections=10

________________________________________________________________________

 

 

Εγκατάσταση Servers - Game Server:

Ανοίξτε το αρχείο '/gameserver/config/server.properties' και αλλάξτε τα εξής:

ExternalHostname= (εδώ βάζετε την Internet IP σας - Αν θέλετε να παίξετε μόνοι σας βάλτε 127.0.0.1)

InternalHostname= (εδώ βάζετε την LAN IP σας αν έχετε παίκτες μέσω LAN ή 127.0.0.1 αν είστε μόνοι σας)

 

# Database info

Driver=com.mysql.jdbc.Driver

#Driver=org.hsqldb.jdbcDriver

#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

URL=jdbc:mysql://localhost/l2jdb

#URL=jdbc:hsqldb:hsql://localhost/l2jdb

#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=

Login=root

Password=        <---- HERE PUT YOUR MYSQL PASSWORD

MaximumDbConnections=10

Καταχώρηση Game Server(s):

Για κάθε Game Server τρέξτε '/login/RegisterGameServer.bat' και δώστε τον αριθμό που θέλετε να δώσετε στον κάθε Game Server και αντιγράψτε το 'hexid(server-x).txt' στον φάκελο '/gameserver/config/' του Server όπου ορίσατε και μετονομάστε το σε 'hexid.txt'.

 

Τρέξτε τους Server:

'/login/startLoginServer.bat' για τον Login Server.

'/gameserver/startGameServer.bat' για τον Game Server.

Εφόσον στο παράθυρο του Game Server εμφανίζεται στο τέλος 'Registered on login as Server 0 : Bartz' τότε όλα είναι ΟΚ.

 

Για να συνδεθείτε:

Έναρξη > Εκτέλεση > 'notepad.exe C:\windows\system32\drivers\etc\hosts'

127.0.0.1 L2authd.lineage2.com

78.47.101.197 nProtect.lineage2.com

________________________________________________________________________

 

Για Home Server:

Αν το μηχάνημα δεν είναι Server μηχάνημα (δηλαδή ειδικό routing) και το έχετε σε ένα κανονικό PC με ένα συνιθισμένο Router τότε πρέπει να κάνετε αυτές τις ρυθμίσεις για να βγεί Internet:

 

gameserver/config/server.properties

GameserverHostname=*

External hostname= Internet IP ή no-ip subdomain

Internal Hostname= LAN IP του server στο LAN σου

LoginHost=127.0.0.1

login/config/loginserver.properties
ExternalHostname=127.0.0.1

InternalHostname=127.0.0.1

Loginserverhostname= LAN IP του server στο LAN σου

LoginHostname=*

 

Παράδειγμα:

gameserver/config/server.properties

GameserverHostname=*

ExternalHostname=62.169.XXX.XXX

InternalHostname=192.168.1.65

LoginHost=127.0.0.1

login/config/loginserver.properties

ExternalHostname=127.0.0.1

InternalHostname=127.0.0.1

LoginserverHostname=192.168.1.65

LoginHostname=*

62.169.XXX.XXX = Internet IP

192.168.1.65 = LAN IP

________________________________________________________________________

Πως να βρείτε την Internet IP σας:

http://www.whatsmyip.org/

________________________________________________________________________

Πως να συνδεθείτε:

Ανοιξτε το hosts αρχείο με το notepad: C:\windows\system32\drivers\etc\hosts

και προσθέστε την εξής γραμμή:

η IP σου<κενό>L2authd.Lineage2.com

πχ.

89.149.255.12    L2authd.Lineage2.com       

________________________________________________________________________

Πως να διορθώσετε το πρόβλημα με το "Hacking tool has been discovered" (gameguard):

Ανοιξτε το hosts αρχείο με το notepad: C:\windows\system32\drivers\etc\hosts

και προσθέστε την εξής γραμμή:

216.107.250.194    nProtect.lineage2.com

________________________________________________________________________

Πως να συνδεθούν από το Internet:

Από το modem/router πρέπει να ανοίξεις συγκεκριμένες TCP ports:

Login: 2106

Gameserver: 7777

Μην ρωτήσετε πως γίνεται! Διαβάστε το manual του modem σας. Η διαδικασία διαφέρει από μοντέλο σε μοντέλο!

________________________________________________________________________

 

Αλλαγή διάρκεια Buffs:

Για τα Buffs:

Στο Character.properties

EnableModifySkillDuration = true

SkillDurationList = 271,4200;272,4200;273,4200;274,4200;275,4200;276,4 200;277,4200;307,4200;309,4200;310,4200;311,4200;3 66,4200;367,4200;530,4200;\

264,4200;265,4200;266,4200;267,4200;268,4200;269,4 200;270,4200;304,4200;305,4200;306,4200;308,4200;3 49,4200;363,4200;364,4200;437,4200;529,4200;\

1002,4200;1003,4200;1005,4200;1006,4200;1007,4200; 1009,4200;1010,4200;1229,4200;1251,4200;1252,4200; 1253,4200;1284,4200;1308,4200;1309,4200;1310,4200; 1362,4200;1363,4200;1390,4200;1391,4200;1413,4200; 1461,4200;\

1353,4200;1311,4200;1307,4200;1204,4200;1085,4200; 1078,4200;1077,4200;1062,4200;1044,4200;1043,4200; 1035,4200;1068,4200;1040,4200;1073,4200;\

1191,4200;1189,4200;1182,4200;1033,4200;1259,4200;  \

1032,4200;1036,4200;1045,4200;1048,4200;1086,4200; 1240,4200;1242,4200;1243,4200;1388,4200;1389,4200; 1392,4200;1393,4200;1352,4200;\

1355,4200;1356,4200;1357,4200;\

1087,4200;1257,4200;1397,4200;1304,4200;1303,4200;  1354,4200;\

1059,4200;1268,4200

 

Κάθε γραμμή διαφορετική ομάδα buffs. Είναι για 70 λεπτά διάρκεια.       

________________________________________________________________________

 

Σημειώνω

Δεν προσφέρω καμία υποστήριξη για αυτά που δημοσιεύω.

Σε εμένα δουλεύουν τέλεια. Αν δεν δουλεύουν σε εσάς τότε ή κάνετε κάτι λάθος (άρα πρέπει να πάψετε να ασχολείστε με αυτό το θέμα και να πάτε να βγείτε καμιά βόλτα με την κοπελιά σας) ή χρησιμοποιείτε κάποια διαφορετική έκδοση Server, μη συμβατή με εκείνη που χρησιμοποιώ.

Αναφέρομαι αποκλειστικά σε L2j, όχι L2jfree ούτε l2oneo ούτε l2emu.

Αν έχετε κάποιο πρόβλημα συμβατότητας ή χρησιμοποιήστε ότι και εγώ ή τροποποιήστε τα για την διανομή που χρησιμοποιείτε εσείς. Αν δεν γνωρίζετε πως να τα τροποποιήσετε ή να κάτσετε και να μάθετε αλλιώς σκεφτείτε εκείνη την βόλτα που ανάφερα πιό πάνω.

 

Δεν θα παρέχω οποιαδήποτε βοήθεια σε system patch, custom items κτλ που σχετίζονται με client modding καθώς είναι παράνομα .

 

Γίνομαι πιο συγκεκριμένος και λέω πως θα παρέχω υποστήριξη μόνο σε οποιαδήποτε απορία είναι σοβαρή και έχει να κάνει αποκλειστικά με κάτι το οποίο παύει να είναι συμβατό σε κάποια μελοντική έκδοση ή κάτι έχω κάνει λάθος και απλά δεν δουλεύει.

Οποιοδήποτε pm (προσωπικό) μήνυμα λάβω απλά θα το σβήσω και δεν θα απαντήσω. Μην ξεχνάτε πως με το να απαιτείτε και να ζητάτε βοήθεια με pm υπάρχουν 2 κίνδυνοι: είτε να μην απαντήσω, είτε να απαντήσω και να στερηθεί την βοήθεια μου κάποιο άλλο μέλος που δεν θα μου στείλει pm και εσείς δεν θα κάνετε κάποιο δημόσιο post. Το φόρουμ υπάρχει για να βοηθιούνται όλοι.

 

Link σε Video:

L2j Server Guide in Greek - Οδηγός για L2j Server

Posted

θα ηθελα να ρωτησω κατι που ειχα δει και στο αλλο σου guide nekeys το mysql το κανις install σε ενα δισκο εντελος μονο του ή και το pack του server σε εκινον τον δισκο μεσα?

Posted

Την mysql, ολομόναχη, για να μην δυσκολεύεται ο δίσκος. Είναι το πιο απλό για να κάνεις τον server να πετά.

 

@Killer_09 ο πιο απλός και περιεκτικός οδηγός στα... Ελληνικά. Οι περισσότεροι είναι είτε υπερβολικά απλοί ή πολύ "χύμα".

  • 4 weeks later...
Posted

Para poli kalo..... Na se kala.

 

Kai oxi den iparxoun alla tetia topics pou na anaferonte se l2j.

Exo diavasi ta perisotera kai panta eperna alla apotelesmata apo auta pou eprepe, giati htan gia l2j free, l2 matrix etc.

Kaneis den eftiakse enan odigo gia ton pio sinithes project.

 

ty man

Posted

Είναι τόσο καλό που αναρωτιέμαι αν είναι 100% δικό σου :P

Τεσπά αυτό το topic έπρεπε να πάει sticky, αλλά με τον ρατσισμό που υπάρχει έδω μέσα το πολύ πολύ να σου δώσουν ένα +1

. Συνέχισε έτσι αδερφέ!

Posted

Είναι τόσο καλό που αναρωτιέμαι αν είναι 100% δικό σου :P

Τεσπά αυτό το topic έπρεπε να πάει sticky, αλλά με τον ρατσισμό που υπάρχει έδω μέσα το πολύ πολύ να σου δώσουν ένα +1

. Συνέχισε έτσι αδερφέ!

 

Dn einai panta etsi re...Aplws exoun ginei para polla paromoia (oxi idia) guides gia auto to poli poli na parei kanena +1 :P

Posted

Dn einai panta etsi re...Aplws exoun ginei para polla paromoia (oxi idia) guides gia auto to poli poli na parei kanena +1 :P

Μπαα, δεν δίνουν σημασία στα "χαμηλά" members, λες και αυτοί ξέρουν τπτ παραπάνω... άλλα τεσπα μην το αρχίσουμε έδω αυτό. Ένα σου λέω οτι δεν θα του δώσουν καν +1 καρμα. (όχι VIP member.. από Legendary κτλπ...)

  • 3 months later...
Posted

Το guide φτιάχτηκε έτσι για να είναι όσο πιο απλό γίνεται δίχως πολλά φρου- φρου.

Δικό μου είναι και το δημοσιεύτηκε πρώτα στο φόρουμ του www.online-games.gr στις 29-1-2008!

Posted

Αυτο ποια διαφορα εχει με το να κανεις

Compile? Υπαρχει καμια διαφορα μεταξυ τους?

Εξηγηστε μου σας παρακαλω γιατι εχω μπερδευτει :P

Posted

Το compile ουσιαστικά κάνει τον πηγαίο κώδικα, εκτελέσιμο.

Η πρακτική του χρησιμότητα είναι να μπορείς να κάνεις αλλαγές σε επίπεδο core, aka στην java πλευρά του server.

 

Προσωπικά εμένα με βολεύει ακόμα και αν δεν κάνω αλλαγές σε java επίπεδο, ώστε να κρατάω diff files ώστε να ελέγχω προσεκτικά τι αλλαγές γίνονται στον κώδικα ανά τα update.

 

Αν δεν σε απασχολεί να κάνεις αλλαγές στον core, τότε το compile (aka Eclipse SDK) δεν σου χρειάζεται.

Καλό όμως θα ήταν να ασχοληθείς για να γνωρίσεις τα ενδότερα του server σου.

Posted

Πιστεύω πως έχεις απόλυτο δίκιο αν και όλο το θέμα

Compile με έχει ψηλομπερδέψει...

Πρέπει να ψαχτω περισσότερο :)

Posted

Lipon,

Iparxoun Para Pola Tetia Posts... To Parousiazis san "Nightly" Les Kai Exi Kamia Diafora...

 

Tespa...Kali I Prospathia sou opote Tha prepi na sou po Mpravo.

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

    • Server Info Chronicle:  Interlude                                                                                                                                    XP: 100x | SP: 100x | Drop: 50x | Adena: 75x Enchant: Safe +3 |  Max +21 Website: Website Link Discord: Discord Link   WHY? When I was a teenager I had this idea. Build my own Lineage 2 server. My own rules. My own world. I wasn't a programmer. I had no idea how any of it worked. I tried, hit a wall, and quit. But the idea never left. I came back years later. Got further. Quit again. Watched friends try similar things. The idea stayed stuck in my head for fifteen years. I'm a developer now. I finally finished it. Not because I suddenly had more time - I have a full-time job and real responsibilities. An hour before bed if I'm lucky. That's actually exactly why I finished it.   The problem I kept running into I still love this game. But every server I tried as an adult made that one hour feel worthless. Log in, kill a few mobs, make no real progress, log out frustrated. The game was designed for someone with unlimited time. That person doesn't exist in my life anymore. I looked around. Everyone I used to play with has the same problem. Same love for the game. Same lack of time. Jobs, families, maybe an hour late at night. So I stopped waiting for someone else to build it.           WHAT? Custom starting zone in Gludin (up until 2nd profession start) Talent system - rebirth at level 80 and choose your talents Bounty hunter system - daily tasks to kill random monsters to receive great reward! Potion crafting system - custom HP/MP potions and recipes Custom 1st & 2nd class quests (shorter) Scheme buffer Shop until C grade   Visit our website to get more info: Website Link   The philosophy 95% of the game is completely soloable. No clan required. No raid schedules. No guilt when you have to log off. You are the solo director of your own session. Log in, pursue your goal for an hour, log out on your own terms. When you've conquered what you wanted - you stop naturally. A new season drops with fresh Talent Tree changes and you come back to build something completely different. No endless stretched grind. No pay-to-win. No shady admin decisions. No surprise wipes. I'm one developer who built this because I love it.                                          This is the server I needed fifteen years ago. Glad I finally had the skills to build it. Come see what I made. [Forever Lineage]
    • Hello MaxCheaters community! We’ve all been there: you spend months customizing your NPCs, balancing classes, and setting up the perfect farm zones. You launch your server, the hype is real, and suddenly you hit 200 players—and the "delay" starts. The mobs stop reacting, the Olympiad matches stutter, and your players start complaining on Discord. Many "newbie" admins think the solution is just throwing more RAM at the VPS. While hardware matters, Java is a finicky beast. If you don't tune your JVM (Java Virtual Machine) and your core code, you’ll lag even on a NASA supercomputer. Today, I’m sharing a deep dive into optimizing your L2 server for maximum performance. 1. The Myth of "More RAM" The biggest mistake people make is assigning 32GB of RAM to a server that only needs 8GB. In Java, if your Heap size is too large, the "Garbage Collector" (GC) has to work much harder. When the GC runs a "Full GC" cycle on a massive heap, it performs a "Stop-the-World" event. This literally freezes your server threads for 1–3 seconds to clear memory. Recommendation: For a mid-rate server with 500 players, 6GB to 8GB of Xmx (Max Heap) is usually the sweet spot. Use G1GC (Garbage First Garbage Collector) instead of the old ParallelGC. It handles large heaps much more gracefully by breaking memory into regions. 2. JVM Startup Flags (The Secret Sauce) Don't just run java -jar l2jserver.jar. You need specific flags to ensure the CPU prioritizes the right tasks. Try adding these to your start.sh or start.bat: Bash   -Xms6G -Xmx6G -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:+TieredCompilation MaxGCPauseMillis=50: This tells Java, "Try not to freeze the server for more than 50ms at a time." It makes the gameplay feel much smoother for the end-user. 3. Geodata and Pathfinding Optimization Geodata is the biggest CPU killer in Lineage 2. Every time a mob moves or a player clicks, the server calculates "Can I see this target?" and "Is there a wall in the way?". The Fix: Use a "Pathfinding Cache." If 100 players are running from the Giran Gate to the Luxury Shop, the server shouldn't calculate that path 100 times. Check your Geodata format: Ensure you are using the .l2j or .dat formats optimized for your specific core. If your console is flooded with "Pathfind node limit reached," increase your node limit in the geo.properties file, but be prepared for higher RAM usage. 4. Database Pooling (HikariCP vs. C3P0) If your server freezes for a split second every time someone saves their character or buys an item, your Database Connection Pool is the bottleneck. Most old L2J cores use C3P0, which is outdated and slow. Switch to HikariCP: It is significantly faster and handles "dead" connections much better. Also, ensure your characters and items tables are indexed correctly in MySQL. Running a VACUUM or OPTIMIZE TABLE once a week can prevent those annoying "saving player data" spikes. 5. Network Threading In your server settings, look for "Network" or "Thread" configurations. Usually, you’ll see SelectorThreads and WorkerThreads. Selector Threads: Should be equal to the number of physical CPU cores. Worker Threads: This is where the logic happens (skills, movement). If this is too low, actions will "queue up," creating a delay even if your ping is low. 6. Community Board (BBS) Optimization On MaxCheaters, we love fancy Community Boards. However, if your Buffer or Shop script is poorly coded, it might be reloading the entire HTML from the hard drive every time a player clicks a button. The Fix: Ensure your scripts cache the HTML in the RAM. Reading from an SSD is fast, but reading from RAM is thousands of times faster. Conclusion Optimization isn't a "one-click" fix; it’s about finding the balance between your hardware and your software. Start with your JVM flags, clean up your Geodata settings, and make sure your Database isn't choking on old logs. If you found this helpful, leave a comment or a "Thank You" below! If you have specific lag issues with a certain core (aCis, L2Emu, etc.), post your server.properties and I’ll try to help you tune it.
    • Hello all, we are a small team of developers working on two servers right now. One of them is Interlude and the other Gracia Final. Both will be pride-like aiming to make the servers similar to old pride's chronicles, C6 and GF respectively. For those not familiar here's some quick info:  9300x XP / 5500x Adena 1x Drop / 1x Spoil Safe Enchant +3 Start at Level 80 Custom PvP Zones & Reward System  Reworked Buffer Classes Wondrous Cubic All-in-one Panel  For more information visit our discord: https://discord.com/invite/YmCa7kbMuG
    • Up! Can make c4 project too retail x1 if someone is interested
    • Scammer, dont trust he bought once for me all good and second time i trusted him to send files first, then he vanished
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..