Database link - Dawn-of-Light/DOLSharp GitHub Wiki

The final step for the server is to connect to the DOL database previously created.

win On Windows10

Go into the DOL release directory extracted in the previous step and in the "config" directory launch the program "DOLConfig.exe" :

link-1

If you intend to have your client and server on the same machine for testing purpose, you can keep "IP Address" to "0.0.0.0".

Else you will have to indicate the local IP address of your machine where the DOL server will run or the external IP address if you intend to give access to external users.

In the Database tab, you need to indicate the username "root" and his password to access your MariaDB database. You have also to select the "Database type" to "MySQL" :

link-2

Once done, click the "Test connection" button and they are ok, validate your settings with the "Save configuration" button.

Your server is now ready to be launched !


debian On Linux

Go into the DOL release directory extracted in the previous step.

Create the "config" directory and inside this folder, edit the "serverconfig.xml" file in the "config" directory as below :

<root>
  <Server>
    <Port>10300</Port>
    <IP>127.0.0.1</IP>
    <RegionIP>0.0.0.0</RegionIP>
    <RegionPort>10400</RegionPort>
    <UdpIP>0.0.0.0</UdpIP>
    <UdpPort>10400</UdpPort>
    <EnableUPnP>True</EnableUPnP>
    <DetectRegionIP>True</DetectRegionIP>
    <ServerName>Dawn Of Light</ServerName>
    <ServerNameShort>DOLSERVER</ServerNameShort>
    <LogConfigFile>./config/logconfig.xml</LogConfigFile>
    <ScriptCompilationTarget>./lib/GameServerScripts.dll</ScriptCompilationTarget>
    <ScriptAssemblies>System.dll,System.Xml.dll</ScriptAssemblies>
    <EnableCompilation>True</EnableCompilation>
    <AutoAccountCreation>True</AutoAccountCreation>
    <GameType>Normal</GameType>
    <CheatLoggerName>cheats</CheatLoggerName>
    <GMActionLoggerName>gmactions</GMActionLoggerName>
    <InvalidNamesFile>./config/invalidnames.txt</InvalidNamesFile>
    <DBType>MYSQL</DBType>
    <DBConnectionString>server=localhost;port=3306;database=dol;user id=root;password=mypass;treattinyasboolean=False</DBConnectionString>
    <DBAutosave>True</DBAutosave>
    <DBAutosaveInterval>10</DBAutosaveInterval>
    <CpuUse>4</CpuUse>
    <ZoneConfigFile />
    <RegionConfigFile />
  </Server>
</root>

Replace « IP » by your server’s local IP and « password » by your MariaDB root’s password.

If you intend to have your client and server on the same machine for testing purpose, you can keep "IP Address" to "0.0.0.0".

Else you will have to indicate the local IP address of your machine where the DOL server will run or the external IP address if you intend to give access to external users.

Your server is now ready to be launched !


macos On MacOS

Go into the DOL release directory extracted in the previous step.

Create the "config" directory and inside this folder, edit the "serverconfig.xml" file in the "config" directory as below :

<?xml version="1.0" standalone="yes"?>
<root>
  <Server>
    <Port>10300</Port>
    <IP>127.0.0.1</IP>
    <RegionIP>0.0.0.0</RegionIP>
    <RegionPort>10400</RegionPort>
    <UdpIP>0.0.0.0</UdpIP>
    <UdpPort>10400</UdpPort>
    <EnableUPnP>True</EnableUPnP>
    <DetectRegionIP>True</DetectRegionIP>
    <ServerName>Dawn Of Light</ServerName>
    <ServerNameShort>DOLSERVER</ServerNameShort>
    <LogConfigFile>./config/logconfig.xml</LogConfigFile>
    <ScriptCompilationTarget>./lib/GameServerScripts.dll</ScriptCompilationTarget>
    <ScriptAssemblies>System.dll,System.Xml.dll</ScriptAssemblies>
    <EnableCompilation>True</EnableCompilation>
    <AutoAccountCreation>True</AutoAccountCreation>
    <GameType>Normal</GameType>
    <CheatLoggerName>cheats</CheatLoggerName>
    <GMActionLoggerName>gmactions</GMActionLoggerName>
    <InvalidNamesFile>./config/invalidnames.txt</InvalidNamesFile>
    <DBType>MYSQL</DBType>
    <DBConnectionString>server=localhost;port=3306;database=dol;user id=root;password=mypass;treattinyasboolean=False;SslMode=none</DBConnectionString>
    <DBAutosave>True</DBAutosave>
    <DBAutosaveInterval>10</DBAutosaveInterval>
    <CpuUse>4</CpuUse>
    <ZoneConfigFile />
    <RegionConfigFile />
  </Server>
</root>

Replace « IP » by your server’s local IP and « password » by your MariaDB root’s password.

⚠️ **GitHub.com Fallback** ⚠️