荔枝王之恕 荔枝王之恕
关注数: 1 粉丝数: 17 发帖数: 1,032 关注贴吧数: 30
【荣誉模式】存档、恢复脚本 首先声明,各有各的玩法,不喜勿喷。 使用方法: 1.(备份)游戏中你想存档的时候先按F5存档,然后双击backup文件,会将刚刚保存的存档拷贝到文件所在目录的backup文件夹里 2.(恢复)在游戏中,退回主菜单,然后双击restore文件,会将最后一个有效的存档覆盖 ----------------------------------------- 下面按照我的步骤来: 一、打开记事本,粘贴以下代码,然后另存为backup.bat,注意保存的时候选择“另存为-所有文件”,然后下面的编码修改为ANSI。 rem -----代码开始------------ @echo off setlocal enabledelayedexpansion set src_name=48d46900-c31e-a248-205a-744e6f32cf21__HonourMode set src_path=%LocalAppData%\Larian Studios\Baldur's Gate 3\PlayerProfiles\Public\Savegames\Story\!src_name! if "%date:~3,1%" == " " ( set dt=%date:~10,4%%date:~4,2%%date:~7,2% ) else ( if "%date:~10,1%" == " " ( set dt=%date:~0,4%%date:~5,2%%date:~8,2% ) else ( set dt=%date:~0,4%%date:~5,2%%date:~8,2% ) ) if "%time:~0,1%" ==" " ( set ft=0 ) else set ft=%time:~0,1% set bt=!dt!-!ft!%time:~1,1%%time:~3,2%%time:~6,2% set dst_path=%~dp0backup\!src_name!\!bt! if not exist !dst_path! ( md "!dst_path!" ) xcopy /s /y "!src_path!" "!dst_path!" if %errorlevel%==0 ( echo OK! ) else ( echo ERROR! pause ) timeout 2 rem -----代码结束-----二、重复以上操作,将以下代码另存为restore.bat rem -----代码开始------------ @echo off setlocal enabledelayedexpansion set src_name=48d46900-c31e-a248-205a-744e6f32cf21__HonourMode set src_path=%LocalAppData%\Larian Studios\Baldur's Gate 3\PlayerProfiles\Public\Savegames\Story\!src_name! set dst_path=%~dp0backup\!src_name! set tmp_file=%Temp%\backup_list.txt dir "!dst_path!" /o-d /b > "!tmp_file!" for /f "delims=" %%x in (!tmp_file!) do ( if not exist "!dst_path!\%%x\HonourMode.lsv.old" ( copy "!dst_path!\%%x\*" "%src_path%\" /y if %errorlevel%==0 ( echo OK! goto _exit ) else ( echo ERROR! pause ) ) ) :_exit timeout 2 rem -----代码结束-----三、在资源管理器地址栏输入%LocalAppdata%然后回车,打开到以下路径: Larian Studios\Baldur's Gate 3\PlayerProfiles\Public\Savegames\Story找到一个HonourMode结尾的目录,然后复制该目录名称四、使用记事本打开刚刚保存的backup.bat和restore.bat,将我标黄的部分替换成刚刚复制的目录名,最后记得保存五、下面是我运行backup.bat之后的效果,祝大家博启快乐!
1 下一页