FxMorin / RailOptimization

A simple mod that makes powered/activator rails turning on/off up to 4x faster
13 stars 5 forks source link

Quilt Crash #4

Open jacklollz2 opened 1 year ago

jacklollz2 commented 1 year ago
org.quiltmc.loader.impl.FormattedException: java.lang.RuntimeException: Mixin transformation of ca.fxco.RailOptimization.mixin.PoweredRailBlockInvoker failed
    at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:512)
    at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:82)
    at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)
Caused by: java.lang.RuntimeException: Mixin transformation of ca.fxco.RailOptimization.mixin.PoweredRailBlockInvoker failed
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:555)
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:301)
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClassOnly(KnotClassDelegate.java:164)
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:150)
    at org.quiltmc.loader.impl.launch.knot.KnotClassLoader$Separate.loadClass(KnotClassLoader.java:378)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
    at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
    at org.quiltmc.loader.impl.launch.knot.KnotClassLoader$Separate.defineClassFwd(KnotClassLoader.java:395)
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:386)
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClassOnly(KnotClassDelegate.java:164)
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:150)
    at org.quiltmc.loader.impl.launch.knot.KnotClassLoader$Separate.loadClass(KnotClassLoader.java:378)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at net.minecraft.class_2358.method_10199(class_2358.java:325)
    at net.minecraft.class_2966.method_12851(class_2966.java:46)
    at net.minecraft.client.main.Main.method_44604(Main.java:161)
    at net.minecraft.client.main.Main.main(Main.java:51)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:510)
    ... 8 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.IllegalClassLoadError: ca.fxco.RailOptimization.mixin.PoweredRailBlockInvoker is in a defined mixin package ca.fxco.RailOptimization.mixin.* owned by #rail_optimization:rail_optimization-common.mixins.json and cannot be referenced directly
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:334)
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234)
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
    at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:550)
    ... 29 more
youngchief-btw commented 1 year ago

It appears that the PoweredRailBlockInvoker mixin is failing to apply. It's probably from a miswritten injection. I've gotten the same issue also. Seems like this mod is still at a highly experimental stage of development. Last update was 3 weeks ago it appears. @fxmorin is also very busy with other mods like Memory Leak Fix, MoreCulling, etc (I assume). I suggest waiting in the meantime, the mod looks promising from what I am looking at in the code. Sadly, I'm too busy to fix the code in question for the time being.

FxMorin commented 1 year ago

It's not experimental. This has been in carpet-fixes for a while before I moved it to a separate mod. However 1.19.3 might have some issues, also it's now using architectury. Your right tho, I'm really busy with my other mods and my job

youngchief-btw commented 1 year ago

Great! Thanks for the update and clarification.

FxMorin commented 1 year ago

As I was accepting coco875's changes. I noticed that the PoweredRailBlockInvoker interface is in the mixin directory although its not a mixin. Quilt might not like that, so the fix is probably to move that out of the mixin dir. I'm not currently home but once I am, ill try moving that out