RimWorld

RimWorld

3,296 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
14 Aug, 2021 @ 1:55am
22 Jul @ 10: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)
88
26 Jul @ 7:32pm
PINNED: Bug Reports
Imranfish
12
23 Jul @ 5:36pm
PINNED: Suggestions
Imranfish
1
29 May, 2023 @ 7:21am
Getting these kind of errors along with Real Ruins
p20 hammerpoints
261 Comments
pgames-food 26 Jul @ 11:29pm 
(hi @falkenlambedo, one good way that helps me when trying to find out which mod is having a conflict, is to make a full backup of your Ludeon folder and saves/configs etc, and then to split your modlist in half.

in theory (and with a bit of luck), you can pinpoint which mod in about 8 attempts (but usually about 10 or so) :)

TLDR : split modlist in half (but keeping dependencies etc), and if issue goes away, conflicting mod(s) were in the batch you removed.
or, if mod conflict still persists, conflicting mod is most likely in the remaining modlist. etc)
么丨 Sloth 26 Jul @ 6:55am 
Hello, is it possible to make mod settings for a storage building that change its texture depending on how many stacks are inside?
rav 25 Jul @ 4:27am 
seems to be a lot of mods currently have issues with updating properly, i have another mod that only downloads 1.5 version even though its patched to 1.6 .. idk whats happening there but its not just your mod that has issues. seems like a steam problem
Imranfish  [author] 21 Jul @ 5:07pm 
@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 @ 4:58pm 
Hi i have the problemt that my pawns now not sleeping :(
Imranfish  [author] 20 Jul @ 5:12pm 
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 @ 4:16pm 
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 @ 5:16pm 
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 @ 8: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 11 Jul @ 6:25am 
rogywantscoffee #1 hater
Unsubscribe, and manually delete the mod files, then subscribe again, that should fix it