Sniper Elite 4

Sniper Elite 4

Not enough ratings
Recover from a Corrupted Profile
By LTC505
I too was a victim of the dreaded profile corruption error. I lost my rank, nearly 1000 hours of playing time, and all my customized settings. As a computer systems administrator and avid FPS gamer I was determined to never let it happen again.
Despite numerous web searches, including direct contact with Rebellion support, none of the solutions proposed actually worked. I have finally determined a method for saving and retrieving your profile. I will provide instructions for manually saving and retrieving a saved profile and an automated method using a simple batch file to save and restore your lost profile and game settings.
   
Award
Favorite
Favorited
Unfavorite
The Recovery Process
Information and Insight
Sniper 4 Elite profile files are located on your Windows boot drive:
C:\Users\[your_name]\AppData\Local\SniperElite4\PC_ProfileSaves\[your_profile_number]\

NOTE: To reveal the “AppData” folder:
• In the search box on the taskbar, type folder, and then select “Show hidden files and folders” from the search results.
• Select “Show hidden files, folders, and drives”, and then select OK.

The folder contains a number of files titled “Slot*.sav." The important ones are the “Slot0.sav” and “Slot1.sav.” It appears that when you complete various tasks and accomplishments that information is written to these two files. Both appear to contain duplicate information but the “Slot1.sav” is key to recovering your profile. Unfortunately, when your system crashes mid game, both of these files are corrupted and a default profile and game settings are loaded when you restart the game. The key to recovering your profile is to backup the “Slot1.sav” file frequenty. My habit is to backup the file after each game session and particularly after every promotion.

Recovery Process (Manual)
1. Go to the [your_profile_number] folder shown above and delete all the "Slot*.sav" files
2. Locate the “Slot1.sav” file you saved previously
3. Copy the “Slot1.sav” file to the \[your_profile_number]\ folder
4. Rename the “Slot1.sav” to “Slot0.sav” and restart Sniper 4
The game should load with your profile, game settings and rank intact.

Recovery Process (Automated)
Being the clever lad that I am, I decided to automate the process by writing a simple batch file to complete the profile backup and restore processes. I have provided the steps below. The batch file provided is non-destructive but I would suggest before using it for the first time that you copy the contents of the “PC_ProfileSaves” folder to a safe location in the event you need to restore its contents.
Happy Sniping
-RBH

What the Batch File Does
The batch file provides three options:
Option 1 – Backs up the file “Slot1.sav” from the “PC_ProfileSaves” folder to a location of your choosing
Option 2 – Deletes the files from the “PC_ProfileSaves” folder, copies “Slot1.sav” to the “PC_ProfileSaves” folder and renames the file “Slot0.sav”
Option 3 – Takes no action and exits the batch file

Create Your Batch File
1. Open Windows “Notepad” and copy and paste the text below
2. Edit the [your_name] , [your_file_folder] and [your_profile_number] sections to reflect your user name, file and folder locations, and profile number (mine was 17-digits long)
3. Save the file as a *.txt (i.e. “Sniper_Profile.txt”)
4. Rename the file with a *.bat file extension (i.e. “Sniper_Profile.bat”)
5. Finally create a desktop shortcut to the file

The Batch File
@echo off
echo.
echo.
echo **********************************************
echo ** This Program will Backup or Restore **
echo ** your Sniper 4 Profile **
echo **********************************************
echo ** Select "1" to Backup, "2" to Restore **
echo ** or "3" to Exit **
echo **********************************************

@echo off

CHOICE /C:123

If errorlevel 3 goto Exit
If errorlevel 2 goto Restore
If errorlevel 1 goto Copy

:Copy
Xcopy C:\Users\[your_name]\AppData\Local\SniperElite4\PC_ProfileSaves\[your_profile_number]\Slot1.sav
C:\[your_file_folder] /y

:Restore
Del C:\Users\[your_name]\AppData\Local\SniperElite4\PC_ProfileSaves\[your_profile_number]\ *.* /Q
Xcopy C:\[your_file_folder]\Slot1.sav C:\Users\[your_name]\AppData\Local\SniperElite4\PC_ProfileSaves\[your_profile_number]\
Rename C:\Users\[your_name]\AppData\Local\SniperElite4\PC_ProfileSaves\[your_profile_number]\Slot1.sav Slot0.sav

cls
echo.
echo.
echo ***********************************
echo ** File Copied Successfully! **
echo ***********************************
echo.
echo.
goto theEnd

:theEnd
pause

:exit
3 Comments
Altaïr 24 Jul, 2021 @ 5:36pm 
Nope, it won't work for some reason (had to try it again, thanks stupid Steam client for crashing and destroying my efforts once again)
Altaïr 17 Jul, 2021 @ 2:34pm 
Sadly, the 1 is also currupt.. Found an older file (last month), but it doesn't let me use it :S
I'll copy my files from now on, at least once a week or so >.< Lost my work, but oh well.. Happy sniping, and thank you for the lesson
Mac Mitten 9 Mar, 2021 @ 3:56pm 
Thanks for figuring this out and creating a how to guide!!! I lost my rank and hours due to a game crash and file corruption.