Jump to content

Recommended Posts

Posted

So I've been trying to get into modding minecraft, and so far my experiences have been utterly garbage.

Even though the game's source code looks like it has been put through a hashing algorithm 500 times, and that it is way too complex than what it should be-- I'm willing to learn.

After switching over to the forge API, I'm stuck on an issue where the client cannot load resource packs because the file passed in the function turns out to be null.

I have no idea what is causing this, nor am I patient enough to sit for hours trying to go from function to function of the unreadable nonsense.

So, the great forge modders of this forum, could you please suggest any solutions to this problem?

Logs:

java.lang.ExceptionInInitializerError
	at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:212)
	at net.minecraft.client.Minecraft.init(Minecraft.java:508)
	at net.minecraft.client.Minecraft.run(Minecraft.java:416)
	at net.minecraft.client.main.Main.main(Main.java:118)
Caused by: java.lang.NullPointerException
	at net.minecraftforge.fml.client.SplashProgress.createResourcePack(SplashProgress.java:726)
	at net.minecraftforge.fml.client.SplashProgress.<clinit>(SplashProgress.java:94)
	... 4 more

That log is created because of this function in the class SplashProgress:

private static IResourcePack createResourcePack(File file)
    {
        // This is where the exception is thrown,
        // the file passed in as the parameter is
        // null.
        if(file.isDirectory())
        {
            return new FolderResourcePack(file);
        }
        else
        {
            return new FileResourcePack(file);
        }
    }

 

Posted

It looks like FML wasn't launched properly, so FMLSanityChecker.fmlLocation was null.

 

How did you set up your workspace and run the game? If you follow these instructions, the workspace should be set up properly and your IDE run configurations should use GradleStart and GradleStartServer, which ensure that FML is launched properly.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
14 hours ago, AimwareDotCom said:

Even though the game's source code looks like it has been put through a hashing algorithm 500 times, and that it is way too complex than what it should be-- I'm willing to learn.

It looks like it's been through a hash algorithm because Mojang obfuscates the source code. All field names, class names, and method names get replaced with single-letter abbreviations, then two-letter, then three-letter, and so on until there aren't any more to replace.

 

As for complex...well yeah, it has to be. Minecraft as a game is complex and incredibly flexible.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.