thebest108 Posted December 31, 2015 Share Posted December 31, 2015 The log isn't really helping either Code: ResourceLocation loc = new ResourceLocation(FlyingFortressBase.MODID, "Cannon.obj"); try { IModel model = OBJLoader.instance.loadModel(loc); } catch (IOException e) { e.printStackTrace(); } Log: java.lang.NullPointerException: Rendering entity in world at net.minecraftforge.client.model.obj.OBJModel$Material.access$100(OBJModel.java:631) at net.minecraftforge.client.model.obj.OBJModel$Parser.parse(OBJModel.java:352) at net.minecraftforge.client.model.obj.OBJLoader.loadModel(OBJLoader.java:72) at FlyingFortress.Client.RenderBastard.RenderCannon.renderHead(RenderCannon.java:57) at FlyingFortress.Client.RenderBastard.RenderCannon.doRender(RenderCannon.java:42) at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:381) at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:338) at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:305) at FlyingFortress.Client.RenderBastard.CustomRenderGlobal.renderEntities(CustomRenderGlobal.java:618) at FlyingFortress.Client.RenderBastard.CustomEntityRenderer.renderWorldPass(CustomEntityRenderer.java:145) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1266) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1091) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114) at net.minecraft.client.Minecraft.run(Minecraft.java:376) at net.minecraft.client.main.Main.main(Main.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) Quote "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ Link to comment Share on other sites More sharing options...
ItsAMysteriousYT Posted January 1, 2016 Share Posted January 1, 2016 Please show us your OBJLoader Class, with no info we can not help you! Quote Link to comment Share on other sites More sharing options...
61352151511 Posted January 1, 2016 Share Posted January 1, 2016 Please show us your OBJLoader Class, with no info we can not help you! I know nothing about loading OBJ models, but just letting you know if you read the stacktrace you could see OBJLoader is in forge. https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/client/model/obj/OBJLoader.java Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.