Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12.2] Can't seem to start MC
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Kokkie

[1.12.2] Can't seem to start MC

By Kokkie, March 3, 2018 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Kokkie    55

Kokkie

Kokkie    55

  • Dragon Slayer
  • Kokkie
  • Forge Modder
  • 55
  • 796 posts
Posted March 3, 2018

Hey, I'm back :D

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?

  • Quote

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Share this post


Link to post
Share on other sites

Major Tuvok    0

Major Tuvok

Major Tuvok    0

  • Stone Miner
  • Major Tuvok
  • Members
  • 0
  • 62 posts
Posted March 3, 2018

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)?)

  • Quote

Share this post


Link to post
Share on other sites

Major Tuvok    0

Major Tuvok

Major Tuvok    0

  • Stone Miner
  • Major Tuvok
  • Members
  • 0
  • 62 posts
Posted March 3, 2018

ohhh

moment, If i recall correctly the mcmod info contains package information about your mod file...

soo....

  • Quote

Share this post


Link to post
Share on other sites

Major Tuvok    0

Major Tuvok

Major Tuvok    0

  • Stone Miner
  • Major Tuvok
  • Members
  • 0
  • 62 posts
Posted March 3, 2018 (edited)

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, 2018 by Major Tuvok
spelling mistakes
  • Quote

Share this post


Link to post
Share on other sites

Ugdhar    232

Ugdhar

Ugdhar    232

  • World Shaper
  • Ugdhar
  • Members
  • 232
  • 2215 posts
Posted March 3, 2018
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?

  • Quote

Share this post


Link to post
Share on other sites

Kokkie    55

Kokkie

Kokkie    55

  • Dragon Slayer
  • Kokkie
  • Forge Modder
  • 55
  • 796 posts
Posted March 3, 2018
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

  • Quote

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Share this post


Link to post
Share on other sites

Ugdhar    232

Ugdhar

Ugdhar    232

  • World Shaper
  • Ugdhar
  • Members
  • 232
  • 2215 posts
Posted March 3, 2018

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.

  • Quote

Share this post


Link to post
Share on other sites

Kokkie    55

Kokkie

Kokkie    55

  • Dragon Slayer
  • Kokkie
  • Forge Modder
  • 55
  • 796 posts
Posted March 17, 2018

I just downloaded the latest Java 8 JDK, downloaded the latest forge, ran gradlew setupDecompWorkspace eclipse and that's it

  • Quote

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      The game crashed whilst rendering overlay

      By diesieben07 · Posted 50 minutes ago

      In the future please make your own thread instead of posting in an old, unrelated thread.   Delete this file.
    • FactionsFire
      Exit code 0 Sorry for inconvenience

      By FactionsFire · Posted 52 minutes ago

      I am trying to lanuch 1.8.9 forge and i get "An unexpected issue happened and the game has crashed exit sorry for inconvenience exit code 0"" And this has happened for about a week. 
    • Merken
      The game crashed whilst rendering overlay

      By Merken · Posted 56 minutes ago

      The game crashed whilst rendering overlay Error: net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file forge-client.toml of type CLIENT for modid forge Exit Code: -1
    • Merken
      The game crashed whilst rendering overlay

      By Merken · Posted 1 hour ago

      The game crashed whilst rendering overlay Error: net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file forge-client.toml of type CLIENT for modid forge Exit Code: -1
    • diesieben07
      My game keeps crashing

      By diesieben07 · Posted 2 hours ago

      You do not. In the future please make your own thread instead of posting in some random thread that looks vaguely similar.   Your Optifine version is outdated and not listed as compatible with your version of Forge. Refer to the Optifine downloads page regarding compatibility with Forge.
  • Topics

    • Merken
      2
      The game crashed whilst rendering overlay

      By Merken
      Started 1 hour ago

    • FactionsFire
      0
      Exit code 0 Sorry for inconvenience

      By FactionsFire
      Started 52 minutes ago

    • seekR4621
      1
      My game keeps crashing

      By seekR4621
      Started 2 hours ago

    • NorthWestWind
      2
      [1.16.x] Stop Held Item blobbing in Hand

      By NorthWestWind
      Started 3 hours ago

    • ehbean
      1
      1.16.x Custom Furnace/Brewing Stand

      By ehbean
      Started 11 hours ago

  • Who's Online (See full list)

    • diesieben07
    • Ginge
    • Differentiation
    • Luis_ST
    • Ghost0nLinéaire
    • charlie121kkt
    • FactionsFire
    • Nanook
    • GermanBucket
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.12.2] Can't seem to start MC
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community