Skip to content

Running the server

jmpala edited this page Aug 13, 2020 · 1 revision

In order to run the server, we need to open the console on the base Dir of the project and run the command:

gradlew.bat server:run -x :shared:fluid

Then, the system will execute as follows:

  1. The server entry point is the class ServerLauncher and creates a HeadlessApplication
  2. Then the system call the class Finisterra, that on it's init, the system calls loadAsync() and createWorld()
  3. loadAsync() fires a thread that load all the game maps. Belongs to the singleton MapHelper
  4. Also loadAsync() fires a second thread that look for the folders Account.DIR_CUENTAS and Charfile.DIR_CHARFILES (essential folders to save the user data)
  5. createWorld(), as the name suggest, creates the world container, where all the systems and entities will live inside the server. In special, here are registered all the systems that are going to be used by the server
  6. Enjoy... The server is up and running!

<< Back to home

Get Starting

Requirements

Source Code

Reference

run

Graphics

balance

external documentation

Clone this wiki locally