RimWorld

RimWorld

No Water, No Life (Continued)
Denneisk 7 Dec, 2021 @ 6:47am
The manual uninstall guide
So, you want to remove No Water, No Life? No problem.

This guide requires you to have a basic understanding of how to use your preferred text editor. If you don't know, then try your best, but please be careful and DON'T OVERWRITE YOUR SAVE FILE.

Open your save file in a text editor that can handle large files well (I'd recommend something like VSCodium).

A general note is that everything in NWNL is prefixed by Mizu, so if you ever are unsure if you have removed everything, simply Ctrl+F for "Mizu" and delete any of the relevant XML (the entire object, not just the instance of Mizu). Make sure not to remove unrelated mod items (like Mizutori)!

Removing Water Need the Easy Way
Use the find and replace feature to remove these. Replace with an empty string. This is a VSCode-compatible regex (you may need to modify for other editors).
  • To remove water need (Note you may have to rewrite this even for VSCode): <li Class="MizuMod.Need_Water">\s*\n*<def>Mizu_Water</def>\s*\n*<curLevel>.+</curLevel>\s*\n*<lastSearchWaterTick>.+</lastSearchWaterTick>\s*\n*</li>
You're probably better at optimizing regexes than I am, so do what you can, king.

The big one:
There's a few huge water table indexes located inside your save. This will require some semi-careful scrolling or a simple collapsing of the <li> to remove. Make sure not to over-provision your selection.

Water jobs
I'm not sure if you have to remove these, but I did anyway.
This is relatively easy. When name searching for "Mizu" and finding jobs, replace the "Mizu_*" job def with null. Remove the entire curDriver section or replace it with <curDriver/> (this is apparently safe).

Water things
Unfortunately I can't figure out an easy way to regex this. So, the following is only tentative.
<li Class="ThingWithComps">\s*\n*<def>Mizu_.+</def>[\s\n].*</li>
Repeat the [\s\n].* for a few times, think 3 to 10. This will ensure you're thorough. Unofrtunately I can't figure out how to make newlines not terminate regexes infinitely.

Etcetera
You will also have to remove any instances of tech related to Mizu. Remove "Trader Will Not Sell" entries. Most of it is common sense. After all, you need to remove everything that references Mizu. Good luck.