Spore ModAPI Launcher Kit

XML Mod Identity version 1.0.1.3

This page contains documentation regarding creating an XML Mod Identity for your mod, which is used to package mods for release. Doing so allows all mods to be installed quickly and easily, even componentized mods, while avoiding common pitfalls of legacy “manual” installation methods.


Packaging a .sporemod

Step 1: package into a .zip file

how to package a sporemod part 1

Step 2: change extension to .sporemod

how to package a sporemod part 2


Sample ModInfo.xml

<mod displayName="My Mod" 
		unique="MyMod" 
		description="This is an example Custom XML Installer for a hypothetical mod."
		installerSystemVersion="1.0.1.3"
		hasCustomInstaller="true"
		dllsBuild="2.5.20">
	<componentGroup unique="groupOne" displayName="This is a Group">
		<component unique="optionOne" displayName="Option one"
					description="This is an option in a component group" 
					game="GalacticAdventures?GalacticAdventures"
					defaultChecked="true">OptionOneA.package?OptionOneB.package</component>
		<component unique="optionTwo" displayName="Option two" description=" "
					imagePlacement="InsteadOf" game="GalacticAdventures">OptionTwo.package</component>
		<component unique="coreUI" displayName="Core Spore UI" description=" "
					imagePlacement="InsteadOf"/>
	</componentGroup>
	<component unique="togglableComponent" 
				displayName="Togglable Component" 
				description="This is a togglable component. It can be enabled or disabled by the user. It is enabled by default, as defined by the defaultChecked attribute."
				game="GalacticAdventures" defaultChecked="true">ToggleComponent.package</component>
	<prerequisite game="GalacticAdventures">Component.package</prerequisite>
	<prerequisite game="GalacticAdventures">PrerequisiteFile.package</prerequisite>
</mod>

<mod> tag

The mod tag identifies the entire mod, and must be the root element of the ModInfo.xml document.


<prerequisite> tag

The prerequisite tag identifies a mandatory part of your mod. Content specifies the names of the files in your mod which are to be installed (separated by question marks).


<compatFile> tag

The compatFile tag adds files only if certain other files are already installed. Content specifies the names of the files in your mod which are to be installed if the target files are found (separated by question marks).


<component> tag

Only used if the mod’s hasCustomInstaller attribute is explicitly set to true. The component tag identifies an optional component of your mod. Content specifies the names of the files in your mod which are to be installed (separated by question marks).


<componentGroup> tag

Only used if the mod’s hasCustomInstaller attribute is explicitly set to true. The componentGroup tag identifies a group of mutually-exclusive optional components of your mod. Children must be components.


Version history