Improved Mobs (Forge)

Improved Mobs (Forge)

8M Downloads

Random Crashing - Can't Load Back Into World

tystys800 opened this issue ยท 4 comments

commented

Modloader

Forge

Minecraft version

1.18.2

Modloader version

Forge 40.2.0

Mod version

improvedmobs-1.18.2-1.11.0-forge

TenshiLib version

tenshilib-1.18.2-1.6.14-forge

Description

The game suddenly crashes and it keeps crashing every time I load back into the world. I actually get to load some of the world, but I think it crashes when it tries to load a certain mob that's modified by Improved Mobs.

It happened on Improved Mobs difficulty 3-4, and it happened on high difficulty around 999999999 give or take a few nines. I was thinking it may be a certain feature of the mod clashing with another mod, and maybe I would be able to just disable that feature in the config file, but I don't know what is causing it to crash in the first place.

All I know is that if I remove Improved Mobs then I can load back into the world. I re-added Improved Mobs afterwards and it worked again for a while, but then it crashed again same issue.

Me and my friend love your mod btw, thank you for making it.

Steps to reproduce

  1. Step one
    World is on hard difficulty and it seems to happen randomly when monsters spawn. So far I've only had it happen 2 times and both at night time.

So I guess be in a normal world in creative on hard difficulty at night, and just fly/walk around until it happens.

Mods that might affect the issue

I really don't know what mods are causing the problem, but after giving ChatGPT the crash log it seems like it has an idea.

ChatGPT - "This crash report is indicating that there is an issue with a mod called "Witherstormmod" and an entity called "FlyingSummonEntity" which is trying to be cast as a "Phantom" from the vanilla game. It seems like the issue is occurring when the entity is being ticked, specifically when the method "onEntityJoinWorld" from "InjectCustomGoalsEvents" class of the Witherstormmod mod is called.
The error message is "java.lang.ClassCastException: class io.github.flemmli97.improvedmobs.entities.FlyingSummonEntity cannot be cast to class net.minecraft.world.entity.monster.Phantom" which means that the class 'FlyingSummonEntity' is not a subclass of 'Phantom' so it can't be cast as one.
It seems that the problem is caused by a conflict between the Witherstormmod mod and another mod called "Improvedmobs" which is providing a custom FlyingSummonEntity class that is not compatible with Witherstormmod's code.
It would be best to check for compatibility between the two mods and if there is no compatibility, either update the Witherstormmod mod or remove Improvedmobs mod."

In the log from the second crash it says the "Entity being ticked" is born_in_chaos_v1:wither_strider from the Born in Chaos mod. I don't think that matters much though since in the first crash the "Entity being ticked" was minecraft:skeleton.

Versions:
witherstormmod-1.18.2-2.1.1
born_in_chaos_1.18_1.9

Logs

If I messed something up with the Gist please let me know, it's my first time using it so I may have messed something up. I think it works though.

The first crash log called crash-2023-01-23_03.29.42-server.txt is for the first crash I had, the second called crash-2023-01-23_16.55.47-server.txt is for the second crash.

https://gist.github.com/tystys800/f565975056e1e083f93cbd54be7362f3

commented

I believe I can shed some light on this issue. I'm developing a private modpack with some friends that also includes this mod and Cracker's Wither Storm, and when updating Improved Mobs to the most recent version, mobs seem to cause a similar if not the same crash when their AI causes them to attempt to summon a flying mount. I don't believe Born In Chaos has anything to do with this crash, as we do not have it installed. The mod seems to work without issue as long as the mod version isn't above 1.10.15. Hope this helps!

commented

I believe I can shed some light on this issue. I'm developing a private modpack with some friends that also includes this mod and Cracker's Wither Storm, and when updating Improved Mobs to the most recent version, mobs seem to cause a similar if not the same crash when their AI causes them to attempt to summon a flying mount. I don't believe Born In Chaos has anything to do with this crash, as we do not have it installed. The mod seems to work without issue as long as the mod version isn't above 1.10.15. Hope this helps!

Disabling the flying mounts in the config file seems to have helped, haven't experienced a crash since. Thank you.

commented

I believe I can shed some light on this issue. I'm developing a private modpack with some friends that also includes this mod and Cracker's Wither Storm, and when updating Improved Mobs to the most recent version, mobs seem to cause a similar if not the same crash when their AI causes them to attempt to summon a flying mount. I don't believe Born In Chaos has anything to do with this crash, as we do not have it installed. The mod seems to work without issue as long as the mod version isn't above 1.10.15. Hope this helps!

Disabling the flying mounts in the config file seems to have helped, haven't experienced a crash since. Thank you.

Nice! Glad I could help! :)

commented

report to witherstorm mod. they should check the class (and not just the entity type) before casting