Wikia

HammerWiki

MOD File

6,440pages on
this wiki
Comments0

MOD files are they keystone of any AddOn. They provide Warhammer Online enough information to use the AddOn, as well as some general information about the AddOn for user consumption. MOD files contain XML, and are essentially renamed XML files. While there is no XML Schema that defines MOD files, the structure is fairly simple.

The example below is fairly self explanatory. Note the XML declaration at the top of the example. See the specific element pages for more information about specific elements or Category:MOD File Elements for a list of all potential MOD file elements.

ExampleEdit

Here is an example MOD file that shows a typical configuration:

<?xml version="1.0" encoding="UTF-8"?>
<ModuleFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <UiMod name="SuperMOD" version="1.0" date="10/1/2008">

    <Author name="TheAuthor" email="TheAuthor@BestestAddOns.com" />
    <Description text="This is the greatest AddOn ever created!" />

    <Dependencies>
      <Dependency name="SuperMODFramework" />
    </Dependencies>

    <Files>
      <File name="Source/SuperMOD.xml" />
    </Files>

    <OnInitialize>
      <CreateWindow name="SuperMODWindow" show="false"/>
      <CallFunction name="SuperMOD.Initialize" />
    </OnInitialize>

    <OnUpdate>
      <CallFunction name="SuperMOD.Update" />
    </OnUpdate>

    <OnShutdown>
      <CallFunction name="SuperMOD.Shutdown" />
    </OnShutdown>

    <SavedVariables>
      <SavedVariable name=SuperMOD.Settings" />
    </SavedVariables>

  </UiMod>

</ModuleFile>

Around Wikia's network

Random Wiki