Editing Modding Tutorials/About.xml

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{DISPLAYTITLE:About.xml}}
 
{{DISPLAYTITLE:About.xml}}
{{BackToTutorials}}
+
{{:Modding_Tutorials/Under_Review}}
  
<code>About.xml</code> is a required file that identifies your mod to RimWorld. This file defines the internal and viewer-facing names of your mod, contains a short description of your mod that is shown in the in-game mod manager, and defines compatibility issue such as other mods that your mod might be dependent on and load helpers that mod list auto-sorters can use to determine when to load your mod.
+
<code>About.xml</code> is a required file that identifies your mod to RimWorld.
  
 
== Setup ==
 
== Setup ==
Line 41: Line 41:
  
 
'''<code>packageId</code> must be globally unique across all mods.''' If RimWorld encounters more than one mod with the same <code>packageId</code>, ''even if they are not in your current mod list'', then an error will be thrown and only the first mod will be usable. The only time that using the same <code>packageId</code> is recommended is if you are forking or continuing a mod and want it to act as a drop-in replacement. In such cases, players must unsubscribe from the original mod to be able to use yours.
 
'''<code>packageId</code> must be globally unique across all mods.''' If RimWorld encounters more than one mod with the same <code>packageId</code>, ''even if they are not in your current mod list'', then an error will be thrown and only the first mod will be usable. The only time that using the same <code>packageId</code> is recommended is if you are forking or continuing a mod and want it to act as a drop-in replacement. In such cases, players must unsubscribe from the original mod to be able to use yours.
 
Note: <code>packageId</code> is case-insensitive as RimWorld will internally convert all IDs to lowercase; capitalization is done for readability, but two IDs that are identical other than case will resolve as identical.
 
 
|-
 
|-
 
| <source lang="xml">
 
| <source lang="xml">
Line 52: Line 50:
 
| <source lang="xml">
 
| <source lang="xml">
 
<author>Author Name, Another Author Name, A Third Author Name</author>
 
<author>Author Name, Another Author Name, A Third Author Name</author>
</source>
 
<div style="text-align: center; font-style: italic;">or</div>
 
<source lang="xml">
 
<authors>
 
  <li>Author Name</li>
 
  <li>Another Author Name</li>
 
  <li>A Third Author Name</li>
 
</authors>
 
 
</source>
 
</source>
 
| class="TutorialCodeTable-description" |
 
| class="TutorialCodeTable-description" |
The author of this mod, usually yourself. More than one author can be specified by separating names with commas or by using list nodes.
+
The author of this mod, usually yourself. More than one author can be specified by separating names with commas.
 
|-
 
|-
 
| <source lang="xml">
 
| <source lang="xml">
Line 91: Line 81:
 
{| class="TutorialCodeTable"
 
{| class="TutorialCodeTable"
 
! XML !! Description
 
! XML !! Description
|-
 
| <source lang="xml">
 
<modVersion>1.0</modVersion>
 
</source>
 
<div class="text-align: center; text-style: italic;">or</div>
 
<source lang="xml">
 
<modVersion IgnoreIfNoMatchingField="True">1.0</modVersion>
 
</source>
 
| class="TutorialCodeTable-description" |
 
A version string for your own personal version tracking.
 
 
'''WARNING:''' This tag was introduced in RimWorld 1.4 and will generate errors in previous versions unless <code>IgnoreIfNoMatchingField</code> is used. If you intend to support older versions of RimWorld with your mod and you want to use this field, you must add this attribute.
 
|-
 
| <source lang="xml">
 
<modIconPath>Path/To/Icon</modIconPath>
 
</source>
 
<div class="text-align: center; text-style: italic;">or</div>
 
<source lang="xml">
 
<modIconPath IgnoreIfNoMatchingField="True">Path/To/Icon</modIconPath>
 
</source>
 
| class="TutorialCodeTable-description" |
 
Adds an icon for your mod that is shown on loading screens. '''Note that the current unstable version of RimWorld 1.5 also automatically loads About/ModIcon.png, so this field is not necessary to show a mod icon. You only need it if you want to store your mod icon in your Textures folder for some reason.''' Mod icons should be 32x32 PNG files with limited colors; Unity's image compression will make icons very crunchy if you try to add too much detail.
 
 
'''WARNING:''' This tag was introduced in RimWorld 1.5 and will generate errors in previous versions unless <code>IgnoreIfNoMatchingField</code> is used. If you intend to support older versions of RimWorld with your mod and you want to use this field, you must add this attribute.
 
 
|-
 
|-
 
| <source lang="xml">
 
| <source lang="xml">
Line 216: Line 182:
 
</source>
 
</source>
 
| class="TutorialCodeTable-description" |
 
| class="TutorialCodeTable-description" |
Same as <code>loadAfter</code>, but instead of just a warning, RimWorld will not allow your mod to be loaded before the specified mods. Note that external mod managers such as RimPy may not respect this field.
+
Same as <code>loadAfter</code>, but instead of just a warning, RimWorld will not allow your mod to be loaded after the specified mods. Note that external mod managers such as RimPy may not respect this field.
 
|-
 
|-
 
| <source lang="xml">
 
| <source lang="xml">

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: