Skip to content

Configuration

List of available settings that can be set in config.xml configuration file.

server

Represents root element for every configuration file. It is a required element.

Usage:

<server>
    <!-- Configuration elements -->
</server>

config

This element specifies basic settings for server startup. It is a required element and available only in root configuration file.

  • public: Attribute specifies whether server will be announced to the master server.
  • host_name: Attribute specifies the name of the server visible in launcher.
  • max_slots: Attribute specifies the number of maximum player slot available on the server.
  • port: Attribute specifies the UDP port on which the server will be accepting incoming connections.
  • rcon_pass: Attribute is unused.

Usage:

<server>
    <config public="true" host_name="My server" max_slots="32" port="28970" rcon_pass="SomePassword" />
</server>

world

This element specifies startup map that will be loaded right after player joined the server. Available only in root configuration file.

Usage:

<server>
    <world name="NEWWORLD\\NEWWORLD.ZEN" />
</server>

version

This element specifies minimal required client build version to join the server. Available only in root configuration file.

Usage:

<server>
    <version build="0" />
</server>

master

This element specifies master server connection settings. Available only in root configuration file.

Usage:

<server>
    <master host="master.gothic-online.com.pl" port="7777" />
</server>

description

This element specifies the server description visible in launcher. Available only in root configuration file.

Usage:

<server>
    <description>
        <![CDATA[
        <center>
            <b><font color=blue>Gothic</font> 2 <font color=red>Online</font> 0.1.10.0</b><br>
        </center>
        ]]>
    </description>
</server>

items

This element specifies the location of file that contains Gothic item instances which will be registered by server. Registered items are used to generate identifiers for network optimization.

Usage:

<server>
    <items src="items.xml" />
</server>

mds

This element specifies the location of file that contains Gothic mds names which will be registered by server. Registered mds are used to generate identifiers for network optimization.

Usage:

<server>
    <mds src="mds.xml" />
</server>

wayfile

This element specifies the location of file that contains waypoints and map for which loaded waypoints will be used.

Usage:

<server>
    <wayfile map="NEWWORLD" src="waypoints/newworld.xml" />
</server>

script

This element specifies script which is loaded when the server/client starts.

  • src: Attribute specifies the location of file that contains script data.
  • type: Attribute specifies on which side script is loaded. Available client, server, shared.

Usage:

<server>
    <!-- Will be loaded only on client-side -->
    <script src="client-scripts/main.nut" type="client" />
    <!-- Will be loaded only on server-side -->
    <script src="server-scripts/main.nut" type="server" />
    <!-- Will be loaded on both client-side and server-side -->
    <script src="shared-scripts/main.nut" type="shared" />
</server>

module

This element specifies module which is loaded when the server/client starts. Modules are dynamic-link libraries written in C/C++ to extend possibilities of server.

  • src: Attribute specifies the location of file that contains script data.
  • type: Attribute specifies on which side script is loaded. Available client, server.

Usage:

<server>
    <!-- Will be loaded only on client-side -->
    <module src="MyModule.dll" type="client" />
    <!-- Will be loaded only on server-side -->
    <module src="MyModule.so" type="server" />
</server>

import

This element specifies the location of import file which will extend current configuration. Elements which are inside import file are using relative path from directory.

Usage:

<server>
    <import src="gamemodes/prototype/scripts.xml" />
</server>

resource

Available since version: 0.2.0

Remember to delete cache directory after every change in resource configuration!

This element specifies required resource to play on the server. Resources are automatically downloaded and loaded in-game.

  • vdf: Attribute specifies the location of vdf file.

Usage:

<server>
    <resource vdf="fancy-armors.vdf" />
</server>

downloader

Available since version: 0.2.0

This element specifies downloader settings.

  • port: Element specifies the HTTP port on which the server will be accepting incoming connections. It is an optional element.
  • url: Element specifies the external URL from which client will download needed resources. If not specified, clients will download files directly from the server. It is an optional element.
  • group: Element specifies the name of directory to which needed resources will be downloaded. Default behaviour creates directory in following format ip_port. It is an optional element.

Usage:

<server>
    <downloader>
        <port>8080</port>
        <url>http://localhost:8080</url>
        <group>MyServer</group>
    </downloader>
</server>