UPDATE 5/15/2021: Vortex no longer uses the unstripped_dlls mod as its base for other mods. Instead, it now also uses BepInExPack. The development process is effectively the same, but both the Vortex method and installing the pack from Thunderstore now result in a setup with the "unstripped_corlib" folder. I talk a a little more about the changes at the beginning of this update video: kzitem.info/news/bejne/pYmBl6iJpZWQjIY
Basic guide to making Valheim Harmony mods with BepInEx. Manual BepInExPack installation starts at 4:15, go to 5:03 to skip.
NOTE: It is better to import the Unity dlls from "Valheim/unstripped_corlib" (or "Valheim/unstripped_managed" if you are still using the unstripped_dlls mod). Some of the dlls from "valheim_Data\Managed" are missing functionality that is useful for modding.
I'll attempt to answer any questions if you reach out:
Discord: discord.gg/xcCnhNf4hN
Twitter: twitter.com/DickDngrJustice
NexusMods: www.nexusmods.com/users/27828690
Reddit: www.reddit.com/user/DickDangerJustice/
Code:
github.com/DickDangerJustice/ValheimMods/tree/master/ValheimMod
OR
pastebin.com/eCBhCEvr
Tools:
Visual Studio Community: visualstudio.microsoft.com/vs/community/
ILSpy: marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.ILSpy
Vortex: www.nexusmods.com/site/mods/1
(Not recommended) Manual BepInExPack for Valheim: valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/
Required dlls:
BepInEx\core\0Harmony.dll
BepInEx\core\BepInEx.dll
valheim_Data\Managed\assembly_valheim.dll
unstripped_managed\UnityEngine.dll (or unstripped_corlib\UnityEngine.dll)
unstripped_managed\UnityEngine.CoreModule.dll (or unstripped_corlib\UnityEngine.CoreModule.dll)
Additional resources:
BepInEx guide: bepinex.github.io/bepinex_docs/v5.4.4/articles/dev_guide/plugin_tutorial/
Harmony guide: harmony.pardeike.net/articles/intro.html
UPDATE: Fix from mleii1169 for the console not loading:
"[If your mod doesn't load] edit the doorstop_config.ini file.
Change the last line from:
dllSearchPathOverride=
To this:
dllSearchPathOverride=unstripped_corlib"
Негізгі бет Ойындар How to make a Valheim mod
Пікірлер: 225