Baldur’s Gate Enhanced Edition – Local save folder

Make Baldur’s Gate Enhanced edition portable.

The following batch file will create symbolic links to set your save folder to the game folder instead of “My Documents”. This is useful if you intend to play the game portable. For example from a USB stick if you intend to be moving between different computers.

In the original Baldur’s Gate you had your save files in your local path, this is a workaround to make the enhanced edition act the same way.

Instructions

  1. Move the following files from your “My Documents\Baldur’s Gate – Enhanced Edition” folder into the “Baldur’s Gate – Enhanced Edition” install folder
    • Baldur.lua
    • characters
    • mpsave
    • portraits
    • save
  2. Copy the following code into your favourite plain text editor or notepad or download it directly by right clicking the following link and selecting “Save link as”

    @ECHO OFF
    FOR /F "tokens=3 delims= " %%G IN ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal"') DO (SET MYDOCUMENTS=%%G)
    mkdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition"
    rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\portraits"
    rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\save"
    rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\characters"
    rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\mpsave"
    del "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\Baldur.lua"
    pause
    mklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\portraits" "%~dp0\portraits"
    mklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\save" "%~dp0\save"
    mklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\characters" "%~dp0\characters"
    mklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\mpsave" "%~dp0\mpsave"
    mklink "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\Baldur.lua" "%~dp0\Baldur.lua"
    pause
  3. Save it as anything.bat in your Baldur’s Gate Enhanced edition install folder.
  4. Run anything.bat when the black window says press any key to continue, do so until the window disappears.
  5. Check that the folders in your “My Documents\Baldur’s Gate – Enhanced Edition” now have a little arrow on their icons. This indicates that they are not the actual files/folders but symbolic links.
  6. When you move to a new computer run anything.bat again and start the game!

Baldur’s Gate 2 Enhanced editon

Repeat the same steps as above but for the folder “Baldur’s Gate II – Enhanced Edition” and instead copy and paste the following  or right click this and select “Save link as”.

@ECHO OFF
FOR /F "tokens=3 delims= " %%G IN ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal"') DO (SET MYDOCUMENTS=%%G)
mkdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition"
rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\portraits"
rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\save"
rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\characters"
rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\mpsave"
del "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\Baldur.lua"
pause
mklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\portraits" "%~dp0\portraits"
mklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\save" "%~dp0\save"
mklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\characters" "%~dp0\characters"
mklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\mpsave" "%~dp0\mpsave"
mklink "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\Baldur.lua" "%~dp0\Baldur.lua"
pause

Caveats

May require administrative rights on the computer you’re on.

After moving to another computer you may have to run the installer for the OpenAL codec once.

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s