RimWorld

RimWorld

3,174 ratings
XML Extensions
5
5
6
4
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
900.793 KB
13 Aug, 2021 @ 6:55pm
11 Jul @ 1:51am
143 Change Notes ( view )

Subscribe to download
XML Extensions

In 1 collection by Imranfish
Imranfish's Mods
5 items
Description
Read the wiki at the GitHub page[github.com] to learn more.

Note: Steam keeps taking down my GitHub links, you can simply Google "XML Extensions GitHub" directly instead

Read the change notes for the latest news.

XML Extensions is a framework and modding tool that is focused on extending the general functionality of XML mods. This framework adds many more patch operations and allows for the easy creation of mod settings in XML.

More Patch Operations
XML Extensions includes many new patch operations for modders to use. These operations are much more powerful and dynamic, and allow you to basically do programming in XML; you have access to if-statements, for-loops, mathematical operations, etc.

Create Mod Settings in XML
With XML Extensions, you can easily create mod settings for your mod, all in XML! You may use these settings to toggle patch operations, change values within your patch operations, or use them in C# to do anything else.

Enhanced Error Reporting for XML Errors
With XML Extensions active, all XML patch errors will now generate a stack trace as well! This means that you can figure out exactly which patch failed, and in some cases, it will even tell you what part of the patch failed. All you need to do is have XML Extensions activated in your modlist while testing your mod.

Here is an example of a trace for a broken patch (you can easily figure out the error is that the letter "N" should be capital in defName):



The vanilla error message for the exact same patch (only reports the parent patch, not the one that actually failed; no clue as to what went wrong):



There is a standalone version of this feature as well.

How to Use
To use this mod as a user, just load this mod after core and the DLCs, but before all other mods that depend on it. As a modder, you need to mark this mod as a dependency in Steam Workshop, and include the dependency in your About.xml.

I am willing to take suggestions for improvements and additions to this framework, and will try to fix any bugs reported.

Join the discord! https://discord.gg/mrrEhHnSQy

Read the wiki at the GitHub page[github.com] to learn more.
Popular Discussions View All (4)
69
22 hours ago
PINNED: Bug Reports
Imranfish
8
16 Sep, 2023 @ 5:25am
PINNED: Suggestions
Imranfish
1
29 May, 2023 @ 12:21am
Getting these kind of errors along with Real Ruins
p20 hammerpoints
253 Comments
Imranfish  [author] 11 Jul @ 1:55am 
I have released another update containing many changes. For modders using this framework, I highly recommend you read the "Important 1.6 Information" page on the Wiki to get a summary of all the most important changes I have made these past few weeks.
NuanKi 10 Jul @ 11:25pm 
rogywantscoffee #1 hater
Unsubscribe, and manually delete the mod files, then subscribe again, that should fix it
Imranfish  [author] 10 Jul @ 12:04am 
@rogywantscoffee #1 hater
I don't know why that error is happening, it should be fixed by now. The new RimWorld update is going to release soon. Let me know if it still occurs in that version.
rogywantscoffee #1 hater 9 Jul @ 4:36pm 
hmm thats odd i resubbed to it
Imranfish  [author] 9 Jul @ 4:34pm 
@rogywantscoffee #1 hater
I am not sure what is going on. All of those mods work on my end, both in version 1.5 and in beta 1.6. Try to make sure all of the mods are updated.

Based on the error, it seems your XML Extensions version is outdated. The error “XML error: <decimals>3</decimals> doesn’t correspond to any field in type Numeric" means that your version of XML Extensions does not have the <decimals> node which I added recently.
rogywantscoffee #1 hater 9 Jul @ 4:14pm 
@Imranfish the mods that need it are "un-limited reborn" "advanced mechanoids" and "expanded prosthetics and organ enginerring-forked"
Imranfish  [author] 9 Jul @ 4:08pm 
@rogywantscoffee #1 hater You are probably running the default RimWorld 1.5. First, try to unsubscribe and re-subscribe to this item to force Steam to update it, if you haven't already tried.

If the bug is still there, then could you let me know which mod you are using that requires this one?
rogywantscoffee #1 hater 9 Jul @ 4:05pm 
@Imranfish i have no idea how do i check?
Imranfish  [author] 9 Jul @ 1:48pm 
@rogywantscoffee #1 hater That error seems unrelated to what I just fixed. What version of RimWorld are you playing?
Nicoman 9 Jul @ 12:55pm 
Reporting the errors that I had are gone. Thank you.