Created
March 30, 2018 07:38
-
-
Save Calrissian97/58f0dfcb8a79375461397ad087478ae0 to your computer and use it in GitHub Desktop.
Little bat to move files around and change therefore change video settings for Battlefront II (2005)
This file contains hidden or 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 | |
| title Switch Between HD and SD BF II | |
| REM This batch is used to move shader patch files as well as the HD menu files to a spare directory. | |
| REM This results in the game either in HD or SD quality. Not really useful for many people, but it has some good expamples of stuff. | |
| REM Written by Calrissian97 (c) 2018 | |
| cd C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc | |
| if exist core-SP.lvl ( | |
| echo +-----------------------------+ | |
| echo + Status: Shader Patch is OFF + | |
| ) else ( | |
| echo +-----------------------------+ | |
| echo + Status: Shader Patch is ON + | |
| ) | |
| cd C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\ | |
| if exist "shader patch.ini" ( | |
| echo +-----------------------------+ | |
| echo + Files are in game directory + | |
| echo +-----------------------------+ | |
| echo: | |
| ) | |
| if exist temp.fake ( | |
| echo +-----------------------------+ | |
| echo + Files are in spare folder + | |
| echo +-----------------------------+ | |
| echo: | |
| ) | |
| cd C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc | |
| :Part1 | |
| set /p porgboi="Enable shader patch? [Y/N]: " | |
| if exist core-SP.lvl ( | |
| goto ShaderPatchOFF | |
| ) else ( | |
| goto ShaderPatchON | |
| ) | |
| REM ------------------------------------------------------------------------------ | |
| :ShaderPatchOFF | |
| if %porgboi% EQU Y ( | |
| ren "core.lvl" "core-OG.lvl" | |
| ren "core-SP.lvl" "core.lvl" | |
| echo Shader Patch Enabled | |
| goto Part2 | |
| ) else ( | |
| echo Shader Patch Disabled | |
| goto Part2 | |
| ) | |
| :ShaderPatchON | |
| if %porgboi% EQU Y ( | |
| echo Shader Patch Enabled | |
| goto Part2 | |
| ) else ( | |
| ren "core.lvl" "core-SP.lvl" | |
| ren "core-OG.lvl" "core.lvl" | |
| echo Shader Patch Disabled | |
| goto Part2 | |
| ) | |
| REM ----------------------------------------------------------------------------------------------------- | |
| :Part2 | |
| echo Made it to Part2 | |
| cd C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\ | |
| set /p swolo="Move files?: " | |
| if %swolo% EQU Y ( | |
| echo Files will now be moved... | |
| goto Part3 | |
| ) else ( | |
| echo No files will be moved... | |
| echo ---------------------------------------------------------------- | |
| echo Continue to start the game | |
| goto END | |
| ) | |
| :Part3 | |
| echo Made it to Part3 | |
| set sp=shader patch.ini | |
| set ps=temp.fake | |
| if exist %ps% ( | |
| echo Changed shaderpatch to real... | |
| ren "temp.fake" "shader patch.ini" | |
| goto OPTION_A | |
| ) else ( | |
| echo Changed shaderpatch to fake... | |
| ren "shader patch.ini" "temp.fake" | |
| goto OPTION_B | |
| ) | |
| pause | |
| :start BattlefrontII.exe | |
| :OPTION_A | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder\custom_gc_1.lvl" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc" | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder\custom_gc_2.lvl" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc" | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder\custom_gc_3.lvl" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc" | |
| echo Moved Scripts to game directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder\FHDI" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc" | |
| echo Moved FHDI Folder to game directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder\shaderpatch" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data" | |
| echo Moved shaderpatch Folder to game directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder\dinput8.dll" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData" | |
| echo Moved shaderpatch file (dinput8) to game directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder\Microsoft.Expression.Drawing.dll" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData" | |
| echo Moved shaderpatch file (MED) to game directory | |
| echo ---------------------------------------------------------------- | |
| echo Continue to start the game in HD | |
| goto END | |
| :OPTION_B | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc\custom_gc_1.lvl" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder" | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc\custom_gc_2.lvl" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder" | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc\custom_gc_3.lvl" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder" | |
| echo Moved Scripts to Spare Directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\_lvl_pc\FHDI" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder" | |
| echo Moved FHDI Folder to Spare Directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Data\shaderpatch" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder" | |
| echo Moved shaderpatch Folder to Spare Directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\dinput8.dll" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder" | |
| echo Moved shaderpatch file (dinput8) to Spare Directory | |
| move "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\Microsoft.Expression.Drawing.dll" "C:\Program Files (x86)\Lucasarts\Star Wars Battlefront II\GameData\HD_Holder" | |
| echo Moved shaderpatch file (MED) to Spare Directory | |
| echo ---------------------------------------------------------------- | |
| echo Continue to start the game in SD | |
| goto END | |
| :END | |
| pause | |
| start BattlefrontII.exe | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment