Posted June 18, 20169 yr Trying to re-write my mod the correct way now for 1.9.4 and i'm getting this crash report. Ill post the crashlog, and the latest log. I can't figure out why it's crashing, let me know if you'd need anything else. crash log- http://pastebin.com/tKdpVzu4 latest FML Log- http://pastebin.com/h5U4wN8s
June 18, 20169 yr You have a null pointer in you hash code function. Post BlockRbsCrop.java 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.
June 18, 20169 yr Author Yeah, you gotta start somewhere. I learn as i go. Just trying to resolve this crash. I didn't know I wasn't supposed to Override it.
June 18, 20169 yr Author The null error is pointing towards this line public int hashCode() { return registerName.hashCode(); } Also these ones. public BlockRbsCrop(String registerName) { super(); this.registerName = registerName; this.setDefaultState(blockState.getBaseState().withProperty(getAge(), 0)); this.setCreativeTab(SlurpiesDongles.SD); } public static void loadBlockRegistry() { blueberrycrop = registerBlockCrop("blueberrycrop"); } private static Block registerBlockCrop(String registerName) { final Block rbsCrop = new BlockRbsCrop(registerName); //final ItemBlock itemBlock = new ItemBlockFruit(pamCrop); return registerBlock(registerName, rbsCrop); } public static Block registerBlock(String registerName, Block block) { block.setRegistryName(registerName); block.setUnlocalizedName(registerName); GameRegistry.register(block); return block; }
June 18, 20169 yr Author I removed the @Override for both of them. Still crashes. Also if this helps.. blueberrycrop = registerBlockCrop("blueberrycrop"); If i cross that line out with //, the game launches fine. Not sure if that helps you or not.
June 18, 20169 yr Author Here is the blue area in the log. at com.rbs.slurpiesdongles.blocks.BlockRbsCrop.<init>(BlockRbsCrop.java:45) at com.rbs.slurpiesdongles.blocks.BlockRegistry.registerBlockCrop(BlockRegistry.java:24) at com.rbs.slurpiesdongles.blocks.BlockRegistry.loadBlockRegistry(BlockRegistry.java:19) at com.rbs.slurpiesdongles.proxy.CommonProxy.preInit(CommonProxy.java:18) at com.rbs.slurpiesdongles.proxy.ClientProxy.preInit(ClientProxy.java:21) at com.rbs.slurpiesdongles.SlurpiesDongles.preInit(SlurpiesDongles.java:34) The first one BlockRbsCrop Line 45 points to this. super(); the 2nd one, line 24, points too this. final Block rbsCrop = new BlockRbsCrop(registerName); the 3rd one, line 19 points too this. blueberrycrop = registerBlockCrop("blueberrycrop"); Line 18 points too this BlockRegistry.loadBlockRegistry(); line 21 points too this super.preInit(e); line 34 points too this proxy.preInit(event); and then there is this at the bottom of the log Stacktrace: at com.rbs.slurpiesdongles.blocks.BlockRbsCrop.hashCode(BlockRbsCrop.java:208) which points too this return registerName.hashCode();
June 18, 20169 yr Author I removed the @Override for both of them. Still crashes.@Override changes nothing about what your code does. It is simply a marker that tells the compiler "hey, I intended to override here" so it can give you an error if you don't actually override anything. Even if @Override is not there the method is still overriding. Thank you for explaining. I am still learning and do appreciate your help as you are the one who always helps me.
June 18, 20169 yr Author No i didn't get the crash fixed. I was just thanking you for explaining Override. It still crashes, but above I posted each line and what it points too in hoping that you could help me. A little further up I posted the RbsCrops.java, if you need anything else let me know.
June 18, 20169 yr Author I mean you should not be overriding equals and you should not be overriding hashCode. Also you haven't posted which tutorial you got this from yet. I am not overriding them anymore. But it still crashes, and im not sure why, you said above that not overriding them wouldn't fix the issue eitherway, so im still trying too figure out why it crashes. Could you help anymore? Also as for the tutorial, I don't have a direct link as im on a different computer than what im usually on, but i think the user's name was ChampAsh on youtube.
June 18, 20169 yr Author I will post the new crash log and FML log for you then. crashlog- http://pastebin.com/fgdcpbcM FML Log- http://pastebin.com/8f4GN5Lm Yes, I will post it tomorrow once im home, or PM it too you.. the link that is.
June 18, 20169 yr Author I removed the @Override Annotation. How am i still overriding it? RbsBlockCrops http://pastebin.com/q2nLFYbR BlockRegistry- http://pastebin.com/TRp2psHH not sure what else you'd need, but i dont know where else it's getting overrided.
June 18, 20169 yr Author So then the error isin't within BlockRbsCrops? I've read your post over again. I see you saying that @Override is just a marker, and that if it's not overriding anything, it's going to give an error.
June 18, 20169 yr Author Did that before and it crashed so i thought that it made no difference, sorry. here is the new crash from it crash log- http://pastebin.com/WXzqCDfj FML log- http://pastebin.com/TPKTbnJZ
June 18, 20169 yr Did that before and it crashed so i thought that it made no difference, sorry. "It crashed" is not equal to "it crashed." Just because "it crashed" does not mean that the problem has not changed: it is possible to have more than one error at a time. You have to READ your fucking crash logs and use your god damn brain. 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.
June 19, 20169 yr Author Some people are still learning, like I am. Which is why i come to this place for help. Whether or not i get the help is my issue.
June 19, 20169 yr http://stackoverflow.com/questions/12688068/how-to-read-and-understand-the-java-stack-trace 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.