Fandom

HammerWiki

MOD File

6,449pages on
this wiki
Add New Page
Comments0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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>

Also on Fandom

Random Wiki