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
–
-Open with/Drag+Drop the a*sembly_utils.dll into dnSpy and Search for “GetSaveDataPath” and Double click on it to decompile for Editing.-
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
Cla*s: public static cla*s Utils Method: public static string GetSaveDataPath()
-Right Click and select-
Edit Method (C#)…
Just remove THIS from method
{ if (Utils.m_saveDataOverride != null) { return Utils.m_saveDataOverride; } return Application.persistentDataPath; }
and do
{ return "Path"; }
Example “Path”
"C:/Users/%username%/AppData/LocalLow/IronGateEA/Valheim0.146.11";
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
–
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
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 XIXGO.COM for MORE!