Varbsorb
Get rid of Virt-A-Mate Custom and Saves files that have been made available in a .var file. This will send duplicates to your recycle bin (you can empty it after once you're happy with the result) and update .json files so they reference .var files whenever possible.
Usage
First, make a backup. You never know!
In a command prompt (e.g. cmd or powershell):
> varbsorb.exe --vam C:\Vam
This will scan your Virt-A-Mate Saves and Custom folders as well as the .var packages in your AddonPackages folder. When it finds a file that exists in both the AddonPackages var files and your Saves/Custom folder, it will update the scene and delete the duplicated files.
Arguments:
Gotchas
This will delete files on your system. Varbsorb tries very hard to ensure it's as safe as possible, but if you have symbolic links in your Saves or Custom folder, Varbsorb will follow them. You might want to make a backup of your Virt-A-Mate Saves and Custom folders, just in case (or add them to Git).
Folders starting with a "." such as ".git" will not be cleaned.
When multiple var version matches are found, the highest version will be selected. If multiple var packages are found, the one with the least files will be selected. The reasoning is if someone creates a var file with a look that contains morphs, textures and other things, but there's also a package that exists that only contains the textures, the latter is usually a better choice.
Get rid of Virt-A-Mate Custom and Saves files that have been made available in a .var file. This will send duplicates to your recycle bin (you can empty it after once you're happy with the result) and update .json files so they reference .var files whenever possible.
Usage
First, make a backup. You never know!
In a command prompt (e.g. cmd or powershell):
> varbsorb.exe --vam C:\Vam
This will scan your Virt-A-Mate Saves and Custom folders as well as the .var packages in your AddonPackages folder. When it finds a file that exists in both the AddonPackages var files and your Saves/Custom folder, it will update the scene and delete the duplicated files.
Arguments:
- --vam: The root path of Virt-A-Mate.
- --include: Limit affected files to this path prefix, relative to vam (affects files that would be deleted or updated).
- --exclude: Paths to skip, relative to vam (affects files that would be deleted or updated).
- --verbose: Print more information.
- --warnings: Print missing references found while scanning (usually broken scenes).
- --noop: Does not actually delete or update anything.
- --log: Log file operations to a file.
Gotchas
This will delete files on your system. Varbsorb tries very hard to ensure it's as safe as possible, but if you have symbolic links in your Saves or Custom folder, Varbsorb will follow them. You might want to make a backup of your Virt-A-Mate Saves and Custom folders, just in case (or add them to Git).
Folders starting with a "." such as ".git" will not be cleaned.
When multiple var version matches are found, the highest version will be selected. If multiple var packages are found, the one with the least files will be selected. The reasoning is if someone creates a var file with a look that contains morphs, textures and other things, but there's also a package that exists that only contains the textures, the latter is usually a better choice.