Script:Config

From Gothic 2 Online: Wiki
Jump to navigation Jump to search
server The root element

Example:

<server>
...
</server>
config Contains basics information about the server.

Attributes:

  • public
  • port
  • host_name
  • max_slots
  • rcon_pass

Example:

<config public=true host_name="Gothic 2 Online" max_slots=32 port=32000 rcon_pass="admin" />
version Minimal required client version to join to the server.

Attributes:

  • build

Example:

<version build=2 />
world Startup server world, without .ZEN extension.

Attributes:

  • name

Example:

<world name="NEWWORLD\\NEWWORLD" />
description Server description in Launcher

Attribute:

  • text

Example:

<description>
<![CDATA[
    <b>
        <font color=blue>Gothic</font> 2 <font color=red>Online</font>
    </b>
]]>
</description>
import Import an external .xml file, to your project.

NOTE! <config /> element, is only loaded once.
Attribute:

  • src

Example:

<import src="myCustomFramework.xml" />
script Import script, to your project.

Attribute:

  • src
  • type

Example:

<script src="main.nut" type="server" />
module Import module, to your project.

NOTE! Modules are dynamic-link library, so they extension must be .dll or .so
Attribute:

  • src
  • type

Example:

<module src="MyModule.dll" type="client" />
items Import items definition from xml file. NOTE! This tags are stackable.

Attribute:

  • src

Example:

<items src="items.xml" />
mds Import mds definitions from xml file. NOTE! This tags are stackable.

Attribute:

  • src

Example:

<mds src="mds.xml" />