Closed dotRelith closed 1 year ago
When depending on mods with Mixins, you need to add special properties to your runs. Make sure you regen your runs.
runs {
client {
...
property 'mixin.env.disableRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
...
}
}
When I start the game, the client crashes and shows the following error message:
Crash Log
``` 23:39:06: Executing 'runClient'... > Task :runClient [...] [23:39:27] [Render thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID d34e3b49-8e75-414b-92b7-fdc4b80a3c63 [23:39:27] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:realStdoutPrintln:123]: ---- Minecraft Crash Report ---- // Hey, that tickles! Hehehe! Time: 21/01/23 23:39 Description: Initializing game org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] {} at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] {} at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] {} at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] {} at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) ~[modlauncher-8.1.3.jar:8.1.3+8.1.3+main-8.1.x.c94d18ec] {} at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-8.1.3.jar:?] {} at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-8.1.3.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) ~[modlauncher-8.1.3.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) ~[modlauncher-8.1.3.jar:?] {re:classloading} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.1.3.jar:?] {re:classloading} at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_362] {} at net.minecraft.client.renderer.RenderType.I have also included my build.gradle file for reference:
build.gradle
``` buildscript { repositories { maven { url = 'https://maven.minecraftforge.net' } mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' group = 'floris0106' version = '1.2.1' java { archivesBaseName = 'rereskillablerereforked' toolchain.languageVersion = JavaLanguageVersion.of(8) } minecraft { mappings channel: 'official', version: '1.16.5' // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') runs { client { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { rereskillablerereforked { source sourceSets.main } } } server { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' mods { rereskillablerereforked { source sourceSets.main } } } } } sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { maven { url = 'https://maven.theillusivec4.top/' } maven { url = 'https://cursemaven.com/' } } dependencies { //minecraft 'net.minecraftforge:forge:1.16.5-36.2.4' minecraft 'net.minecraftforge:forge:1.16.5-36.2.39' runtimeOnly fg.deobf("curse.maven:obfuscate-289380:3740120") //implementation fg.deobf("curse.maven:sorceryfight-471288:3786954") //implementation fg.deobf("curse.maven:jujutsu-animation-568157:3680457") runtimeOnly fg.deobf('top.theillusivec4.curios:curios-forge:1.16.5-4.0.5.3') compileOnly fg.deobf('top.theillusivec4.curios:curios-forge:1.16.5-4.0.5.3:api') } jar { manifest { attributes([ "Specification-Title" : "rereskillablerereforked", "Specification-Vendor" : "Floris0106", "Specification-Version" : "1", "Implementation-Title" : project.name, "Implementation-Version" : project.jar.archiveVersion, "Implementation-Vendor" : "Floris0106", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } jar.finalizedBy('reobfJar') ```I am wondering if this issue is related to the way I integrated your library. Please let me know if there is any additional information you need in order to assist me with resolving this problem.