VulkanMod icon indicating copy to clipboard operation
VulkanMod copied to clipboard

Incompatibility w/ GameRenderer

Open lowercasebtw opened this issue 10 months ago • 7 comments

Describe the bug

Hi, I make a mod named Animatium and noticed it crashes with VulkanMod and tried to fix it but it turns out VulkanMod uses @Overwrite on the method I modify which makes it impossible to fix from my side

File: https://github.com/xCollateral/VulkanMod/blob/dev/src/main/java/net/vulkanmod/mixin/render/GameRendererMixin.java

Instead this should be a Redirect on the Math#max call inside the method or a Inject at head to redirect the return value or a WrapMethod call

Steps to reproduce

Download https://modrinth.com/mod/animatium/ Download VulkanMod

Launch Game

Log files

https://mclo.gs/lOjo08c

lowercasebtw avatar Jan 14 '26 03:01 lowercasebtw

It would be greatly appreciated if this could be fixed

lowercasebtw avatar Jan 14 '26 03:01 lowercasebtw

@lowercasebtw I think it would be better to ask this on discord since collateral is mostly active there. And I think I saw you on vulkanmod discord

Versatile-One avatar Jan 16 '26 08:01 Versatile-One

@lowercasebtw I think you can still use @WrapOperation or @WrapMethod on even the overwritten methods

amiralimollaei avatar Feb 17 '26 16:02 amiralimollaei

I do not want to overwrite or wrap the entire method, I just wanted to change one value inside the method, wrap operation won't work cause the math.min call doesn't exist in Vulkan overwrite code

lowercasebtw avatar Feb 17 '26 17:02 lowercasebtw

Wasn't this already fixed? I can launch vulkanmod 0.5.9 with animatium 3.0 and it just works, maybe I changed some animatium setting that makes it work but in vulkanmod 0.5.8 it crashed with the same settings so it seems like it's not because of the animatium settings I changed.

PhantomBridger avatar Feb 18 '26 15:02 PhantomBridger

Maybe they've changed or fixed it, haven't checked but either way it'll be fixed even for 0.5.8 in animatium 3.1 cause I removed the setting I was modifying that was colliding with Vulkan

lowercasebtw avatar Feb 18 '26 16:02 lowercasebtw

Maybe they've changed or fixed it, haven't checked but either way it'll be fixed even for 0.5.8 in animatium 3.1 cause I removed the setting I was modifying that was colliding with Vulkan

Then I guess this can be closed now

Versatile-One avatar Jun 04 '26 08:06 Versatile-One