Skip to content

Instantly share code, notes, and snippets.

@ctian1
Forked from fredimachado/Fix-Fornite-Replays.ps1
Created June 14, 2018 03:45
Show Gist options
  • Save ctian1/4b8d7262ca69078c36b218e04ba1590d to your computer and use it in GitHub Desktop.
Save ctian1/4b8d7262ca69078c36b218e04ba1590d to your computer and use it in GitHub Desktop.
Fix/Convert Fortnite Replays from 4.3 to 4.4
# Big thanks to the original creator of this script, IamLukeVice: https://www.reddit.com/user/IamLukeVice
#
# Copy all this content, paste in notepad and save as a ps1 file, example: Fix-Fornite-Replays.ps1
# Then, open the folder containing the script, right click it and choose: Run With Powershell
# If it doesnt run, follow this: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
$LocalAppDataFolder = "$env:LOCALAPPDATA"
$FortniteReplaysFolder = $LocalAppDataFolder + "\FortniteGame\Saved\Demos"
$count = 0
Get-Childitem $FortniteReplaysFolder -Filter *.replay |
Foreach-Object {
$bytes = [System.IO.File]::ReadAllBytes($_.fullname)
$offset = 0x10
if($bytes[$offset] -ne 0xb9){
"Fixing: " + $_.Name
$bytes[$offset] = 0xb9
$bytes[$offset+1] = 0xd3
$bytes[$offset+2] = 0x3e
[System.IO.File]::WriteAllBytes($_.DirectoryName + "\fixed-" + $_.Name, $bytes)
$count++
}
else{ "Already correct version: " + $_.Name }
}
"Fixed " + $count + " Files."
"Press a key..."; $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
@Nicolas-GE
Copy link

update for 5.30 pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment