Posted December 20, 201311 yr Hi , I'm working on a mod and when I created the creative tab once I enter the second page the game crashes and gives me this log. http://pastebin.com/C1N2J7rc and oddly enough when I remove the code to assign an icon to the tab it does not crash. Can someone help me?
December 20, 201311 yr Hi It would help if you posted your code :-) Look at line 21 of your TWTab.java getTabIconItemIndex(TWTab.java:21) You are probably using a variable that you've forgotten to initialise. -TGG
December 20, 201311 yr Author First , here's the source code : https://github.com/MasterAbdoTGM50/ThaumicWarden and I forgot to mention that the tab auto assigns its icon to the smoothstone icon not the no textures icon and that really confuses me and I also tried all the icon assigning methods and all of the crash the game.
December 20, 201311 yr Hi TWItems.twsigilshard is null. Which probably means that either your TWItems.Init is not running for some reason, or you have accidentally overwritten it. I'd suggest you add a couple of breakpoints in your debugger, or alternatively add a few logging statements System.out.println to see what is happening. -TGG
December 21, 201311 yr MrrGingerNinja has a very nice tutorial http://www.minecraftforum.net/topic/1942082-162-minecraft-forge-modding-9d-utility-part-4-creative-tabs/
December 21, 201311 yr Author Hi TWItems.twsigilshard is null. Which probably means that either your TWItems.Init is not running for some reason, or you have accidentally overwritten it. I'd suggest you add a couple of breakpoints in your debugger, or alternatively add a few logging statements System.out.println to see what is happening. -TGG That does seem to be the point because I tried assigning the icon of a vanilla item and it worked.I'll edit the code a bit and see. Thank you a lot my good sir. Update: The problem was in my Init code as in the TWItems.Enit I intialized the item with Item before making it anew Item that is inaccesable by other classes which kinda makes sense why the twsigilshard was null.
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.