Jump to content

Recommended Posts

Posted

Hello all,

 

Im trying to port a simple mod which worked under 1.13.

Minecraft bombs out at the title screen ("Rendering Screen") with a null pointer exception

 

I read a couple threads with similar symptoms where the issue was the mods.toml file having the wrong version numbers, but I updated mine

 

The latest.log file did not show anything, so I have resorted to posting the console output below,  The top of it rolled out of the buffer, but crash is clearly visible

 

My repository is here

 

Thanks as always

/Philip

 

  Reveal hidden contents

 

Posted

In general it’s a good idea to search on the forums for similar issues before making your own.

Make sure that you’ve updated your mods.toml file contents to use 1.14.2 instead of 1.13.2 for the Mc version and 26 instead of 25 for the Forge version.

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
  On 6/12/2019 at 3:29 AM, PhilipChonacky said:

I read a couple threads with similar symptoms where the issue was the mods.toml file having the wrong version numbers, but I updated mine

Expand  

 

 

  On 6/12/2019 at 6:23 AM, Cadiboo said:

In general it’s a good idea to search on the forums for similar issues before making your own.

Make sure that you’ve updated your mods.toml file contents to use 1.14.2 instead of 1.13.2 for the Mc version and 26 instead of 25 for the Forge version.

Expand  

I already updated mods.toml

Posted

My bad. However, the only thing that can cause this error AFAIK is not updating your mods.toml.

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)

I've been through it several times now, and checked the copy in the build folder to to be sure.  I'm going to start disabling parts of my mod and see if that makes a difference.

Edited by PhilipChonacky
Posted
  On 6/12/2019 at 3:29 AM, PhilipChonacky said:

at net.minecraftforge.fml.ModList.size()

Expand  

This is where the application is crashing.  I put a breakpoint at this location in the code [return mods.size();]  and the debugger is telling me that 'mods' is null

This would seem to imply that Forge hasn't find the mod, but I'm not sure where to go back to next.

 

I should note this was running correctly under 1.13.2, so I thinks the structure of the mod is generally sound.  I needed to rename some imports and classes, and the rendering classes needed type invocations.

 

Posted

Place a breakpoint right before 

  On 6/12/2019 at 3:29 AM, PhilipChonacky said:

net.minecraftforge.eventbus.EventBus.shutdown(EventBus.java:273) ~[eventbus-0.9.3-service.jar:?] {}

at net.minecraftforge.fml.client.ClientModLoader.begin(ClientModLoader.java:66) ~[forge-1.14.2-26.0.13_mapped_snapshot_20190608-1.14.2-recomp.jar:?]

Expand  

And look at the actual error that is thrown. This error is meant to be displayed in a GUI, but MC crashes before it can be displayed

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

Here's what I found:

It's somewhat generic and does seem to say what the issue is.

The only other information seems to be from 2 lines above the EventBus.shutdown.

  Quote

 

[ne.mi.fm.ModLoader/LOADING]: File /home/philip/git/mc_chicken/forge-1.14.2-26.0.13-mdk/bin/main constructed 0 mods: [], but had 1 mods specified: [chicken_mod]

[21:59:38.866] [Client thread/FATAL] [ne.mi.fm.ModLoader/CORE]: Failed to initialize mod containers

 

Expand  

 

I also checked the debug.log and didn't find anything useful there :(

 

  Reveal hidden contents


 

Posted

By any chance are you using Eclipse and following the instructions in the documentation?

Those instructions are out of date and now actually break your run configs, if this is the case you should disregard the step of modifying the run configuration manually.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Same problem here. Cant run both server and client even with a simple mod template - throwing NullPointerExcetion on title screen on client and net.minecraftforge.fml.LoadingFailedException: null on server.
I make sure I updated mods.toml.
IDEA Community 2018.3 


build.gradle

  Reveal hidden contents

 

mods.toml

  Reveal hidden contents

 

Main mod class ForgeGuard.java

  Reveal hidden contents

 

Last line from server log:

  Reveal hidden contents

 

Posted
  On 6/13/2019 at 12:55 PM, Zaklinatel said:

Same problem here.

Expand  

Please do not hijack threads, if you have an issue please make your own.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 6/13/2019 at 3:52 AM, DaemonUmbra said:

By any chance are you using Eclipse and following the instructions in the documentation?

Those instructions are out of date and now actually break your run configs, if this is the case you should disregard the step of modifying the run configuration manually.

Expand  

I saw that the run configuration was correct and did not modify.

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.