Prerequisites
Before you begin, ensure you have:- Java 25 JDK installed (Installation Guide)
- MySQL 5.7+ or MariaDB 10.3+ installed
- Apache Ant 1.8.2+ for building
- At least 4GB RAM (16GB+ recommended)
- 10GB free disk space
Quick Setup
Download and Build
Clone the repository and build the server:The build process creates
LoginServer.jar and GameServer.jar in build/dist/libs/.Set Up Database
Create the database and install the schema:Configure database connection in Run the Database Installer:Select options:
dist/db_installer/config/Database.ini:- Install login and game server schemas
- Create tables and import base data
Configure Servers
Configure the LoginServer in Configure the GameServer in
dist/login/config/Database.ini:dist/game/config/Database.ini:For local testing, default network settings work out of the box.
For public servers, see Configuration Guide.
Launch Servers
Start the LoginServer first:Wait for “LoginServer is now listening on *:2106” message.Then start the GameServer:Wait for “GameServer is now listening on *:7777” message.
Verify Installation
Test your server is working:LoginServer Health Check
LoginServer Health Check
dist/login/log/ for any errors.GameServer Health Check
GameServer Health Check
dist/game/log/ for any errors.Database Connection
Database Connection
Common Issues
Build fails with Java version error
Build fails with Java version error
Solution: Ensure Java 25 JDK is installed and
JAVA_HOME is set correctly:Database connection failed
Database connection failed
Solution: Verify MySQL is running and credentials are correct:Check
Database.ini files match your MySQL credentials.Port already in use
Port already in use
Solution: Check if another service is using ports 2106 or 7777:Stop conflicting services or change ports in server configs.
Cannot connect with client
Cannot connect with client
Solution: Ensure your Lineage 2 client is configured for Chronicle 4 (protocol 656/660).Check
dist/game/config/ipconfig.xml for correct server IP configuration.Next Steps
Now that your server is running:Explore Features
Learn about Olympiad, Seven Signs, and custom systems
Configuration
Customize rates, features, and gameplay settings
Admin Commands
Master GM commands for server management
Scripting Guide
Create custom quests and AI scripts
Performance Tips
For optimal performance:
- Allocate sufficient JVM memory:
-Xmx16g -Xms8gfor medium servers - Use MySQL query cache and InnoDB engine
- Enable geodata for accurate pathfinding
- Configure thread pools in
Threads.ini - Monitor with
//serverinfocommand in-game