Forum Discussion

Re: Cache being saved to documents, which gets synced by Onedrive

All


This is a painful issue that EA likely won't resolve from what I've been reading. Here is a great workaround, especially for those using OneDrive with work credentials.

This process will create a symlink (shortcut) in the Documents folder pointing to the Battlefield 2042 folder in the AppData\Local folder, where it should be...

1. Close Battlefield 2042 and make sure it isn't running

2. Delete the "cache" folder in "C:\Users\USERNAME\Documents\Battlefield 2042"

3. Move the "C:\Users\USERNAME\Documents\Battlefield 2042" folder to the desktop

4. Start Menu > Command Prompt > Right Click > Run as administrator

5. Paste the following command ensuring that you have the right USERNAME in this command (notepad helps)

mklink /D "C:\Users\USERNAME\Documents\Battlefield 2042" "C:\Users\USERNAME\AppData\Local\Battlefield 2042"


7. You will get a response "symbolic link created for..."

8. In your Documents folder you will now see a shortcut called Battlefield 2042

9. Copy the folders in your Desktop\Battlefield 2042 folder to the "C:\Users\USERNAME\AppData\Local\Battlefield 2042" folder

10. Launch Battlefield 2042

11. You may get a pop-up, choose local

The game will load and if you check OneDrive, you should see it removing the folders/files since they aren't in the Documents folder anymore.


Camo Mike

3 Replies

  • eengie's avatar
    eengie
    4 years ago
    @CamoMike63 I've tried running through your steps 3 times now and what I end up with every single time is that BF recreates the "Battlefield 2042" directory in "c:\Users\USERNAME\OneDrive\Documents" regardless of the fact that I now have a symlink in "C:\Users\USERNAME\Documents\Battlefield 2042" that is pointing to my local AppData which contains my files from step 3.

    Are there any other steps required, to somehow prevent OneDrive from hijacking whatever system call BF2042 is making to create its directory in "Documents" and forcing it to be in OneDrive\Documents?
  • shagz7's avatar
    shagz7
    4 years ago

    @CamoMike63 wrote:

    All


    This is a painful issue that EA likely won't resolve from what I've been reading. Here is a great workaround, especially for those using OneDrive with work credentials.

    This process will create a symlink (shortcut) in the Documents folder pointing to the Battlefield 2042 folder in the AppData\Local folder, where it should be...

    1. Close Battlefield 2042 and make sure it isn't running

    2. Delete the "cache" folder in "C:\Users\USERNAME\Documents\Battlefield 2042"

    3. Move the "C:\Users\USERNAME\Documents\Battlefield 2042" folder to the desktop

    4. Start Menu > Command Prompt > Right Click > Run as administrator

    5. Paste the following command ensuring that you have the right USERNAME in this command (notepad helps)

    mklink /D "C:\Users\USERNAME\Documents\Battlefield 2042" "C:\Users\USERNAME\AppData\Local\Battlefield 2042"


    7. You will get a response "symbolic link created for..."

    8. In your Documents folder you will now see a shortcut called Battlefield 2042

    9. Copy the folders in your Desktop\Battlefield 2042 folder to the "C:\Users\USERNAME\AppData\Local\Battlefield 2042" folder

    10. Launch Battlefield 2042

    11. You may get a pop-up, choose local

    The game will load and if you check OneDrive, you should see it removing the folders/files since they aren't in the Documents folder anymore.


    Camo Mike


    Brilliant idea using the symbolic link trick! I gave that a go and we will see if it helps with my performance (along with enabling DX12 in my config) file. 

    One tweak to suggest in the instructions is if a person is in this situation the original path to use for the mklink command will likely be "C:\Users\USERNAME\OneDrive\Documents\Battlefield 2042" 

    Side note: I was a little overzealous and actually closed OneDrive when I did this. Had to delete the cache folder online cause OneDrive got confuzzled when I launched it again. After deleting the online version if was right as rain.

  • sk1lld's avatar
    sk1lld
    Legend
    4 years ago

    I don't know about you people but I just nuked Onedrive. I was sick of everything that was Onedrive. Tired of it sync 'in my files at bad times.

About Battlefield 2042 General Discussion

Discuss the latest news and game information around Battlefield 2042 in the community forums.16,228 PostsLatest Activity: 20 days ago