Raised

Raised

4M Downloads

Causes a crash during launch on Fabric 1.20.4 alongside Auto HUD

LessThanBenji opened this issue ยท 6 comments

commented

Raised version 4.0.0 on Fabric 0.15.11 on Minecraft 1.20.4 causes the game to crash during the final stages of launch when it's loaded alongside Auto HUD version 6.6.3.

Rolling back to Raised version 3.1.3 resolves this issue.

The mod author of Auto HUD is aware of this in Crendgrim/AutoHUD#125, just thought I'd put something here in case anyone else was confused experiencing the same issue.

The crash report is attached.

crash-2024-08-10_23.15.29-client.txt

commented

Ah, Object Share support was removed on version 4.x because of the complexity of the update and because a new API was released for it to replace it. This mod was using that Object Share support, but those objects no longer exist.

commented

Will they ever be compatible?

commented

unfortunately this is the newest version there is for 1.20.1
Screenshot_2

commented

I see that AutoHUD added a nullcheck so it should no longer crash. But the hotbar itemstacks are doubling up their position translation.

Anyways, here is a little mixin replacing AutoHUD's compat class with one that uses Raised's API. I am not sure why this is happening or why this fixes it, but you can use this until that is resolved. Raised for 21.2/3 should be out this weekend, btw.

libs.zip

commented

It still crashes for me tho

The game crashed whilst unexpected error
Error: java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "net.fabricmc.loader.api.ObjectShare.get(String)" is null

https://mclo.gs/L5uNsKQ

commented

Well you would have to use a newer version of AutoHUD that has the null check for the object or an older version of Raised that has the object. That would be Raised 3.x. The crash will occur until you use one of those. This object no longer exists in Raised 4.x, hence the crash.