[1.8.9] Mod not loading when used in conjunction with Liteloader


#1

Hi, so since my last thread I’ve managed to complete my Forge mod and export it to Minecraft, where it works perfectly in conjunction with Forge. However, when I attempt to incorporate Liteloader into my Forge setup, the mod I have made doesn’t work at all - I mean there’s no error message, Minecraft loads just fine - there is just no indicator that the mod has been loaded. I’ve tried it with other Forge mods but they all seem to work perfectly. When I remove the Liteloader jar from my /mods/ folder, the mod works normally again. Is there anything I can do to fix this?

Since there’s no error message I’ll post my MANIFEST.MF and see if anyone can discern what’s going wrong here:

Manifest-Version: 1.0
TweakOrder: 0
MixinConfigs: mixins.mcwrapper.json
FMLCorePluginContainsFMLMod: me.jamie.destiny.mixin.MixinLoader
FMLAT: destiny_at.cfg
tweakClass: org.spongepowered.asm.launch.MixinTweaker

Any help would be greatly appreciated.


#2

Check that both your mod and LiteLoader are using the latest version of Mixin. If a mod with an older version of Mixin loads before a mod with a newer version, the newer mod breaks.


#3

Right, so I’ve followed this post by Mumfrey [https://github.com/SpongePowered/Mixin/issues/197], and placed this in the JVM arguments in the Minecraft launcher:

-Dmixin.env.compatLevel=JAVA_8

However, when I do this the game crashes and produces this error:

 [17:13:03] [main/FATAL]: Mixin failed applying mixins.mcwrapper.json:MixinMinecraft -> net.minecraft.client.Minecraft: org.spongepowered.asm.mixin.transformer.InvalidMixinException Unexpecteded error whilst applying the mixin class
    org.spongepowered.asm.mixin.transformer.InvalidMixinException: Unexpecteded error whilst applying the mixin class
    	at org.spongepowered.asm.mixin.transformer.MixinApplicator.apply(MixinApplicator.java:230) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:174) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.apply(MixinTransformer.java:665) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.applyMixins(MixinTransformer.java:635) [liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transform(MixinTransformer.java:442) [liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer$Proxy.transform(MixinTransformer.java:109) [liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) [launchwrapper-1.12.jar:?]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [?:1.8.0_25]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_25]
    	at net.minecraft.client.main.Main.main(SourceFile:41) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
    	at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
    	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation(InjectionInfo.java:162) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.<init>(InjectionInfo.java:148) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.injection.struct.CallbackInjectionInfo.<init>(CallbackInjectionInfo.java:42) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.parse(InjectionInfo.java:411) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:927) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinApplicator.prepareInjections(MixinApplicator.java:761) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinApplicator.applyMixin(MixinApplicator.java:251) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinApplicator.apply(MixinApplicator.java:220) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	... 16 more
    [17:13:03] [main/ERROR]: Unable to launch
    java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
    	at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
    	at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
    	... 6 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_25]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_25]
    	at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
    	... 6 more
    Caused by: org.spongepowered.asm.mixin.MixinApplyError: Mixin [mixins.mcwrapper.json:MixinMinecraft] from phase [DEFAULT] in config [mixins.mcwrapper.json] FAILED
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.handleMixinErrorState(MixinTransformer.java:703) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transform(MixinTransformer.java:448) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer$Proxy.transform(MixinTransformer.java:109) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_25]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_25]
    	at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
    	... 6 more
    Caused by: org.spongepowered.asm.mixin.transformer.InvalidMixinException: Unexpecteded error whilst applying the mixin class
    	at org.spongepowered.asm.mixin.transformer.MixinApplicator.apply(MixinApplicator.java:230) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:174) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.apply(MixinTransformer.java:665) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.applyMixins(MixinTransformer.java:635) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transform(MixinTransformer.java:442) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at org.spongepowered.asm.mixin.transformer.MixinTransformer$Proxy.transform(MixinTransformer.java:109) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
    	at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_25]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_25]
	at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
	... 6 more
Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation(InjectionInfo.java:162) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.<init>(InjectionInfo.java:148) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.injection.struct.CallbackInjectionInfo.<init>(CallbackInjectionInfo.java:42) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.parse(InjectionInfo.java:411) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:927) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinApplicator.prepareInjections(MixinApplicator.java:761) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinApplicator.applyMixin(MixinApplicator.java:251) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinApplicator.apply(MixinApplicator.java:220) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:174) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.apply(MixinTransformer.java:665) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.applyMixins(MixinTransformer.java:635) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transform(MixinTransformer.java:442) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at org.spongepowered.asm.mixin.transformer.MixinTransformer$Proxy.transform(MixinTransformer.java:109) ~[liteloader-1.8.9-SNAPSHOT-release.jar:1.8.9-SNAPSHOT+unknown-b0.git-unknown]
	at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_25]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_25]
	at net.minecraft.client.main.Main.main(SourceFile:41) ~[Main.class:?]
	... 6 more
[17:13:03] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
[17:13:03] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:30)
[17:13:03] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[17:13:03] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Runtime.exit(Runtime.java:107)
[17:13:03] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.System.exit(System.java:968)
[17:13:03] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[17:13:03] [main/INFO]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Any idea how to fix this? I should stress that the mod works perfectly without the inclusion of Liteloader in the /mods/ folder.


#4

Could you post the full logs?