Specifying the log directory path in the config file
Specifying the config file path with command line arguments
Adding DB entries for connections in different servers when the client requests it
These three features combined allow running multiple instances of the server, sharing assets and database, with the client being able to switch between them using the ingame World Select option by doing the following:
Create a copy of the config file (Files/Arrowgene.Ddon.config.json), naming it, for example, Arrowgene.Ddon.config-2.json
Editing the config file to have a different LogPath directory, for example, "Logs-2"
Editing the ports 52000, 52099 and 52100 to different values, for example, 42000, 42099 and 42100
Editing the GameServerSetting.ServerSetting.Id to a different value. In this example, 20
Editing the LoginServerSetting.ServerSetting.Id to a different value. In this example, 2
Adding a new entry in the shared asset file GameServerList.csv, with the new server with its ID and ports, and a name to easily identify it.
This PR adds support for the following:
These three features combined allow running multiple instances of the server, sharing assets and database, with the client being able to switch between them using the ingame World Select option by doing the following:
Now you can launch the first instance with the arguments:
server start
and the second with:server start --config=Files/Arrowgene.Ddon.config-2.json
Checklist:
develop
branch