Save Directory Change – Valheim

Save Directory Change – Valheim 1 - steamclue.com
Save Directory Change – Valheim 1 - steamclue.com

Create a Custom Save Directory!!! No longer deal with Cross-Build Corruption! Have more then 1 Mod Pack Builds at a time!
 
 

Intro

This is going to Help keep any Heavy Mod Changes from breaking anything due to an Update or another Valheim Build loading the Default Save Directory. Useful for Multiple Mod Packs!
 
 
Download dnSpy – [github.com]  a .DLL Editor
 
 
 

Save Directory Change

-Find the .DLL to Edit and Backup at-
 
 

 Valheim\valheim_Data\Managed\a*sembly_utils.dll 

 
 
Save Directory Change - Valheim - Save Directory Change - 72FA94573
 

 
-Open with/Drag+Drop the a*sembly_utils.dll into dnSpy and Search for “GetSaveDataPath” and Double click on it to decompile for Editing.-
 
 
Save Directory Change - Valheim - Save Directory Change - 3A11DE316
 
 

Originally posted by Wariat117 - [] :
It's possible, go to file

 
Well that worked! It’s a minor disappointment that the %username% doesn’t work but it’s not important at all xD
 
Essentially to clear up some Detail issues it’s like this to change the FULL Save Directory.
 
 

a*sembly_utils.dll

 
Search for GetSaveDataPath
 
 
Save Directory Change - Valheim - Save Directory Change - B47A78480
 
 

Cla*s: public static cla*s Utils
Method: public static string GetSaveDataPath()

 
-Right Click and select-
 
Edit Method (C#)…
 
 
Save Directory Change - Valheim - Save Directory Change - 91E3883FC
 
 
Just remove THIS from method
 
 

{
 if (Utils.m_saveDataOverride != null)
 {
 return Utils.m_saveDataOverride;
 }
 return Application.persistentDataPath;
 }

 
 
Save Directory Change - Valheim - Save Directory Change - E28268940
 
and do
 
 

{
return "Path";
}

 
Example “Path”
 
 

"C:/Users/%username%/AppData/LocalLow/IronGateEA/Valheim0.146.11";

 
 
Save Directory Change - Valheim - Save Directory Change - B22849C73
 
Complete Example
 
 

// Token: 0x02000012 RID: 18
public static cla*s Utils
{
 // Token: 0x06000063 RID: 99 RVA: 0x0000260F File Offset: 0x0000080F
 public static string GetSaveDataPath()
 {
 return "C:/Users/SlikRick/AppData/LocalLow/IronGateEA/Valheim0.146.11/";
 }
}

 
 
Save Directory Change - Valheim - Save Directory Change - 8A446EF25
 

 
Save
 

 
 
Save Directory Change - Valheim - Save Directory Change - 5B66CD847
 
 
Save Directory Change - Valheim - Save Directory Change - 0CA256D65
 
 
 

Outro

It’s Important to Note that this was done with 0.147.3 and works back to 0.145.6.
 
Any Further and the Process is DIFFERENT!!!
 
Tested and Still Works on 0.206.5
 
 
PS. Guide not Finished
 
 

Written by ={cXn}= SlikRick

 
 
This is all we can share for Save Directory Change – Valheim for today. I hope you enjoy the guide! If you have anything to add to this guide or we forget something please let us know via comment! We check each comment! Don’t forget to check SteamClue.com for MORE!
 


Be the first to comment

Leave a Reply

Your email address will not be published.


*