TopGaming  

How to Create a Lineage 2 Private Server Using L2JMobius

Follow this step-by-step guide to set up your own Lineage 2 private server using L2JMobius. From configuring the environment to running the game server, this guide has you covered!

1. Prerequisites

Before we begin, you’ll need to install the following software:

  • JDK 21 or higher: Download the Java Development Kit from Oracle.
  • Eclipse IDE: Download and install the Eclipse IDE.
  • XAMPP: Install XAMPP to run MySQL and other required services from the official website.

2. Setting Up the Environment

  1. Install JDK 21
    Download and install JDK 21 from Oracle. After installation, configure Eclipse to use the installed JDK by navigating to Window -> Preferences -> Java -> Installed JREs in Eclipse.
  2. Clone the L2JMobius Repository
    Clone the L2JMobius repository using Git with the following command in your Git repository manager or terminal:
    git clone https://bitbucket.org/MobiusDev/l2j_mobius.git
  3. Build the Project
    After cloning, build the project in Eclipse by right-clicking the build.xml file and selecting Run As -> Ant Build. The compiled files will be available in the build directory.

3. Installing MySQL (via XAMPP)

Use XAMPP to install and configure MySQL:

  • Install XAMPP: Start MySQL through the XAMPP control panel.
  • Run the Database Scripts: Run the provided database installer scripts, such as Database_Installer_GS.vbs and Database_Installer_LS.vbs.

4. Running the Server

  1. Start the Login Server
    Navigate to the login directory and run:
    ./startLoginServer.sh  # For Linux/Mac
    startLoginServer.bat  # For Windows
  2. Start the Game Server
    Navigate to the gameserver directory and run:
    ./startGameServer.sh  # For Linux/Mac
    startGameServer.bat  # For Windows

5. Final Configuration

To connect your client to the private server, modify the hosts file:

your-server-ip l2authd.lineage2.com

After setting this up, launch your Lineage 2 client and enjoy your private server!

Additional Resources

For more detailed instructions and support, visit the L2JMobius forum.