Created
February 26, 2020 13:05
-
-
Save lfps29/32f0bcd8f25f1a8f5076bc3f3dee517c to your computer and use it in GitHub Desktop.
Mafia 3 save game backup. I lost my 15 hours savegame. Then I decide to make this backup bat script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: variaveis | |
set backupdir=F:\jogos\Mafia3\backup\saves | |
set backupcmd=xcopy /s /c /d /e /h /i /r /y | |
set mafiadata=76561197999360343 | |
::renomeia a pasta saves do diretorio de backup com a data e hora atuais | |
echo ### Renomeando Pasta com data e hora | |
for /f "tokens=1-6 delims=/:. " %%a in ("%date% %time%") do ren saves %%a%%b%%c_%%d%%e | |
::cria uma pasta saves dentro do diretorio de backup | |
echo ### Fazendo Backup... | |
%backupcmd% "%USERPROFILE%\AppData\Local\2K Games\Mafia III\Data\%mafiadata%\gamesaves\default\aslot" "%backupdir%" | |
echo Backup Completo! | |
echo Pressione uma tecla para iniciar o jogo | |
@pause>nul | |
start steam://rungameid/360430 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To work you have to start the game one time, exit the game and edit the bat variables:
"backupdir" - is the folder where you want to keep the backup savegames
"backupcmd" - is the xcopy command to copy the files. You don't have to change that
"mafiadata" - is the folder number you will find in "%USERPROFILE%\AppData\Local\2K Games\Mafia III\Data".
If you want, you can remove lines 17 and 18. This will remove the pause.
Line 20 will start the MAFIA III after any key press. You can remove this line too, if you don't want to start the game after executing this bat.
After these changes. You just use this bat to start the game.