-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EpicLoot 0.7.6] crash when attacking deer #137
Comments
Crash was introduced with a16a4c2. Will try to figure it out and submit PR if that's ok. |
👍 |
After a bit of testing/debugging have found culprit here:
If I remove dnSpy shows // Character
// Token: 0x06000041 RID: 65 RVA: 0x000027E0 File Offset: 0x000009E0
protected virtual void OnDamaged(HitData hit)
{
} and // Humanoid
// Token: 0x06000115 RID: 277 RVA: 0x000084B5 File Offset: 0x000066B5
protected override void OnDamaged(HitData hit)
{
this.SetCrouch(false);
} It seems that Humanoid.OnDamaged() patch is not causing crashes. Any ideas? I have like zero experience with C#, Harmony, Mono and co. Will try to google some more and maybe try using |
Thanks so much, awesome code-sleuthing! You could patch the method that calls OnDamaged? |
@maxrd2 This should be fixed since I merged your change. It will go out in the next release, but since I don't have access to a linux box, could you test it? |
I can test this out when I get home. I've got a deer trapped in my fortress, that I've been able to consistently crash the game with. |
Sorry for the stupid question but I'd love to help out and test this as well on my box - how does one assemble the dll/json formats from the cs and folders... |
I've compiled it with free Visual Studio on windows virtual machine, so am not sure how to do it on Mac/Linux. This one is C# not C++ |
Just tried and can confirm that issue is solved on main branch now |
Looking forward to trying this with the next release. Realized a bit late I don't have the tools easily available to compile it myself. :) |
By any chance, could you compile and upload the complete package, please? If you can't or don't want to thats fine. But Im excited about the adventuring and want to try it out! |
@SuntooX The release version is available here: https://www.nexusmods.com/valheim/mods/387 |
You are fantastic and my day is made. Thank you <3 |
Crash is happening on Linux version of the game.
Without Epic Loot mod crash isn't happening. Tested without other mods installed.
Steps to reproduce:
Here's the stack trace from Player.log.
Player.log
The text was updated successfully, but these errors were encountered: