Note: This post applies to Saints Row: The Third, Saints Row IV, and Saints Row: Gat Out Of Hell.
I've been trying to figure out a way to make it easier for mod users to install multiple mods. Currently, there are various batch installers and Minimaul's ubiquitous "ThomasJepp.SaintsRow.Stream2Update.exe" tool which already make it significantly easier for mods to co-exist. But there's still one remaining issue: It's difficult to merge multiple mods that make changes to the same ".xtbl" file. Corrodias's excellent tutorial describes how to merge multiple mods, but it's still difficult and a bit overwhelming for non-technical users.
I wanted to try to find a simple automated way to modify just the parts of an ".xtbl" file I need to change without affecting the rest of the file (including the indentation and spacing). I also wanted to make this easy for the end user without requiring them to install additional applications.
I believe I have found a good solution, but I'd like to hear your feedback.
The main caveat is that the mod authors need to become familiar with basic Windows PowerShell scripting and the very powerful .NET XmlDocument class. Using XmlDocument with XPath searches is a relatively simple way to find and modify just the parts of an ".xtbl" file you need to change.
Let me know what you think.
If you have any questions or would like some help with PowerScript, let me know. I just recently taught myself PowerScript, so I'm no expert by any means, but I do have many years of programming experience. Thanks!
Also, if anyone has something simple they'd like me to write a patch script for, let me know. I know there's a lot of merging going on with "customization_items.xtbl" and maybe there's something I could help with.
See my Rainy Weather mod for a working example of Patch Scripts. Please let me know if you have any problem getting them to run on your system.
I've been trying to figure out a way to make it easier for mod users to install multiple mods. Currently, there are various batch installers and Minimaul's ubiquitous "ThomasJepp.SaintsRow.Stream2Update.exe" tool which already make it significantly easier for mods to co-exist. But there's still one remaining issue: It's difficult to merge multiple mods that make changes to the same ".xtbl" file. Corrodias's excellent tutorial describes how to merge multiple mods, but it's still difficult and a bit overwhelming for non-technical users.
I wanted to try to find a simple automated way to modify just the parts of an ".xtbl" file I need to change without affecting the rest of the file (including the indentation and spacing). I also wanted to make this easy for the end user without requiring them to install additional applications.
I believe I have found a good solution, but I'd like to hear your feedback.
The main caveat is that the mod authors need to become familiar with basic Windows PowerShell scripting and the very powerful .NET XmlDocument class. Using XmlDocument with XPath searches is a relatively simple way to find and modify just the parts of an ".xtbl" file you need to change.
Let me know what you think.
If you have any questions or would like some help with PowerScript, let me know. I just recently taught myself PowerScript, so I'm no expert by any means, but I do have many years of programming experience. Thanks!
Also, if anyone has something simple they'd like me to write a patch script for, let me know. I know there's a lot of merging going on with "customization_items.xtbl" and maybe there's something I could help with.
See my Rainy Weather mod for a working example of Patch Scripts. Please let me know if you have any problem getting them to run on your system.
Attachments
Last edited: