More Axolotl

More Axolotl

3M Downloads

Incompatible with MAVM

m0thknight opened this issue · 10 comments

commented

Game crashes when loading in a mavm axolotl. When I went to the issues page on mavm i found someone had already made a report of this and the owner of mavm said it was an incompatibility with more axolotls. heres my crash report:
crash-2023-03-07_12.22.46-client.txt
And heres the link to the issue being posted on mavm: AkashiiKun/MoreAxolotlVariantsMod-Common#20

commented

I have no idea. creator of mavm was the person who said it was caused by more axolotls. check the comments on the link i sent in my report.

commented

‏‎‍‌‌‏‏‏‌‏‏‌‎‍‎‌‌‏‍‏‍‏‍‌‏‌‏‏‏‍‍‍‍‎‍‌‎‍‌‎‌‎‏‌‏‌‍‏‏‏‏‌‏‍‍‌‏‍‏‎‌‎‏‏‏‎‌‍‍‌‎‍‌‌‎‎‍‎‍‍‎‍‌‍‏‌‍‎‍‌‎‌‎‎‌‌‍
image
This doesn't look like a incompability on my side tho

commented

What code part of my mod exactly is meant to cause this issue? I would like to have some more information about the specific problem

commented

What code part of my mod exactly is meant to cause this issue? I would like to have some more information about the specific problem

Basically i made an API that changes how variants are handled, you can check out how i do it here:
https://github.com/AkashiiKun/MoreAxolotlVariantsAPI-Common/blob/master/Fabric/src/main/java/io/github/akashiikun/mavapi/v1/impl/mixin/AxolotlEntityMixin.java

commented

Simply i did an API that handles how variants are registered. Instead of using a name, it uses an identifier to prevent different mods adding the same variant name. So, vanilla variants are registered as "minecraft:variantname", mods would register their own names as "namespace:variantname". The issue is that your mod injects at head the texture location method, so basically crashes with my mod due to making the return method on head.

https://github.com/AkashiiKun/MoreAxolotlVariantsAPI-Common/blob/8a15678453281dbbae58c6a5a9622db8f81a7174/Fabric/src/main/java/io/github/akashiikun/mavapi/v1/impl/mixin/AxolotlEntityRendererMixin.java#L43

Meanwhile i inject an tail. Clearly the incompatibility is on MoreAxolotls side.

commented

Also, pointing out, Modmuss (one of the fabric devs) highly recommended to not use the vanilla namespace for modded variants, reason why i made the API apart of preventing mod incompatibilities due of using the same variant name.

commented

Simply i did an API that handles how variants are registered. Instead of using a name, it uses an identifier to prevent different mods adding the same variant name. So, vanilla variants are registered as "minecraft:variantname", mods would register their own names as "namespace:variantname". The issue is that your mod injects at head the texture location method, so basically crashes with my mod due to making the return method on head.

https://github.com/AkashiiKun/MoreAxolotlVariantsAPI-Common/blob/8a15678453281dbbae58c6a5a9622db8f81a7174/Fabric/src/main/java/io/github/akashiikun/mavapi/v1/impl/mixin/AxolotlEntityRendererMixin.java#L43

Meanwhile i inject an tail. Clearly the incompatibility is on MoreAxolotls side.

Imma see what I can do there. I see that completely overwriting the texture as I do now does only create incompabilities. I will see that I only return a texture when I work with one of my axolotls.

I guess that means I will have to touch java and fabric again :/

commented

I am also experiencing this issue, I'd love to see the two best axolotl mods work together again but I understand it might require some rewriting. Thanks for all the hard work guys!

commented

So it should be fixed in the newest changes. I just checked if the axolotl is one of mine and only then set the texture. If that fixes it?

commented

Fixed in next release.