About this mod
This is a simple script that will automate cleaning up your Wreckfest 2 Data folder and backing up the cleaned out files into a backup folder so you can easily restore the files later if you want.
Essentially this is a more powerful way to run Bugbear's official DataCleaner.exe as it allows full clean up of new files and backup of those files.
- Permissions and credits
- Changelogs
- Donations
By STRmods
This tool both cleans up your data folder and does a backup of whatever was removed.
Currently when you verify your game with Steam or use DataCleaner.exe from the WF2 folder some things may get left behind, especially empty folders. This tool fixes that problem and fully cleans the Data folder.
When running the script you will have the choice to press 1 or 2 on your keyboard to select either clean up and backup or copy modified files. After continuing with either option the script will the check what files don't belong in vanilla WF2 by using Bugbears official DataCleaner.exe which is included with the Wreckfest installation. Once the files have been checked and and the modified file list has been processed it will move/copy the files to a folder in the WF2 root directory called "xModFilesBackup". In here will be the exact same file structure as they were taken from with a data folder with all of the files and folders inside.
If you're doing a cleanup you will be given the option to also run Steam file verification directly from the script after the backup process is finished if you need to restore any overwritten original files.
If you wish to restore the mods files all you need to do is move or copy the data folder from inside the "xModFilesBackup" folder over the data folder in the WF2 root directory just like when you installed the mods originally.
For modders this tool can also be useful to package up your mod files after creating them as it will pull all the extra files from the data folder into the backup folder. Rename the xModFilesBackup folder to the name of your mod (copy any replacement files manually to this folder too). And with that you have your mod packaged in a few seconds rather than going into each folder and finding which files you added.

Installation:
To install simply copy the "#STRmods Mod Files Extractor.bat" into your Wreckfest 2 root folder (Where Wreckfest2.exe is)
To uninstall simply delete "#STRmods Mod Files Extractor.bat"
Note
This script can only be ran from inside the Wreckfest 2 root directory, there are checks in place to ensure you can't make a mistake with this.
If you see an error message saying "Wreckfest2.exe" not found in this folder, it is because you are running the script from outside of the game folder, please move it.
If you're on Linux (Steam Deck on SteamOS too) then you should check out Mod Handler (Linux) by soufant for their version of this same idea.