#Game crashes, ResourceLocation not found...

20 messages · Page 1 of 1 (latest)

maiden linden
#

a) bendy-lib 3.0.0 is for MC 1.19.3 and 1.19.4, use 2.1.2

b) This is not how you use lombok.

You don't need that to use playerAnimator
unresolved annotations in source is not a problem...

#

If you're new to modding, I advice using Fabric instead of Forge. (less hostile community, better documented wiki, better tools)

bronze echo
#

i've changed bendy lib to 2.1.2 and i removed lombok... it still doesn't work

maiden linden
#

Can you share a full log? (not just that line)

bronze echo
#

sure

maiden linden
# bronze echo

Forge is broken 🤣 ||really, use fabric||
So, that class should exists in MC, maybe forge remapper or something is broken
My forge dev environment is still setting up (way slower than fabric), I'll check it when it's done.
Can you share your build.gradle?

bronze echo
#

thx a lot for helping me

maiden linden
# bronze echo

So, I don't see any issue with your buildscript

  • Have you used getIntellijRuns?
  • Can you use net.minecraft.resources.ResourceLocation class in your main class? (new ResourceLocation("modid", "testid"));
bronze echo
#

yup, i used genIntellijRuns

#

i'm trying to use it in my main class rn

#

it works on my main class

maiden linden
#

That class should exists, probably forge toolchain is broken and it didn't generate that class...
I've tried using your buildscript, and it worked (no error), i have no idea what went wrong..

bronze echo
#

ok no pb, thx for helping !

maiden linden
#

I think, try --refresh-dependencies or using fabric (or architectury loom for forge builds)

bronze echo
#

well i fixed it...

#

don't know how

#

i just changed this : PlayerAnimationFactory.ANIMATION_DATA_FACTORY.registerFactory(new ResourceLocation(MODID, "animation"),42,PlayerAnimator::registerPlayerAnimation);

#

to : ResourceLocation resourceLocation = new ResourceLocation(MODID, "fr");
//Set the player construct callback. It can be a lambda function.
PlayerAnimationFactory.ANIMATION_DATA_FACTORY.registerFactory(resourceLocation,42,PlayerAnimator::registerPlayerAnimation);