1 Attachment(s)
Sanitize Mod Files Windows Command Script
Put together a some scripts for windows to Sanitize the mod files so I thought I'd share it.
It unpacks mod files, replaces characters in the db.xml, and repacks the file and replaces the original mod file.
It implements all the changes the listed as common substitutions.
Common Substitutions
searching replacing (description)
… ... (3 periods)
‘ ' (standard single quote)
’ ' (standard single quote)
“ " (standard double quote)
” " (standard double quote)
• * (asterisk)
– - (standard dash)
— - (standard dash)
& & (note this looks for & with a space after it)
Update 5-18-20: Added 2 if file exists db.xml / common.xml checks for the modules before attempting to sanitize and create them.
(WINDOWS ONLY) Unzip the contents of Sanitize_Mod into its own folder and just drag and drop your mod files onto CleanModFile.cmd
IMPORTANT!!! This creates and deletes files so its a use at your own risk kind of thing. Everything works fine for me, but I make no guarantees.