Change the Vault Cache path in UE4 and free up your drive

Posted By Calaelen in QuickTip, UE4 | 5 comments


What’s the Vault Cache?

Market Place downloads and learning sample projects are stored in your Unreal Engine 4 Vault Cache directory and are being keep there as unchanged original files. You import them to your projects or start a new one with them. UE4 then creates a copy of theses files inside your project folder.

Copy a project from the Vault Cache

What’s the problem?

Vault Cache folderThe VaultCache is always located at [GameEngineInstallFolder]/EpicGames/Launcher/VaultCache/. It can’t be relocated by settings or during installation yet (UE 4.7.6). For performance reasons, I have UE4 installed on my start-up SSD drive and my vault contains 50GB of data which isn’t used “directly”. Files are always copied from it to the project folders.

Solution: Relocate with a symbolic link

Vault Cache folder symbolic linkWith a symbolic link, we can map a folder to a completely different location, even a network drive. In my case, the VaultCache is not even on the PC anymore but on my NAS at Y: (\\NAS-Cala) ;-)

Read more about symbolic links including examples at Wikipedia.

How to change the VaultCache Folder

Windows:

  • go to your [GameEngineInstallFolder]/EpicGames/Launcher/ folder
  • copy your VaultCache folder to the desired position (other drive, network storage)
  • rename VaultCache to something else (delete later, better safe than sorry)
  • start the cmd.exe (terminal) with administrator privileges (right mouse, start as admin)
  • change directory: cd [GameEngineInstallFolder]/EpicGames/Launcher/
  • create the symbolic link with your new location, e.g. mklink /D VaultCache “Y:\apps\UE4\VaultCache”
  • start the Epic Launcher and click on ‘Library’ – the Launcher should rescan for new content now
  • delete the old VaultCache folder and free up your drive :)

Mac:

  • same steps but instead of mklink use the ln function
  • sudo ln -s /Volumes/HDD2/UE4/VaultCache/ VaultCache

Conclusion

I hope this is helpful to you. It saved up a lot of space on my SSD drive and I still can keep all the great content from the learning tab. *Happy GameDev is happy*

Recent Update of the UE4 Launcher!

The Epic Launcher software now includes the possibility to change your vault location inside the option menu. Just click on the cog in the right upper corner and select ‘Manage Vault Cache‘. Nice and simple. I guess my blog entry is obsolescent now ^^;

ue4-manage-vault-cache-folder

5 Comments

  1. Does that also work for asset management, to get access to an asset library weithin your engine content folder?

    Post a Reply
    • It should work on any position as symbolic links get included in the normal file structure. But I haven’t tested it yet :)

      Post a Reply
  2. Great tip – I never thought to use a symbolic link for this. Great tip just saved me 60GB of space on my Lappy thanks :)

    Post a Reply
    • I’m sorry for that. I used these steps on Win 8.1 and Win10 and also with the current UE 4.10.1. You might have miss typed something?
      Things to check:
      – using a backslash in the path \ and not the usual windows /
      – surround the path with quotation marks “….”
      – use real paths not aliases, try to auto-complete the path with tab-key

      Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Share This