scripts lineage2  :::  Server Packs lineage 2 — best scripts for admin servers   :::  Projects lineage Turnkey
l2-scripts.com  Freelance Studio

ArticlesServer packs and technology4 min read

Lineage 2 Java servers: where they came from and why they work

Most private Lineage 2 servers today run on Java. Here is where these servers came from, how they are built, what makes them convenient and why the quality of a particular server pack decides everything.

What a Lineage 2 Java server is

A Lineage 2 Java server is an emulator: a program that reproduces the behavior of the official game server. It is written in Java and stores its data, such as accounts, characters, items and clans, in a MySQL or MariaDB database. Players connect to it using the Lineage 2 client of the chronicle the server was built for.

A server usually has two parts: a login server that handles player authorization and a game server where the game itself takes place. Several game worlds can be connected to one login server. Quests and game scripts in modern server packs are usually written in Java as well, although early projects often used Python for them.

How emulators appeared

When Lineage 2 became hugely popular, players wanted to open unofficial servers of their own. The server software of the original game, however, is closed, and its developers naturally had no intention of sharing it.

Enthusiasts found a way. They studied the data exchanged between the client and the server, explored how the client works and used that knowledge to write their own server software from scratch. Over time the emulators came functionally close to the original, and private servers took a noticeable share of the game's market.

Java emulators were reworked many times after their source code became publicly available. That has a downside: many old bugs that amateur developers copy from one pack to the next are still around today. You can read more about the emulators themselves in the article Lineage 2 Java emulators.

Advantages of Java servers

  • Flexibility. Java code lets you change almost anything: rates, skills, items and events, add your own systems and fix bugs.
  • Cross-platform. The server runs on both Windows and Linux. A home computer is handy for testing, while a production server usually runs on Linux.
  • Standard client. To play, you only need the original client of the right chronicle and a small patch with the server address. Deeper client changes are only needed for a custom interface and unique features.
  • Choice of chronicles. There are server packs for classic Interlude and High Five, for the Classic and Essence lines and for modern Main updates.
  • Performance. Modern Java versions and a multithreaded architecture let a quality server pack handle a large online and make use of modern hardware.

Drawbacks and risks

The weak spot of Java servers is not the technology itself but the quality of a specific server pack. Emulators assembled by amateurs or downloaded from public sources often contain bugs and security holes that travel from one copy to another. Such servers are unstable and struggle with a large online, and leaked packs often contain backdoors that make it easy to hack the project.

A server pack from a professional team removes most of these problems: bugs get fixed, updates are released regularly and the server grows together with the project.

What to check before buyingFind out who maintains the server pack and how often it is updated, which Java version it runs on, whether there is a test server and what bot and cheat protection is supported. See the article How to choose a Lineage 2 server pack for a detailed checklist.

Where to get a Java server

Ready-made Java server packs for Lineage 2 for different chronicles, along with their installation, configuration and launch, are available from the L2-Scripts studio.

Published 20 September 2013

Read also

Need help with your server?

We help with the server pack, setup, protection and launch — one-off or on an ongoing basis.

L2‑Scripts newsletter

Get L2‑Scripts news by email

And 5% off all studio services while you stay subscribed.

The discount is valid while you are subscribed: when ordering, tell the manager your subscription address on Telegram.