RimWorld

RimWorld

3,277 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
909.765 KB
13 Aug, 2021 @ 6:55pm
22 Jul @ 3:12am
152 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)
86
22 Jul @ 1:34pm
PINNED: Bug Reports
Imranfish
12
3 hours ago
PINNED: Suggestions
Imranfish
1
29 May, 2023 @ 12:21am
Getting these kind of errors along with Real Ruins
p20 hammerpoints
258 Comments
Imranfish  [author] 21 Jul @ 10:07am 
@falkenlambedo I would recommend removing mods until you figure out which one is causing it. This mod is not the reason, this mod does not run any code at all after the game boots.
falkenlambedo 21 Jul @ 9:58am 
Hi i have the problemt that my pawns now not sleeping :(
Imranfish  [author] 20 Jul @ 10:12am 
Strange, I am not sure what in this mod could be causing that. It just contains patch operations and some harmony patches on the vanilla patch ops. But if resubscribing fixed it, great
Curiosity 20 Jul @ 9:16am 
Yes. Confirmed. This was the only mod I am using that updated in the last 24hrs. Unsubscribed, waited a few minutes and resubscribe - fixed it without needing anything else.
NoHud 17 Jul @ 10:16am 
Anybody having issues with gray screen or games not loading after they worked fine earlier, try unsubscribing and resubscribing to this mod.

Had two errors for System.Threading.ThreadAbortException. Full error log posted in bug reports.
Deleting this mod archive and resubscribing fixed it immediately. Could be Rocketman as well but updating this mod cleared it up instantly and allowed me to play again, praise be.
Thanks for your quick effort and continued support. Take care!
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.
theygotmyasstheygotmyass 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.