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.
What’s the problem?
The 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
With 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
- 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 :)
- same steps but instead of mklink use the ln function
- sudo ln -s /Volumes/HDD2/UE4/VaultCache/ VaultCache
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 ^^;
Be a part of the Journey
Join my mailing list to receive the latest updates and stay in touch with me. I greatly appreciate every reader (^.^)b Or follow me on Twitter: @GamedevCala
Does that also work for asset management, to get access to an asset library weithin your engine content folder?
It should work on any position as symbolic links get included in the normal file structure. But I haven’t tested it yet :)
Great tip – I never thought to use a symbolic link for this. Great tip just saved me 60GB of space on my Lappy thanks :)
This doesn’t seem to work for me. ( Win 8.1, UE 4.10.1 )
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
What happens to your game if you delete those files?
Sorry, didn’t see your comment until now. For others who might ask this question for themselves as well:
If you delete Files from the Vault, nothing changes in your projects! It is just a container for the external files from Epic / Epic Store to prevent load times each time you start a new project or import parts into current projects. These will always be imported (copied) into your project.
Thank you Dude =]