Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

84 个评价
Harmony v1.0.0 - v1.2.12
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
5.467 MB
11 月 27 日 上午 11:08
1 项改动说明 ( 查看 )

订阅以下载
Harmony v1.0.0 - v1.2.12

描述
For the Early Access version please visit this!

A library for patching, replacing and decorating .NET and Mono methods during runtime. Intended to ensure that all mods in a player's modlist are using the latest version of Harmony to minimize conflicts. We also added a Debug UI! Available via CTRL+ALT+H.

Notes
This is an unofficial distribution of the Harmony[github.com] library maintained by the community to have an easier way to manage external library dependencies.
The repository of the mod - Bannerlord.Harmony[github.com].

Installation
This module should be the highest in loading order. Any other module that requires to be set at the top (Better Exception Window, ButterLib, MCM, etc.) should be loaded after this mod.

For Players
This mod is intended to ensure that all mods in a player's modlist are using the latest version of Harmony to minimize conflicts.

For Modders
We added a Debug UI! Available via CTRL+ALT+H.

You still need to reference Harmony as a NuGet package, it is not required to include 0Harmony.dll in the final /bin output of your module.
You do need to add this to your SubModule.xml
<DependedModules> <DependedModule Id="Bannerlord.Harmony" /> </DependedModules>
This way the game will ensure that the Harmony library is loaded before your mod.

Versioning
The Module combines the Harmony version used and the Build Id that published the Module. The Build Id is simply added to the end.
2.0.2.22 indicates that Harmony 2.0.2.0 is used and 22 is the Build Id.
2.0.0.1025 indicates that Harmony 2.0.0.10 is used and 25 is the Build Id.

We considered using the Rimworld approach with introducing our own version system, but it won't give a clear way to detect which Harmony version the Module contains. It's easier for the user to report the version of the Module used than to check the assembly version/send it.

Troubleshooting
  • Steam is not always updating all mods. We suggest to manually resubscribe to Harmony if you experience crashes!
  • Check that the Modules folder (C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\Modules) does not contain a Bannerlord.Harmony folder!
  • If the game crashes on start, might have used Fixed Launcher. When installed, it copies 0Harmony.dll which prevents Bannerlord.Harmony from working.
  • If Fixed Launcher was uninstalled or never installed, check that the following files are not in the game's main /bin folder (Mount & Blade II Bannerlord\bin\Win64_Shipping_Client)
    • TaleWorlds.MountAndBlade.Launcher.exe.config (if BUTRLoader was installed, reinstall it after)
    • 0Harmony.dll
    • LauncherPatcher.dll
    • LauncherPatcher.pdb

About
Harmony gives you an elegant and high level way to alter the functionality in applications written in C#. It works great in games and is well established in titles like 7 Days To Die, BattleTech, Besiege, Cities:Skylines, Kerbal Space Program, Oxygen Not Included, Ravenfield, Rimworld, Sheltered, Stardew Valley, Staxel, Subnautica, The Ultimate Nerd Game, Total Miner, Unturned and many more.

It is also used in unit testing WFP controls and in many other areas.

How it works
If you develop in C# and your code is loaded as a module/plugin into a host application, you can use Harmony to alter the functionality of all the available assemblies of that application. Where other patch libraries simply allow you to replace the original method, Harmony goes one step further and gives you:
  • A way to keep the original method intact
  • Execute your code before and/or after the original method
  • Modify the original with IL code processors
  • Multiple Harmony patches co-exist and don't conflict with each other
  • Works at runtime and does not touch any files

Documentation
Please check out the documentation[harmony.pardeike.net].

Contribute
pardeike put thousands of hours into this project and its support. So every little action helps:
• Upvote this stackoverflow answer[stackoverflow.com]
• Spread the word in your developer communities
• Become a GitHub sponsor[github.com] or a Patreon[www.patreon.com]

This project uses the great MonoMod.Common[github.com] library by 0x0ade[github.com].
11 条留言
Spons1611 12 月 5 日 下午 12:27 
works for me on the last update, aslong there is no other Harmony's
Tak 12 月 1 日 上午 7:07 
this mod crash ur game beware on latest version
orod 11 月 29 日 下午 1:09 
guys I found it, if you had to upgrade the core game by steam to version 1.3.8.103102 all the 4 main essential mod with their last version as I see in vortex (harmony:2.4.2224 , Butterlib: v2.10.2 , UIExtender:v2.13.2 , MCMv5 : v5.11.13) are not works with updated game, because all are works with earlier core game like 1.3.6.x
Capn' Redbeard 11 月 29 日 上午 10:04 
I FIGURED IT OUT - THIS VERSION WAS STILL CRASHING MY GAME.
It turns out: it is how this version of Harmony interacts with the UPDATED Versions of UI Extender/Butterlib, etc.
IF YOU ARE PLAYING THE OLD REALMS - turn off UI extender and butterlib. Got my save running.
PaLLee 11 月 29 日 上午 9:11 
:steamthumbsdown: Why does harmony not work with shi anymore
IMP. CAES. DIVI F. AVG 11 月 29 日 上午 8:34 
@VorzsTTV the older versions of harmony can be downloaded on nexus
FisterKill 11 月 29 日 上午 6:06 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
VorzsTTV 11 月 28 日 下午 1:35 
Naw, you right this dude ruined all the mods for older versions this morning by not just uploading a new mod for the newest version of the game. 2 100+ hours saves just toasted because he cant wait until the devs fix a few things with the new ♥♥♥♥ DLC. gotta screw everyone enjoying the game already. Mod Config is more then likely what is causing it and this mod tho. Nothing will work now work the whole game. Had to uninstall and still wont work most likely. What a waste of time to play with mods again just to be trolled again.
daltonmarlin 11 月 28 日 下午 12:39 
naver mind it's just the mods it will say no workshop there that it
daltonmarlin 11 月 28 日 下午 12:32 
it works but getting a game going it will not work