Jump to content

Custom Loading Screen


-MCS_Gaming-

Recommended Posts

Hi guys,

I've been trying to make a custom loading screen. I created a gui that should work, it leaves the mojang screen on for a few seconds, then I created a white rectangle that sort of fades in and then I displayed my logo on top. Although this doesn't appear to work, all I see is the mojang logo when I load the game. Can anyone help me?

This is the gui I created: https://pastebin.com/

 

EDIT: I found out I forgot to register it, although now when the game loads the screen just flickers very fast, then crashes.

Log:

Spoiler

2017-08-17 22:06:55 [INFO] [ForgeModLoader] [Block Ops] updateScreen()
2017-08-17 22:06:56 [INFO] [STDERR] net.minecraft.util.ReportedException: Ticking screen
2017-08-17 22:06:56 [INFO] [STDERR]     at net.minecraft.client.Minecraft.runTick(Minecraft.java:1587)
2017-08-17 22:06:56 [INFO] [STDERR]     at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
2017-08-17 22:06:56 [INFO] [STDERR]     at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2017-08-17 22:06:56 [INFO] [STDERR]     at net.minecraft.client.main.Main.main(Main.java:93)
2017-08-17 22:06:56 [INFO] [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-08-17 22:06:56 [INFO] [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-08-17 22:06:56 [INFO] [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-08-17 22:06:56 [INFO] [STDERR]     at java.lang.reflect.Method.invoke(Method.java:498)
2017-08-17 22:06:56 [INFO] [STDERR]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2017-08-17 22:06:56 [INFO] [STDERR]     at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2017-08-17 22:06:56 [INFO] [STDERR] Caused by: java.lang.NullPointerException
2017-08-17 22:06:56 [INFO] [STDERR]     at mcsgaming.blackops3.client.CManager.instance(CManager.java:317)
2017-08-17 22:06:56 [INFO] [STDERR]     at mcsgaming.blackops3.gui.GuiBOLoadingScreen.updateScreen(GuiBOLoadingScreen.java:34)
2017-08-17 22:06:56 [INFO] [STDERR]     at net.minecraft.client.Minecraft.runTick(Minecraft.java:1580)
2017-08-17 22:06:56 [INFO] [STDERR]     ... 9 more
2017-08-17 22:06:56 [INFO] [STDOUT] ---- Minecraft Crash Report ----
2017-08-17 22:06:56 [INFO] [STDOUT] // Don't be sad, have a hug! ❤️
2017-08-17 22:06:56 [INFO] [STDOUT]
2017-08-17 22:06:56 [INFO] [STDOUT] Time: 17/08/17 22:06
2017-08-17 22:06:56 [INFO] [STDOUT] Description: Ticking screen
2017-08-17 22:06:56 [INFO] [STDOUT]
2017-08-17 22:06:56 [INFO] [STDOUT] java.lang.NullPointerException
2017-08-17 22:06:56 [INFO] [STDOUT]     at mcsgaming.blackops3.client.CManager.instance(CManager.java:317)
2017-08-17 22:06:56 [INFO] [STDOUT]     at mcsgaming.blackops3.gui.GuiBOLoadingScreen.updateScreen(GuiBOLoadingScreen.java:34)
2017-08-17 22:06:56 [INFO] [STDOUT]     at net.minecraft.client.Minecraft.runTick(Minecraft.java:1580)
2017-08-17 22:06:56 [INFO] [STDOUT]     at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
2017-08-17 22:06:56 [INFO] [STDOUT]     at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2017-08-17 22:06:56 [INFO] [STDOUT]     at net.minecraft.client.main.Main.main(Main.java:93)
2017-08-17 22:06:56 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-08-17 22:06:56 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-08-17 22:06:56 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-08-17 22:06:56 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Method.java:498)
2017-08-17 22:06:56 [INFO] [STDOUT]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2017-08-17 22:06:56 [INFO] [STDOUT]     at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

 

EDIT 2: I managed to fix this by changing renderOnScreen() {} to drawScreen() {}

Edited by -MCS_Gaming-

Thanks,

MCS Gaming

Link to comment
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.
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.