BL Coding Guide for .dll files?

正在查看此主题的用户

Lord Earl

Karen
Regular
I can't find any good guides about .dll files. Apparently some people have tweaked them for their personal use, so there should be a way to do it. I think many of the Metal Gear mods used that system.
 
解决方案
Check this guide out: https://forums.taleworlds.com/index.php?threads/community-modding-documentation.397351/

In it, there's a section on making a simple C# mod: https://docs.bannerlordmodding.com/_tutorials/basic-csharp-mod

As for the dlls themselves, I think they're files compiled in a language between C# and assembly with lots of metadata (allowing for variable names to be kept for example). I think Visual Studio is supposed to have extensions to decompile them into C# but I've had more luck using dotPeek or dnSpy (I'm liking the former better because it allows me to export a dll as a C# project in VS).

Once you've followed the guide you have an empty working mod the game can use. You can either use the API functions...
Check this guide out: https://forums.taleworlds.com/index.php?threads/community-modding-documentation.397351/

In it, there's a section on making a simple C# mod: https://docs.bannerlordmodding.com/_tutorials/basic-csharp-mod

As for the dlls themselves, I think they're files compiled in a language between C# and assembly with lots of metadata (allowing for variable names to be kept for example). I think Visual Studio is supposed to have extensions to decompile them into C# but I've had more luck using dotPeek or dnSpy (I'm liking the former better because it allows me to export a dll as a C# project in VS).

Once you've followed the guide you have an empty working mod the game can use. You can either use the API functions to modify the game's behaviour or patch core methods using Harmony. What I've been doing, to try and understand this, is decompiling mods from Nexus and this forum and tweaking them.

So far I've only managed simple things: make smithing energy regen outside of town (it's been done since), make the character party move faster. But with better and better mods coming out I hope we'll soon be able to go further (some people are already going much further).

If you have any questions, you can always go to the discord (https://discordapp.com/channels/411286129317249035/695263351726538853) where I've found people to be quite helpful.
 
点赞 0
解决方案
后退
顶部 底部