Jump to content

Recommended Posts

Posted

Βήμα 1ο. Προετοιμάζοντας το σύστημα και τον server

 

Αρχικά θα κατεβάσετε κάποια προγράμματα:

 

1) JavaJDK

2) MySQL Server

3) Navicat (Μπείτε εδώ: http://vitreous.4shared.com/ " και πατήστε στο "navicat.rar"

4) 4) Επειδή κάποιοι απο εσάς μου είπατε οτι είχατε πρόβλημα στο download link που υπήρχε εδώ, έκανα εγω upload πάλι

τα αρχεία του server σε 3 site. Όταν σας ζητήσει password το rar αρχείο στο extract θα βάλετε "vitr3ous" (χωρίς τα "").

Μπορείτε να κατεβάσετε τα αρχεία του server απο τα ακόλουθα link:

 

a) RapidShare.com rar password: vitr3ous

b) FileFront.com rar password: vitr3ous

c) 4shared.com rar password: vitr3ous

 

Μόλις τα κατεβάσετε κάντε το extract (αποσυμπίεση) χρησιμοποιώντας κωδικό vitr3ous στην επιφάνεια εργασίας (desktop) και θα σας βγεί ο φάκελος Server.

 

 

Ας αρχίσουμε:

 

1) Εγκαταστήστε το JavaJDK , δεν θα υπάρξει κάποιο πρόβλημα.

 

2) Εγκαταστήστε το MySQL Server. Μετά την εγκατάσταση θα βγεί ένα παράθυρο που λέγεται "MySQL server instance configuration". Ακολουθήστε τα παρακάτω βήματα για να το ρυθμίσετε σωστά.

 

Δημιουργήστε μια νέα περίπτωση και πατήστε Next, θα εμφανιστεί η παρακάτω εικόνα, επιλέξτε "Detailed Configuration" .

1ie4.jpg

Επιλέξτε "Server Machine"

2vp0.jpg

Πατήστε Next μέχρι την παρακάτω εικόνα.

Μπορείτε να επιλέξετε το πρώτο αν θέλετε να έχετε μέχρι 20 άτομα στον server ή να επιλέξετε το 3ο "Manual Setting" στο οποίο μπορείτε να βάλετε εσείς πόσα άτομα θα έχει ο server. (Στο "concurrent connections" βάζετε πόσους θέλετε).

 

 

 

Συνεχίστε να πατάτε Next μέχρι το Security Settings .

Εδώ βγάλτε το TICK απο το "modify security settings" και πατήστε Next.

9nv5.jpg

Τώρα πατήστε το Execute. (Άν βγάλει ένα error 0 , επιστρέψτε στο "DATABASE USAGE" και επιλέξτε "TRANSACTIONAL DATABASE" αντί για of "MULTIFUNCTIONAL DATABASE").

8ds4.jpg

* Ok. Ο MySQL Server εγκαταστήθηκε ! Login: root , χωρίς password, port 3306.

 

3) Τώρα ας εγκαταστήσουμε το NAVICAT. (MySQL Gui) . (Όσοι δεν ξέρετε , φανταστείτε ότι το MySQL είναι σαν το Internet , και το NAVICAT σαν τον Internet Explorer ή Firefox .

 

* Εγκαταστήστε το NAVICAT και τρέξτε το.

 

* Στο NAVICAT , επιλέξτε CONNECTION (πάνω αριστερά) και κάντε το όπως την εικόνα απο κάτω.

navicatzj1.jpg

Μετά απο αυτό θα εμφανιστεί ένας νέος σύνδεσμος (κάτω απο το CONNECTION που πατήσατε) που λέγεται Localhost . Δεξί κλίκ πάνω του και επιλέξτε NEW DATABASE. Ένα νεο μικρό παράθυρο θα βγεί, απλώς βάλτε του όνομα "l2jdb" . Έτσι, δημιουργήσαμε την Database μας!

navdbwv0.jpg

4) Στην επιφάνεια εργασίας, κάντε κλίκ σε ένα απο τα αρχεία που κατεβάσατε απο εδώ ( Click Me! ) και "Extract Here" . (Θα βγεί ένας νέος φάκελος που λέγεται "Server" ).

 

5) Τώρα ας βάλουμε τις πληροφορίες της SQL στην Database μας.

 

* Μπείτε στον φάκελο Server που δημιουργήθηκε στην επιφάνεια εγρασίας και μετά στον φάκελο Tools. (Server/tools)

 

* Εκεί μέσα είναι ένα αρχείο που λέγεται "Database_installer.bat" , ΜΗΝ το τρέξετε αμέσως, κάντε δεξί κλίκ πάνω του και επιλέξτε Edit .

 

* Βρείτε την γραμμή (στις πρώτες περίπου είναι) που λέει "set mysqlBinPath=" και τοποθετήστε τον σωστό σύνδεσμο που έγινε setup η MySQL ! π.χ. Θα το βάλετε έτσι: (set mysqlBinPath=C:/Program Files/Mysql 5.0/Bin ) , πολύ σημαντικό αυτό να γίνει σωστά! Μόλις το κάνετε πατήστε Save!

 

* Εφόσον κάνατε σωστά το παραπάνω, τρέξτε το "Database_installer.bat" μέσα απο τον φάκελο Tools. Ένα MS-DOS παράθυρο θα εμφανιστεί και θα σας δίνει κάποιες εντολές. Πατήστε συνέχεια "F" (Full Installation) όποτε σας το ζητάει. Αφήστε το να τελειώσει, θα πάρει περίπου 10-15 λεπτά.

 

* Οκ. Η Database είναι έτοιμη!

 

6) Τώρα θα φτιάξουμε κάποια πράγματα για να δουλεύει σωστά ο server.

 

* Πηγαίντε στον φάκελο Server/gameserver/config ! Εκεί μέσα είναι ένα έγγραφο κειμένου που λέγεται server.properties.file (ή σκέτο server).

Δεξί κλίκ και ανοίξτε το με Notepad.

 

* Εδώ θα πρέπει να διορθώσετε κάποιες γραμμές. Βρείτε τα ακόλουθα:

 

- ExternalHostname= Την External IP σας ! (Μπορείτε να την δείτε απο το www.whatismyipaddress.com , ΑΝ θέλετε να παίξετε μόνος σας, χωρίς άτομα απο το Internet, μπορείτε να το αφήσετε κενό ή να βάλετε την IP , 127.0.0.1)

 

- InternalHostname= Την Internal IP σας! (Άν το PC σας είναι συνδεμένο σε δίκτυο βάλτε την IP του δικτύου σας, (για να την δείτε πηγαίντε , Start -> Run και γράψτε "cmd" (χωρίς τα "") και θα ανοίξει ένα MS-DOS παράθυρο. Γράψτε ipconfig και θα σας βγάλει την IP του δικτύου σας) αν το pc σας δεν είναι σε κάποιο δίκτυο συνδεμένο, βάλτε την IP , 127.0.0.1 !

 

- MinProtocolRevision = 1

MaxProtocolRevision = 999 (Εδώ βάλτε τα και τα 2 έτσι για να μην υπάρξει κάποιο πρόβλημα.)

 

* Αφού τελειώσετε όλα τα παραπάνω κάντε το Save και μετά πηγαίντε στόν φάκελο LOGIN (server/login) και τρέξτε το "RegisterGameServer.bat" .

Ένα MS-DOS παράθυρο θα εμφανιστεί που θα σας ζητάει ID. Απλά πληκτρολογήστε 1 .

 

* Μόλις το κάνετε αυτό μέσα στον φάκελο LOGIN θα εμφανιστεί ένα αρχείο hexid(ID ή Server 1, κάτι τέτοιο).txt , μετονομάστε το σε hexid.txt , κάντε το CUT (αποκοπή) και PASTE μέσα στον φάκελο gameserver/config.

 

* Τώρα πρέπει να τρέξετε το "startloginserver.bat" το οποίο είναι μέσα στον LOGIN φάκελο και το "startgameserver.bat" το οποίο βρίσκεται μέσα στον φάκελο gameserver! " Μόλις τρέξετε το "startloginserver.bat" βεβαιωθείτε να είναι όπως την παρακάτω εικόνα και μετά τρέξτε το "startgameserver.bat" . Τα account θα γίνονται αυτόματα οπότε μην ανησυχείτε.

width=477 height=480http://img525.imageshack.us/img525/7012/serversva8.jpg[/img]

* Ok! Ο Server τρέχει ! Θυμηθείτε, αν έχετε κάποιο router ανοίξτε τα ports σε 7777 (game server) και 2106 (login server).

Posted

o kodikas einai [ img]link[ /img] xwris keno

ty gia ton guide

PS:Mipws to ekanes c/p? an nai vale kai credits

Posted

Gj file mou einai polu xrisimes plirofories..Poloi zhtane sto forum pws na sthsoun ena server twra exoume ena standar link na parexoume voitheia :):) Btw an mporeis ftiakse ta [/ img] giati den mpenoun se merika ta links :) Thx

Posted

kalo guide ... allla nomizw to pires apo ena site...

WaterKiller said:nai ekana kapia arxeia copy apo enan filo m merika ta egrapsa egw merika ta metafrasa apo ena site
Posted

mages eiste korifaioi.psaxname poly kairo me ti parea mou na sikosoume server.ti prepei na exei to pc gia na ton sikosoume omos?apo ram kai kartes grafikon kai etc ennow....

Posted

Signomi kiolas giatin athlia erotisi....:P!!! 

 

Prota apo Ola Sinxaritiria!

The best Guide!

 

Tora........

 

To JAVA JDK pio ine to aplo to Java?? i kati sigekrimeno! an ine dose to link gia na min kano kanena

lathaki....

 

 

thanks kai pali!  Eisai Korifi!

Guest
This topic is now closed to further replies.



  • Posts

    • I can see that the admins arent taking any action, yet they still seem willing to share information about various other people names and IP addresses. But when it comes to scams, no one reacts.      
    • 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.
  • 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..