LlamaLad7 / MixinExtras

Companion library to SpongePowered Mixin with many custom injectors for a more expressive experience.
MIT License
293 stars 16 forks source link

add initializing string to mod #38

Closed swapmasterx closed 11 months ago

swapmasterx commented 11 months ago

New to modding so apologies if its an obvious one. How and where do I put the "MixinExtrasBootstrap.init();" string? The tutorial doesn't say where the file to place it in is at or how it goes in

swapmasterx commented 11 months ago

I've just been having a hair pulling time getting all the dependencies working and I've just reached a point where I am at loss on what to do. MC version 1.19.2

build.gradle.txt Gradle build error.txt Error log from launching current build

LlamaLad7 commented 11 months ago

As mentioned in the README you need to initialize it in a preLaunch entrypoint. The easiest way to do that is by a method reference:

"preLaunch": ["com.llamalad7.mixinextras.MixinExtrasBootstrap::init"]

in the entrypoints block of your fabric mod json. The docs could probably be clearer but in the next release you won't need to initialize it yourself anyway.

swapmasterx commented 11 months ago

Now I'm confused because that's what I tried before and I still got a crash even when putting it in all three fabric.mod.json's.

LlamaLad7 commented 11 months ago

Show the crash then

swapmasterx commented 11 months ago

Sorry for the wait, a Java process sometimes keeps mapping.jar open preventing Gradle from compiling so I have to dance with task manager some to fix it. error.txt

LlamaLad7 commented 11 months ago

That's unrelated to MixinExtras and is caused by you having multiple versions of fabric-loader on the classpath. See this message from the fabric discord.

swapmasterx commented 11 months ago

Ok fingers crossed this works.

swapmasterx commented 11 months ago

IT FINALLY WORKS!!!! Thank you so much!!!! I CAN FINALLY MOD! :D