Posted December 2, 20204 yr I am trying to get my code to load. But every time it exits with code 1 and there is an exception in "main." I am new to Java and I could not find the problem, so I went and looked at what other people had to say. I also read through my errors and couldn't detect the problem. I know that with an exception in the main thread the code will shut down, but I could not find the main thread. Please help. I only pasted from where the exceptions started [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.loading.moddiscovery.InvalidModFileException: Missing ModLoader version in file [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.lambda$new$1(ModFileInfo.java:58) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.Optional.orElseThrow(Optional.java:290) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.<init>(ModFileInfo.java:58) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.loadModFile(ModFileParser.java:59) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.readModList(ModFileParser.java:51) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.moddiscovery.ModFile.identifyMods(ModFile.java:132) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:116) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:211) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.loading.FMLServiceProvider.runScan(FMLServiceProvider.java:105) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:111) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:115) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:269) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1628) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:116) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:63) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [13:09:44] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:102) Exception in thread "main" Process finished with exit code 1
December 2, 20204 yr Author Thanks, I found the modLoader, but it just says: modLoader="javafml" #mandatory I am unsure what I need to change javafml to. I am using forge 31.2.0 if that helps. Edited December 2, 20204 yr by GamingTiger101
December 2, 20204 yr Show your whole mods.toml file Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
December 2, 20204 yr Author modLoader="javafml" #mandatory [[mods]] #mandatory modId="gttoolsandarmor" #mandatory version="1.0.0.0" #mandatory displayName="GamingTiger's Crazy Tools and Armor" #mandatory updateJSONURL="http://myurl.me/" #optional displayURL="http://example.com/" #optional logoFile="examplemod.png" #optional credits="Thanks to TechnoVision for walking me through this mod" #optional authors="GamingTiger" #optional description=''' Enjoy plenty of new armor and weapons built off of the vanilla ores and loot. ''' [[dependencies.gttoolsandarmor]] #optional modId="forge" #mandatory mandatory=true #mandatory versionRange="[31,)" #mandatory ordering="NONE" side="BOTH" [[dependencies.gttoolsandarmor]] modId="minecraft" mandatory=true versionRange="[1.15.2]" ordering="NONE" side="BOTH"
December 2, 20204 yr You miss the loader version line, it appears like this: loaderVersion="[version-number,)" #mandatory where version-number is your forge version, 31 in your case Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
December 2, 20204 yr Author Thanks so much. I guess when I downloaded the forge mdk it didn't download that line of code or maybe I deleted it by accident(very possible)
December 2, 20204 yr You most certainly deleted it when clearing the comment lines in the file Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.