LordCorDox Posted April 4, 2020 Share Posted April 4, 2020 (edited) It seems for a minority of users including myself, mods that contain 0Harmony.dll cause the game to crash before the main menu appears. Every mod that doesn't use Harmony works for me. There is no option to "unblock" dlls, running admin doesn't help and running these mods without other mods does not work. It's not an issue with missing lines in an xml file. I suspect there is a hardware compatibility issue with Harmony itself, I wouldn't be surprised if it was a CPU with more than the usual amount of Cores causing the issue. Are there any developers more intimately familiar with Harmony? So far no one including Harmony in their mods has been able to to troubleshoot the issue. EDIT: Possible Fix that worked for me. Put 0Harmony.dll into your main bannerlord\bin\win64_shipping_client folder and delete it from the mod folder. Thanks to brandonm37211 who created the Tournament XP Enabler. Here are my system Specs:Dual Xeon E5 2699 V3128GB DDR4Nvidia GTX Titan(old Maxwell chipset)Windows 10 x64 Edited April 5, 2020 by LordCorDox Link to comment Share on other sites More sharing options...
GytisKing Posted April 5, 2020 Share Posted April 5, 2020 Have the same problem, everything exactly as you said, anyone has any solutions? Link to comment Share on other sites More sharing options...
LordCorDox Posted April 5, 2020 Author Share Posted April 5, 2020 Have the same problem, everything exactly as you said, anyone has any solutions?Out of curiosity, what are your system specs? Link to comment Share on other sites More sharing options...
FlayaN Posted April 5, 2020 Share Posted April 5, 2020 Have the same problem, everything exactly as you said, anyone has any solutions?Out of curiosity, what are your system specs? Could you also post your system specs? I would like to know more about this so I can give a better answer to people that can't use my mod. Link to comment Share on other sites More sharing options...
LordCorDox Posted April 5, 2020 Author Share Posted April 5, 2020 Have the same problem, everything exactly as you said, anyone has any solutions?Out of curiosity, what are your system specs? Could you also post your system specs? I would like to know more about this so I can give a better answer to people that can't use my mod. Edited the top post with my specs. I also spoke with the developer of Harmony. I'll quote what he said: "I know for sure that patching with Harmony has its limits and you can crash the process if you patch the wrong method. Also, inlining will prevent you from patching certain methods and there is nothing you can do about it.The whole technique to patch methods at runtime is far from bullet proof. But its the best you can get afaik. Specifically, methods in System and those inheriting from special classes like MarshalByRefObject and others designed for remoting are dangerous to patch so: if it works, great. If it doesn’t, there isn’t much you can do." Link to comment Share on other sites More sharing options...
FlayaN Posted April 5, 2020 Share Posted April 5, 2020 Ok, thanks for the info. Yeah this sucks, tried to make my mod work without patching but there was nothing good I could jack into in this case. I'm patching a ViewModel, so that shouldn't be such a volatile case. So you can't use a single mod that uses Harmony? Is there a Harmony basic example that you can test?This like you said could be an issue with Harmony and a specific set of system specs.. Wanna minimize the issue :O Link to comment Share on other sites More sharing options...
LordCorDox Posted April 5, 2020 Author Share Posted April 5, 2020 Correct, not a single mod using Harmony worked. However brandonm37211 who created the Tournament XP Enabler just provided me with a solution that finally fixed it for me. Put 0Harmony.dll into your main bannerlord\bin\win64_shipping_client folder and delete it from the mod folder. Not sure why that would work but it does. Ok, thanks for the info. Yeah this sucks, tried to make my mod work without patching but there was nothing good I could jack into in this case. I'm patching a ViewModel, so that shouldn't be such a volatile case. So you can't use a single mod that uses Harmony? Is there a Harmony basic example that you can test?This like you said could be an issue with Harmony and a specific set of system specs.. Wanna minimize the issue :O Link to comment Share on other sites More sharing options...
FlayaN Posted April 5, 2020 Share Posted April 5, 2020 Hmm interesting.. Do you mind testing out my mod with that solution? https://www.nexusmods.com/mountandblade2bannerlord/mods/169 Just curious.. Correct, not a single mod using Harmony worked. However brandonm37211 who created the Tournament XP Enabler just provided me with a solution that finally fixed it for me. Put 0Harmony.dll into your main bannerlord\bin\win64_shipping_client folder and delete it from the mod folder. Not sure why that would work but it does. Ok, thanks for the info. Yeah this sucks, tried to make my mod work without patching but there was nothing good I could jack into in this case. I'm patching a ViewModel, so that shouldn't be such a volatile case. So you can't use a single mod that uses Harmony? Is there a Harmony basic example that you can test?This like you said could be an issue with Harmony and a specific set of system specs.. Wanna minimize the issue :O Link to comment Share on other sites More sharing options...
LordCorDox Posted April 6, 2020 Author Share Posted April 6, 2020 Works fine! Your mod is one I actually wanted to use too! But yeah, earlier I tested 8 different mods all using Harmony that resulted in the same crash.. Now they all seem to be working for me. Hmm interesting.. Do you mind testing out my mod with that solution? https://www.nexusmods.com/mountandblade2bannerlord/mods/169 Just curious.. Correct, not a single mod using Harmony worked. However brandonm37211 who created the Tournament XP Enabler just provided me with a solution that finally fixed it for me. Put 0Harmony.dll into your main bannerlord\bin\win64_shipping_client folder and delete it from the mod folder. Not sure why that would work but it does. Ok, thanks for the info. Yeah this sucks, tried to make my mod work without patching but there was nothing good I could jack into in this case. I'm patching a ViewModel, so that shouldn't be such a volatile case. So you can't use a single mod that uses Harmony? Is there a Harmony basic example that you can test?This like you said could be an issue with Harmony and a specific set of system specs.. Wanna minimize the issue :O Link to comment Share on other sites More sharing options...
FlayaN Posted April 6, 2020 Share Posted April 6, 2020 Cool! Thanks :=) Maybe we need like a Harmony mod that all mods that use Harmony depend on that puts it in that dir instead then.. Need some testing :) Works fine! Your mod is one I actually wanted to use too! But yeah, earlier I tested 8 different mods all using Harmony that resulted in the same crash.. Now they all seem to be working for me. Hmm interesting.. Do you mind testing out my mod with that solution? https://www.nexusmods.com/mountandblade2bannerlord/mods/169 Just curious.. Correct, not a single mod using Harmony worked. However brandonm37211 who created the Tournament XP Enabler just provided me with a solution that finally fixed it for me. Put 0Harmony.dll into your main bannerlord\bin\win64_shipping_client folder and delete it from the mod folder. Not sure why that would work but it does. Ok, thanks for the info. Yeah this sucks, tried to make my mod work without patching but there was nothing good I could jack into in this case. I'm patching a ViewModel, so that shouldn't be such a volatile case. So you can't use a single mod that uses Harmony? Is there a Harmony basic example that you can test?This like you said could be an issue with Harmony and a specific set of system specs.. Wanna minimize the issue :O Link to comment Share on other sites More sharing options...
Recommended Posts