L2JDevs Project - Developers Community

General Information => Downloads & Guides => Mensaje iniciado por: U3Games en 02 de Junio de 2018, 04:51:57 pm

Título: [TUTORIAL] Installation and configuration
Publicado por: U3Games 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:
*Necessary requirements so that your server is public and can connect other users to your server.
Título: Re: [TUTORIAL] Installation and configuration
Publicado por: U3Games 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
  • MySQL Server (https://dev.mysql.com/downloads/) (MySQL).
  • Wamp Server (http://www.wampserver.com/en) (Apache2, PHP and a MySQL).
  • XamppServer (https://www.apachefriends.org/es/index.html) (MariaDB, PHP, and Perl).
Ubuntu
  • Manual Install Guide (http://www.l2jdevs.org/forum/index.php?topic=202.0) (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: https://gitlab.com/L2JDevs

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.

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

Other guides for this step, created by our users!
  • Update java version without installing (https://www.l2jdevs.org/forum/index.php?topic=94)
Título: Re: [TUTORIAL] Installation and configuration
Publicado por: U3Games 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:

(https://i.imgur.com/bc06ia1.png)

Other guides for this step, created by our users!
OPTION 1 (http://www.l2jdevs.org/forum/index.php?topic=205.0)



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:

(https://i.imgur.com/ud917if.png)

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]

(https://i.imgur.com/htCt6nk.png)

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!
Título: Re: [TUTORIAL] Installation and configuration
Publicado por: U3Games 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:

(https://i.imgur.com/MHEzmDy.png)

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

(https://i.imgur.com/CwOs3Bh.png)

* You need java (https://www.java.com/inc/BrowserRedirect1.jsp?locale=en) for execute .jar files.



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

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

(https://i.imgur.com/Y6R0Akh.png)

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!
Título: Re: [TUTORIAL] Installation and configuration
Publicado por: U3Games 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!