About this mod
The script reads the list of mods from the latest Vortex backup JSON and provides them as a object array.
- Permissions and credits
- Mirrors
- Changelogs
Important: This script is for those who know PowerShell. You should know piping and how to process the result using other commands.
The script reads the list of games and mods of the last active profiles from the latest Vortex backup JSON and provides them for further processing.
The result is returned as an array of type ModData and is meant to be further processed by other PowerShell commands, to filter, format, sort and convert it. See some examples below...
Notes
- The script reads the data from the newer file in ($($env:APPDATA)\Vortex\temp\state_backups_full\*.json). Neither of these files is updated in real-time by Vortex. So, if you change something in the mod settings, it's best to restart Vortex.
- Mods with a status of Uninstalled in Vortex are not included in the list.
The custom type ModData
The returned array of type ModData contains most attributes that can be read from the Vortex backup file and that are useful.
The available properties can be listed by calling:
Export-VortexModList | Get-Member
Disclaimer
I only tested this script with my own local copy of Vortex version 1.10.8. The script behaviour with other installations, older Vortex versions, or non-standard installations may be unpredictable or it may not work at all.
Installation
Either clone this repository from GitHub to a location you like, or download the script here from NexusMods.
Usage examples
You can find some examples in the Readme on GitHub