-
Notifications
You must be signed in to change notification settings - Fork 37
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:
- The server entry point is the class ServerLauncher and creates a HeadlessApplication
- Then the system call the class Finisterra, that on it's init, the system calls
loadAsync()
andcreateWorld()
-
loadAsync()
fires a thread that load all the game maps. Belongs to the singletonMapHelper
- Also
loadAsync()
fires a second thread that look for the foldersAccount.DIR_CUENTAS
andCharfile.DIR_CHARFILES
(essential folders to save the user data) -
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 - Enjoy... The server is up and running!
- IntelliJ
- Windows JDK
- Linux JDK
- Run client and server localhost
- Host a public server
- Import project to IntelliJ