Skip to content

Instantly share code, notes, and snippets.

@SnoUweR
SnoUweR / bg3savesMonitor.ps1
Created September 8, 2023 19:57
baldur's gate 3 corrupted saves monitoring
# simple script that monitors new saves in the Baldur's Gate 3 folder and makes a sound if the save is less than 25 megabytes and most likely corrupted (can be configured in the file). Relevant for the third act
$SavesPath = "$Env:USERPROFILE\AppData\Local\Larian Studios\Baldur's Gate 3\PlayerProfiles\Public\Savegames\Story\"
# minimum size for the save file. If the save size is smaller than this value, the script will play a sound
$MinimumSaveSizeInMegabytes = 25 # the save size depends on the game's act. In the act 1 saves are less than 20 megabytes
$MinimumSaveSizeInBytes = $MinimumSaveSizeInMegabytes * 1000 * 1000
# specify which files you want to monitor
$FileFilter = '*.lsv'