Posted March 3, 20187 yr Hey, I'm back So, I tried creating a mod agian after a looong time, but Minecraft just doesn't want to run. Here's my code (all I made so far): package com.Egietje.ChatFilter; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = "cf", name = "Chat Filter", version = "1.0") public class MainMod { @Instance("cf") public static MainMod instance; @EventHandler public void preInit(FMLPreInitializationEvent event) { } @EventHandler public void init(FMLInitializationEvent event) { } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } Here's the error: [15:48:27] [main/FATAL] [FML]: There is a severe problem with cf - it appears not to have constructed correctly [15:48:27] [main/ERROR] [FML]: Could not dispatch event: public void net.minecraftforge.fml.common.LoadController.propogateStateMessage(net.minecraftforge.fml.common.event.FMLEvent) to java.lang.NullPointerException [15:48:27] [main/FATAL] [FML]: Fatal errors were detected during PREINITIALIZATION. Loading cannot continue. [15:48:27] [main/FATAL] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:----- |:--------- |:------------ |:-------------------------------- |:--------- | | U | minecraft | 1.12.2 | minecraft.jar | None | | U | mcp | 9.42 | minecraft.jar | None | | U | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.2.2624.jar | None | | U | forge | 14.23.2.2624 | forgeSrc-1.12.2-14.23.2.2624.jar | None | | U | cf | 1.0 | bin | None | [15:48:27] [main/FATAL] [FML]: The following problems were captured during this phase [15:48:27] [main/ERROR] [FML]: Caught exception from cf (null) java.lang.RuntimeException: null at net.minecraftforge.fml.common.LoadController.buildModObjectList(LoadController.java:314) ~[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:250) [LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_162] at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[guava-21.0.jar:?] at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[guava-21.0.jar:?] at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[guava-21.0.jar:?] at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[guava-21.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[guava-21.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:602) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:270) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:513) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_162] 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:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_162] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_162] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Can I get some help please :P? Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
March 3, 20187 yr did you add a complete mcmod.info? maybe he's missing some crucial information? (I'm guessing here too... Maybe it works with the recommended version(2611)?)
March 3, 20187 yr ohhh moment, If i recall correctly the mcmod info contains package information about your mod file... soo....
March 3, 20187 yr ok, sry that was wrong... but apperently you are missing a proxy... although it should work anyway... sry, I'm a bit confused today https://shadowfacts.net/tutorials/forge-modding-112/main-mod-class/ (tutorial) https://mcforge.readthedocs.io/en/latest/gettingstarted/structuring/ (mcmod.info) Edited March 3, 20187 yr by Major Tuvok spelling mistakes
March 3, 20187 yr 1 minute ago, Major Tuvok said: but apperently you are missing a proxy... A proxy is not required for a mod to function. I have a mod that doesn't have a proxy, and it works fine. I would ask, how are you building/running the mod?
March 3, 20187 yr Author 56 minutes ago, Ugdhar said: I would ask, how are you building/running the mod? I'm just using the standard run button of Eclipse Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
March 3, 20187 yr I guess at this point explain the steps you followed to get everything setup, and make sure youi're running a java 8 JDK, and not java 9.
March 17, 20187 yr Author I just downloaded the latest Java 8 JDK, downloaded the latest forge, ran gradlew setupDecompWorkspace eclipse and that's it Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
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.