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
  • MC crashes after creating armor.
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
foonicular

MC crashes after creating armor.

By foonicular, October 30, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted October 30, 2020

Minecraft is now crashing after creating armor. When I try to run it it asks me what class to run, and I choose the start class. And then it crashes with this

 

"java.lang.NullPointerException: Initializing game
    at net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:32) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:31.2] {}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:358) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {}
    at net.minecraft.client.main.Main.main(Main.java:141) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {}
    at mcp.client.Start.main(Start.java:17) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {}"

 

I have no idea what to do. Here is the link to my github --> https://github.com/Foonicular/AMCMod

 

Thanks in advance to any1 who helps.

  • Quote

Share this post


Link to post
Share on other sites

DavidM    179

DavidM

DavidM    179

  • World Shaper
  • DavidM
  • Members
  • 179
  • 1821 posts
Posted October 30, 2020

Please post the entire log.

  • Quote

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Share this post


Link to post
Share on other sites

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted October 30, 2020

---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 10/29/20 4:02 PM
Description: Initializing game

java.lang.NullPointerException: Initializing game
    at net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:32) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar:31.2] {}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:358) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {}
    at net.minecraft.client.main.Main.main(Main.java:141) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {}
    at mcp.client.Start.main(Start.java:17) [forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:32)
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:358)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.main.Main.main(Main.java:141)
    at mcp.client.Start.main(Start.java:17)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_271, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 101809080 bytes (97 MB) / 160432128 bytes (153 MB) up to 1875378176 bytes (1788 MB)
    CPUs: 8
    JVM Flags: 0 total; 
    Launched Version: mcp
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: NO CONTEXT
    GL Caps: 
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    CPU: <unknown>

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7595

diesieben07

diesieben07    7595

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7595
  • 55074 posts
Posted October 31, 2020

The entire debug.log is needed.

  • Quote

Share this post


Link to post
Share on other sites

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted October 31, 2020 (edited)

The debug.log file in the logs folder? I can't find a way to show that... It's really long.

Edited October 31, 2020 by foonicular
  • Quote

Share this post


Link to post
Share on other sites

Danebi    26

Danebi

Danebi    26

  • Diamond Finder
  • Danebi
  • Members
  • 26
  • 430 posts
Posted October 31, 2020

Gist Github.

  • Quote

Share this post


Link to post
Share on other sites

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted October 31, 2020

Okay, i found my debug.log file in my logs folder in eclipse, this is what it said, I assume what it cant find is pretty important XD

 

[31Oct2020 14:00:41.020] [Render thread/ERROR] [net.minecraft.client.resources.ResourceIndex/]: Can't find the resource index file: assets\indexes\1.15.json
[31Oct2020 14:00:41.104] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Player200
 

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2403

Draco18s

Draco18s    2403

  • Reality Controller
  • Draco18s
  • Members
  • 2403
  • 15926 posts
Posted October 31, 2020

So...

Put the whole thing into a gist...

And let us decide the important bits.

  • Quote

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.

Share this post


Link to post
Share on other sites

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted November 1, 2020 (edited)

Okay, so I was looking in the debug.log file in my logs folder, and that's all I found... (The missing 1.15.json file) Is there a different file I should be looking for? Thanks once again.

 

Just so you know, it gets nowhere before crashing, it crashes in like 5 seconds maybe less.

Edited November 1, 2020 by foonicular
  • Quote

Share this post


Link to post
Share on other sites

Danebi    26

Danebi

Danebi    26

  • Diamond Finder
  • Danebi
  • Members
  • 26
  • 430 posts
Posted November 1, 2020

Again, post the whole debug.log.

  • Quote

Share this post


Link to post
Share on other sites

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted November 2, 2020 (edited)

Okay, I am sure that I am just being really dumb at this point... but... Where do I find the debug.log? I was looking at a file called debug.log in my logs folder in eclipse and this --> [31Oct2020 14:00:41.020] [Render thread/ERROR] [net.minecraft.client.resources.ResourceIndex/]: Can't find the resource index file: assets\indexes\1.15.json
[31Oct2020 14:00:41.104] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Player200

is all that I found. I say again, it crashes almost immediately. IDK what I need to show. If there is a different file that I just have not showed yet, all I need is where to find it.

 

Also, when I tried to run it the first time, it asked which class to run, I chose the start class... is there possibly a different class I need to run?

Edited November 2, 2020 by foonicular
forgot detail
  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2403

Draco18s

Draco18s    2403

  • Reality Controller
  • Draco18s
  • Members
  • 2403
  • 15926 posts
Posted November 2, 2020

<project dir>\run\logs

  • Quote

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.

Share this post


Link to post
Share on other sites

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted November 2, 2020 (edited)

So sorry about that, here is the gist --> https://gist.github.com/Foonicular/b1bb2ab37364aedc1fe42d971c3da27b

 

and this is the raw --> https://gist.githubusercontent.com/Foonicular/b1bb2ab37364aedc1fe42d971c3da27b/raw/15dd805212df1399be9a6c05ba8eb9df59f98c6c/debug.log

 

just in case this helps, I cannot run client... I think that the runClient may be broken. I have tried copying the src code into a new project, but that wont work either...

Edited November 2, 2020 by foonicular
  • Quote

Share this post


Link to post
Share on other sites

foonicular    0

foonicular

foonicular    0

  • Tree Puncher
  • foonicular
  • Members
  • 0
  • 41 posts
Posted November 2, 2020

Okay I just figured it out, I had to choose to run a configuration... Then I could pick runClient and it works now. Hope this helps any1 else who might need it. And thanks to you guys for trying to help!

  • Quote

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

    • Klarks
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks · Posted 2 minutes ago

      should  this line return me IItemHandler instances for armor and held inventories? return LazyOptional.of(() -> (T) getHandler());
    • diesieben07
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By diesieben07 · Posted 6 minutes ago

      I don't understand that question.
    • Klarks
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks · Posted 13 minutes ago

      Return here? public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap, @Nullable Direction side) { if(cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) { return LazyOptional.of(() -> (T) getHandler()); //Here? } return super.getCapability(cap, side); }
    • diesieben07
      Minecraft forge not fully loading

      By diesieben07 · Posted 1 hour ago

      1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • BastouP
      [1.16.4] Get Overworld save directory

      By BastouP · Posted 1 hour ago

      Yeah but I am creating a perpheral for computercraft that uses SQL. So i think using a sqlite file would be the easiest way. (You do not need to maintain a server.) However if there is another way I’d be glad to test it. Testing this this evening btw.
  • Topics

    • Klarks
      4
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks
      Started 3 hours ago

    • Fars3O_
      1
      Minecraft forge not fully loading

      By Fars3O_
      Started 4 hours ago

    • BastouP
      3
      [1.16.4] Get Overworld save directory

      By BastouP
      Started 13 hours ago

    • Woodside
      15
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By Woodside
      Started Sunday at 08:26 PM

    • CatSack
      1
      Forge unable to find model

      By CatSack
      Started 12 hours ago

  • Who's Online (See full list)

    • diesieben07
    • nicolas14101
    • Klarks
    • Sr_endi
    • Choonster
    • TheidenHD
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • MC crashes after creating armor.
  • Theme

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