Autor Tema: [TUTORIAL] Installation and configuration  (Leído 7105 veces)

Conectado U3Games

  • Administrator
  • User
  • *
  • Mensajes: 151
    • Ver Perfil
[TUTORIAL] Installation and configuration
« en: 02 de Junio de 2018, 04:51:57 pm »
Minimum requirements

Before preparing something, you should know if we have everything necessary to create a lineage server. Below we show you the necessary requirements:
  • Hosting properties:
  • Dual Processor 2.8 Ghz or higher.
  • 4 GB RAM.
  • 32 GB HDD.
  • 5 Mb/s symmetrical (*).
  • IP Static or You are not allowed to view links. Register or Login (*).
*Necessary requirements so that your server is public and can connect other users to your server.
  • Programs needed:
  • MySQL 5.6 or higher: You are not allowed to view links. Register or Login
  • Java OpenJDK 14: You are not allowed to view links. Register or Login
  • Eclipse: You are not allowed to view links. Register or Login (only for no compiled version and edit your server).
  • Programs alternative:
  • You are not allowed to view links. Register or Login (for create and edit sql).

Conectado U3Games

  • Administrator
  • User
  • *
  • Mensajes: 151
    • Ver Perfil
Re: [TUTORIAL] Installation and configuration
« Respuesta #1 en: 11 de Junio de 2018, 06:36:07 pm »
Download and installation

1.- Data Base:

Below, we show all the connections and download downloads available for your server. Choose the most desired one!

Windows
  • You are not allowed to view links. Register or Login (MySQL).
  • You are not allowed to view links. Register or Login (Apache2, PHP and a MySQL).
  • You are not allowed to view links. Register or Login (MariaDB, PHP, and Perl).
Ubuntu
  • You are not allowed to view links. Register or Login (Apache2, PHP and a MySQL).

2.- Java JDK:

Essential requirement for your server to run and function correctly.

3.- L2JDevs Server Files:

The repository system allows easy simultaneous modification of the files from the developers. The current repository location is in: You are not allowed to view links. Register or Login

The Git system has something called "Branches". And the purpose is to separate different code versions, remember use master branch!

At this point, we must decide whether we want the compiled version or create it ourselves. If you are new, we recommend the compiled version:

Compiled Version

For more experienced users who want to edit the server files. We leave the guide how to do it!

Git Source Not-Compiled

Conectado U3Games

  • Administrator
  • User
  • *
  • Mensajes: 151
    • Ver Perfil
Re: [TUTORIAL] Installation and configuration
« Respuesta #2 en: 11 de Junio de 2018, 06:37:21 pm »
Server Configuration

1.- Setting Up Files:

Now we must unite everything we have and create our server!

DATA FOLDER:

-> Navigate to your L2J_DATAPACK file.
-> Look for the build folder.
-> Inside the build folder extract the compressed file.
-> Copy all the content into a new folder you can call it how you want.

CORE FOLDER:

-> Navigate to your L2J_SERVER file.
-> Look for the build folder.
-> Inside the build folder extract the compressed file.
-> Copy all the content into the folder you created. It will ask to overwrite. This is normal, press yes.

RESULT:



Other guides for this step, created by our users!
You are not allowed to view links. Register or Login



2.- Setting Up Properties:

Before installing the database of our server, we must configure it so that it can do it.

-> Go to folder YourServer\game\config and edit Server.properties (notebook for example) this values:



Citar
- URL: enter the database name of your game server.
- Login: enter the MySQL user (see .my.cnf file in your sql server or create new profiles).
- Password: enter the MySQL password for the user (see .my.cnf file in your sql server or create new profiles).

-> Go to folder YourServer\login\config and edit LoginServer.properties (notebook for example) this values:[/b]



Citar
- URL: enter the database name of your login server.
- Login: enter the MySQL user (see .my.cnf file in your sql server or create new profiles).
- Password: enter the MySQL password for the user (see .my.cnf file in your sql server or create new profiles).

*WARNING: Only edit what is marked, to indicate name of db, not edit "?useSSL=false&serverTimezone=UTC"!!

Other guides for this step, created by our users!
Soon! Waiting new post!

Conectado U3Games

  • Administrator
  • User
  • *
  • Mensajes: 151
    • Ver Perfil
Re: [TUTORIAL] Installation and configuration
« Respuesta #3 en: 11 de Junio de 2018, 06:37:29 pm »
Installing Database

1.- Install tables of game and login server:

Now, we proceed to the installation of the server database. Go to folder YourServer\tools:



And execute dbinst_gs.jar and dbinst_ls.jar for install database of your server.



* You need You are not allowed to view links. Register or Login for execute .jar files.



2.- Create connection between login, game and client:

Go to folder YourServer\login and execute "RegisterGameServer".



Citar
You must indicate the server id. Default 1

This generate new file "hexid.txt" in YourServer\login, that contains id and hexcode for your server and allow to connect with the client.

Now move hexid.txt to YourServer\game\config folder.

Other guides for this step, created by our users!
Soon! Waiting new post!

Conectado U3Games

  • Administrator
  • User
  • *
  • Mensajes: 151
    • Ver Perfil
Re: [TUTORIAL] Installation and configuration
« Respuesta #4 en: 11 de Junio de 2018, 07:12:57 pm »
Launch Server

For run your server, we just have to execute the following:

RUN LOGIN SERVER:

Windows -> Go to YourServer\login and execute startLoginServer.bat
Ubuntu -> Go to YourServer\login and execute startLoginServer.sh

RUN GAME SERVER:

Windows -> Go to YourServer\game and execute startGameServer.bat
Ubuntu -> Go to YourServer\game and execute startGameServer.sh

Other guides for this step, created by our users!
Soon! Waiting new post!