sebastian-heinz / Arrowgene.DragonsDogmaOnline

Server for Dragons Dogma Online
GNU Affero General Public License v3.0
166 stars 51 forks source link

Support for different servers acting as channels #447

Closed alborrajo closed 2 months ago

alborrajo commented 2 months ago

imagen

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:

  1. Create a copy of the config file (Files/Arrowgene.Ddon.config.json), naming it, for example, Arrowgene.Ddon.config-2.json
  2. Editing the config file to have a different LogPath directory, for example, "Logs-2"
  3. Editing the ports 52000, 52099 and 52100 to different values, for example, 42000, 42099 and 42100
  4. Editing the GameServerSetting.ServerSetting.Id to a different value. In this example, 20
  5. Editing the LoginServerSetting.ServerSetting.Id to a different value. In this example, 2
  6. 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.
#Id,Name,Brief,TrafficName,TrafficLevel,MaxLoginNum,IpAddress,Port,IsHide
10,Local Host,Brief,Traffic Name,0,1000,127.0.0.1,52000,false
20,Local Host 2,Brief,Traffic Name,0,1000,127.0.0.1,42000,false

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: