Skip to content

Instantly share code, notes, and snippets.

@lanmaster53
Created June 14, 2024 02:05
Show Gist options
  • Save lanmaster53/4204d119e6e1736c0c1d2cf42047dbf2 to your computer and use it in GitHub Desktop.
Save lanmaster53/4204d119e6e1736c0c1d2cf42047dbf2 to your computer and use it in GitHub Desktop.
Remnant 2 PC Gamepass Save Converter
# PC Gamepass Remnant 2 save file directory
$baseDir = "$env:USERPROFILE\AppData\Local\Packages\PerfectWorldEntertainment.GFREMP2_jrajkyc4tsa6w\SystemAppData\wgs\0009000003B67B12_00000000000000000000000076F212E3"
# "Save Folder" directory from Remnant Save Guardian
$saveDir = "$env:USERPROFILE\Documents\Remnant 2\Save Copies"
# Create the "Save Folder" directory if it does not exist
if (!(Test-Path -Path $saveDir)) {
New-Item -ItemType Directory -Path $saveDir
}
# Convert the profile
$profileSourceDir = "$baseDir\D984DEE611C442819BC74EC8EF3ECDED"
$profileDestFile = "$saveDir\profile.sav"
# Get the largest file in the source directory
$profileSourceFile = Get-ChildItem -Path $profileSourceDir | Sort-Object Length -Descending | Select-Object -First 1
if ($profileSourceFile) {
# Copy the largest file to the destination directory and rename it to profile.sav
Copy-Item -Path $profileSourceFile.FullName -Destination $profileDestFile -Force
Write-Output "Copied '$($profileSourceFile.Name)' to '$profileDestFile'."
} else {
Write-Output "No files found in the source directory."
}
# Convert the character
$characterSourceDir = "$baseDir\198D16B992A14DC090CEA71AFBA838B2"
$characterDestFile = "$saveDir\Save_0.sav"
# Get the largest file in the source directory
$characterSourceFile = Get-ChildItem -Path $characterSourceDir | Sort-Object Length -Descending | Select-Object -First 1
if ($characterSourceFile) {
# Copy the largest file to the destination directory and rename it to profile.sav
Copy-Item -Path $characterSourceFile.FullName -Destination $characterDestFile -Force
Write-Output "Copied '$($characterSourceFile.Name)' to '$characterDestFile'."
} else {
Write-Output "No files found in the source directory."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment