Jump to content

Recommended Posts

Posted

Hello! I have just started modding, I've learned quite a bit of Java and decided to start my own mod. One of the items the mod is centered around I decided to create and use a 3D model for, similar to the Portal Gun mod or Modular Power Suits. I watched a tutorial about it from iChun, the creator of the Portal Gun mod. I followed his instructions and as an end result the game crashed. I messed around and found I had made a couple errors here and there. After fixing those, Eclipse showed no other errors yet I keep getting this:

 

[sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

2013-03-26 20:31:05 [sEVERE] [ForgeModLoader]

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Mps [Metroid Prime Suits] (bin) Unloaded->Constructed->Pre-initialized->Errored

2013-03-26 20:31:05 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-03-26 20:31:05 [sEVERE] [ForgeModLoader] Caught exception from Mps

java.lang.ExceptionInInitializerError

at sypher.mps.client.ClientProxy.registerRenderers(ClientProxy.java:19)

at sypher.mps.MpsBase.load(MpsBase.java:86)

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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NullPointerException

at sypher.mps.items.ArmCannon.<init>(ArmCannon.java:27)

at sypher.mps.items.ArmCannon.<clinit>(ArmCannon.java:20)

... 33 more

2013-03-26 20:31:15 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError

2013-03-26 20:31:15 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)

2013-03-26 20:31:15 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)

2013-03-26 20:31:15 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

2013-03-26 20:31:15 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

2013-03-26 20:31:15 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

2013-03-26 20:31:15 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)

2013-03-26 20:31:15 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] Caused by: java.lang.ExceptionInInitializerError

2013-03-26 20:31:15 [iNFO] [sTDERR] at sypher.mps.client.ClientProxy.registerRenderers(ClientProxy.java:19)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sypher.mps.MpsBase.load(MpsBase.java:86)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-26 20:31:15 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-26 20:31:15 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-26 20:31:15 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

2013-03-26 20:31:15 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

2013-03-26 20:31:15 [iNFO] [sTDERR] ... 5 more

2013-03-26 20:31:15 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

2013-03-26 20:31:15 [iNFO] [sTDERR] at sypher.mps.items.ArmCannon.<init>(ArmCannon.java:27)

2013-03-26 20:31:15 [iNFO] [sTDERR] at sypher.mps.items.ArmCannon.<clinit>(ArmCannon.java:20)

2013-03-26 20:31:15 [iNFO] [sTDERR] ... 33 more

2013-03-26 20:31:16 [iNFO] [sTDERR] Someone is closing me!

 

Some help would be greatly appreciated, I want my first mod to be a success.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

Hi,

first of all you need a Model for your Item or Block. The easyest way to do this is to make it with [lmgtfy]Techne[/lmgtfy] which is a programm to create minecraft model files. After that you need to apply a TileEntitySpecialRenderer to the Tileentity of your Block/Item (create the Tileentity first). The only thing you need to do then is to bind the Tileentity to your renderer with the game registry. I have done this for my mod too and it is not easy. I will upload my code later so you can see what i meant. ;)

(Don't mind my bad english)

 

Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

Inn the error log you provided we can read the following:

   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
   at sypher.mps.items.ArmCannon.<init>(ArmCannon.java:27)

 

So you have a NullPointerException causing the crash. At line 27 of ArmCannon.java.

So go into the ArmCannon.java file and see what happends at line27, for some reason you are trying to do something with something which is null :)

 

If you guys dont get it.. then well ya.. try harder...

Posted

Hi,

first of all you need a Model for your Item or Block. The easyest way to do this is to make it with [lmgtfy]Techne[/lmgtfy] which is a programm to create minecraft model files. After that you need to apply a TileEntitySpecialRenderer to the Tileentity of your Block/Item (create the Tileentity first). The only thing you need to do then is to bind the Tileentity to your renderer with the game registry. I have done this for my mod too and it is not easy. I will upload my code later so you can see what i meant. ;)

(Don't mind my bad english)

 

Busti

 

Thanks for the tip but I've already got a model ready, it just refuses to work. You code would be a great help though, so thanks in advance.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

Inn the error log you provided we can read the following:

   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
   at sypher.mps.items.ArmCannon.<init>(ArmCannon.java:27)

 

So you have a NullPointerException causing the crash. At line 27 of ArmCannon.java.

So go into the ArmCannon.java file and see what happends at line27, for some reason you are trying to do something with something which is null :)

 

 

I checked there, but it was just an empty line after my closing bracket so I removed it just in case. I'm now getting a NullPointException on line 79 of the ArmCannonModel1.class, which doesn't make any sense.

 

2013-03-27 09:11:31 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-03-27 09:11:31 [sEVERE] [ForgeModLoader] Caught exception from Mps

java.lang.NullPointerException

at sypher.mps.models.ArmCannonModel1.<init>(ArmCannonModel1.java:79)

at sypher.mps.models.ItemRenderLauncher.<init>(ItemRenderLauncher.java:18)

at sypher.mps.client.ClientProxy.registerRenderers(ClientProxy.java:21)

at sypher.mps.MpsBase.load(MpsBase.java:83)

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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] java.lang.NullPointerException

2013-03-27 09:11:31 [iNFO] [sTDERR] at sypher.mps.models.ArmCannonModel1.<init>(ArmCannonModel1.java:79)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sypher.mps.models.ItemRenderLauncher.<init>(ItemRenderLauncher.java:18)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sypher.mps.client.ClientProxy.registerRenderers(ClientProxy.java:21)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sypher.mps.MpsBase.load(MpsBase.java:83)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-27 09:11:31 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-03-27 09:11:31 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-03-27 09:11:31 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

2013-03-27 09:11:31 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

2013-03-27 09:11:31 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

2013-03-27 09:11:31 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

2013-03-27 09:11:31 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

2013-03-27 09:11:31 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)

2013-03-27 09:11:31 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-03-27 09:11:58 [iNFO] [sTDERR] Someone is closing me!

 

 

 

ArmCannonModel1.class:

package sypher.mps.models;

 

//The Arm Cannon model

 

import net.minecraft.client.model.ModelBase;

import net.minecraft.client.model.ModelRenderer;

import net.minecraft.entity.Entity;

 

public class ArmCannonModel1 extends ModelBase

{

//fields

public ModelRenderer Front1;

public ModelRenderer Front2;

public ModelRenderer Front3;

public ModelRenderer Front4;

public ModelRenderer Front5;

public ModelRenderer Front6;

public ModelRenderer Front7;

public ModelRenderer Front8;

public ModelRenderer LFront1;

public ModelRenderer LFront2;

public ModelRenderer LFront3;

public ModelRenderer LFront4;

public ModelRenderer LFront5;

public ModelRenderer LFront6;

public ModelRenderer LFront7;

public ModelRenderer LFront8;

public ModelRenderer LFront9;

public ModelRenderer LFront10;

public ModelRenderer LFront11;

public ModelRenderer LFront12;

public ModelRenderer Body9;

public ModelRenderer Body10;

public ModelRenderer Body11;

public ModelRenderer Body12;

public ModelRenderer Body13;

public ModelRenderer Body2;

public ModelRenderer Body3;

public ModelRenderer Body4;

public ModelRenderer Body5;

public ModelRenderer Body6;

public ModelRenderer Body7;

public ModelRenderer Body8;

public ModelRenderer BBody1;

public ModelRenderer BBody2;

public ModelRenderer BBody3;

public ModelRenderer BBody4;

public ModelRenderer BBody5;

public ModelRenderer BBody6;

public ModelRenderer BBody7;

public ModelRenderer BBody8;

public ModelRenderer BBody9;

public ModelRenderer BBody10;

public ModelRenderer BBody11;

public ModelRenderer BBody12;

public ModelRenderer BBody13;

public ModelRenderer BBody14;

public ModelRenderer BBody15;

public ModelRenderer BBody16;

public ModelRenderer RSide1;

public ModelRenderer RSide2;

public ModelRenderer RSide3;

public ModelRenderer LSide1;

public ModelRenderer LSide2;

public ModelRenderer LSide3;

 

public ArmCannonModel1()

{

textureWidth = 64;

textureHeight = 32;

 

Front1 = new ModelRenderer(this, 0, 30);

Front1.addBox(11F, 0F, 1F, 3, 1, 1);

Front1.setRotationPoint(0F, 0F, 0F);

Front1.setTextureSize(64, 32);

Front1.mirror = true;

setRotation(Front1, 0F, 1.570796F, 0F);

Front2.mirror = true;

Front2 = new ModelRenderer(this, 0, 30);

Front2.addBox(11F, 1F, 0F, 3, 1, 1);

Front2.setRotationPoint(0F, 0F, 0F);

Front2.setTextureSize(64, 32);

Front2.mirror = true;  <-This is line 79

setRotation(Front2, 1.570796F, 1.570796F, 0F);

Front2.mirror = false;

Front3 = new ModelRenderer(this, 0, 30);

Front3.addBox(11F, -1F, 1F, 3, 1, 1);

Front3.setRotationPoint(0F, 0F, 0F);

Front3.setTextureSize(64, 32);

Front3.mirror = true;

setRotation(Front3, 1.570796F, 1.570796F, 0F);

Front4 = new ModelRenderer(this, 0, 30);

Front4.addBox(11F, 0F, 1F, 3, 1, 1);

Front4.setRotationPoint(0F, 0F, 0F);

Front4.setTextureSize(64, 32);

Front4.mirror = true;

setRotation(Front4, 1.570796F, 1.570796F, 0F);

Front5 = new ModelRenderer(this, 0, 30);

Front5.addBox(11F, -2F, 0F, 3, 1, 1);

Front5.setRotationPoint(0F, 0F, 0F);

Front5.setTextureSize(64, 32);

Front5.mirror = true;

setRotation(Front5, 1.570796F, 1.570796F, 0F);

Front6 = new ModelRenderer(this, 0, 30);

Front6.addBox(11F, -2F, -1F, 3, 1, 1);

Front6.setRotationPoint(0F, 0F, 0F);

Front6.setTextureSize(64, 32);

Front6.mirror = true;

setRotation(Front6, 1.570796F, 1.570796F, 0F);

Front7 = new ModelRenderer(this, 0, 30);

Front7.addBox(11F, -1F, -2F, 3, 1, 1);

Front7.setRotationPoint(0F, 0F, 0F);

Front7.setTextureSize(64, 32);

Front7.mirror = true;

setRotation(Front7, 1.570796F, 1.570796F, 0F);

Front8 = new ModelRenderer(this, 0, 30);

Front8.addBox(11F, 0F, -2F, 3, 1, 1);

Front8.setRotationPoint(0F, 0F, 0F);

Front8.setTextureSize(64, 32);

Front8.mirror = true;

setRotation(Front8, 1.570796F, 1.570796F, 0F);

LFront1 = new ModelRenderer(this, 0, 30);

LFront1.addBox(9F, 1F, 1F, 2, 1, 1);

LFront1.setRotationPoint(0F, 0F, 0F);

LFront1.setTextureSize(64, 32);

LFront1.mirror = true;

setRotation(LFront1, 1.570796F, 1.570796F, 0F);

LFront2 = new ModelRenderer(this, 0, 30);

LFront2.addBox(9F, 2F, 0F, 2, 1, 1);

LFront2.setRotationPoint(0F, 0F, 0F);

LFront2.setTextureSize(64, 32);

LFront2.mirror = true;

setRotation(LFront2, 1.570796F, 1.570796F, 0F);

LFront3 = new ModelRenderer(this, 0, 30);

LFront3.addBox(9F, 0F, 2F, 2, 1, 1);

LFront3.setRotationPoint(0F, 0F, 0F);

LFront3.setTextureSize(64, 32);

LFront3.mirror = true;

setRotation(LFront3, 1.570796F, 1.570796F, 0F);

LFront4 = new ModelRenderer(this, 0, 30);

LFront4.addBox(9F, -1F, 2F, 2, 1, 1);

LFront4.setRotationPoint(0F, 0F, 0F);

LFront4.setTextureSize(64, 32);

LFront4.mirror = true;

setRotation(LFront4, 1.570796F, 1.570796F, 0F);

LFront5 = new ModelRenderer(this, 0, 30);

LFront5.addBox(9F, 2F, -1F, 2, 1, 1);

LFront5.setRotationPoint(0F, 0F, 0F);

LFront5.setTextureSize(64, 32);

LFront5.mirror = true;

setRotation(LFront5, 1.570796F, 1.570796F, 0F);

LFront6 = new ModelRenderer(this, 0, 30);

LFront6.addBox(9F, 1F, -2F, 2, 1, 1);

LFront6.setRotationPoint(0F, 0F, 0F);

LFront6.setTextureSize(64, 32);

LFront6.mirror = true;

setRotation(LFront6, 1.570796F, 1.570796F, 0F);

LFront7 = new ModelRenderer(this, 0, 30);

LFront7.addBox(9F, -3F, 0F, 2, 1, 1);

LFront7.setRotationPoint(0F, 0F, 0F);

LFront7.setTextureSize(64, 32);

LFront7.mirror = true;

setRotation(LFront7, 1.570796F, 1.570796F, 0F);

LFront8 = new ModelRenderer(this, 0, 30);

LFront8.addBox(9F, -3F, -1F, 2, 1, 1);

LFront8.setRotationPoint(0F, 0F, 0F);

LFront8.setTextureSize(64, 32);

LFront8.mirror = true;

setRotation(LFront8, 1.570796F, 1.570796F, 0F);

LFront9 = new ModelRenderer(this, 0, 30);

LFront9.addBox(9F, -2F, 1F, 2, 1, 1);

LFront9.setRotationPoint(0F, 0F, 0F);

LFront9.setTextureSize(64, 32);

LFront9.mirror = true;

setRotation(LFront9, 1.570796F, 1.570796F, 0F);

LFront10 = new ModelRenderer(this, 0, 30);

LFront10.addBox(9F, 0F, -3F, 2, 1, 1);

LFront10.setRotationPoint(0F, 0F, 0F);

LFront10.setTextureSize(64, 32);

LFront10.mirror = true;

setRotation(LFront10, 1.570796F, 1.570796F, 0F);

LFront11 = new ModelRenderer(this, 0, 30);

LFront11.addBox(9F, -1F, -3F, 2, 1, 1);

LFront11.setRotationPoint(0F, 0F, 0F);

LFront11.setTextureSize(64, 32);

LFront11.mirror = true;

setRotation(LFront11, 1.570796F, 1.570796F, 0F);

LFront12 = new ModelRenderer(this, 0, 30);

LFront12.addBox(9F, -2F, -2F, 2, 1, 1);

LFront12.setRotationPoint(0F, 0F, 0F);

LFront12.setTextureSize(64, 32);

LFront12.mirror = true;

setRotation(LFront12, 1.570796F, 1.570796F, 0F);

Body9 = new ModelRenderer(this, 0, 0);

Body9.addBox(-4F, 1F, 1F, 13, 1, 1);

Body9.setRotationPoint(0F, 0F, 0F);

Body9.setTextureSize(64, 32);

Body9.mirror = true;

setRotation(Body9, 0F, 1.570796F, 0F);

Body10 = new ModelRenderer(this, 0, 0);

Body10.addBox(-4F, -2F, 1F, 13, 1, 1);

Body10.setRotationPoint(0F, 0F, 0F);

Body10.setTextureSize(64, 32);

Body10.mirror = true;

setRotation(Body10, 0F, 1.570796F, 0F);

Body11 = new ModelRenderer(this, 0, 0);

Body11.addBox(-4F, 0F, 2F, 13, 1, 1);

Body11.setRotationPoint(0F, 0F, 0F);

Body11.setTextureSize(64, 32);

Body11.mirror = true;

setRotation(Body11, 0F, 1.570796F, 0F);

Body12 = new ModelRenderer(this, 0, 0);

Body12.addBox(-4F, -2F, -2F, 13, 1, 1);

Body12.setRotationPoint(0F, 0F, 0F);

Body12.setTextureSize(64, 32);

Body12.mirror = true;

setRotation(Body12, 0F, 1.570796F, 0F);

Body13 = new ModelRenderer(this, 0, 0);

Body13.addBox(-4F, -1F, 2F, 13, 1, 1);

Body13.setRotationPoint(0F, 0F, 0F);

Body13.setTextureSize(64, 32);

Body13.mirror = true;

setRotation(Body13, 0F, 1.570796F, 0F);

Body2 = new ModelRenderer(this, 0, 2);

Body2.addBox(-4F, -3F, 0F, 13, 1, 1);

Body2.setRotationPoint(0F, 0F, 0F);

Body2.setTextureSize(64, 32);

Body2.mirror = true;

setRotation(Body2, 0F, 1.570796F, 0F);

Body3 = new ModelRenderer(this, 0, 4);

Body3.addBox(-4F, -3F, -1F, 13, 1, 1);

Body3.setRotationPoint(0F, 0F, 0F);

Body3.setTextureSize(64, 32);

Body3.mirror = true;

setRotation(Body3, 0F, 1.570796F, 0F);

Body4 = new ModelRenderer(this, 0, 0);

Body4.addBox(-4F, 2F, -1F, 13, 1, 1);

Body4.setRotationPoint(0F, 0F, 0F);

Body4.setTextureSize(64, 32);

Body4.mirror = true;

setRotation(Body4, 0F, 1.570796F, 0F);

Body5 = new ModelRenderer(this, 0, 0);

Body5.addBox(-4F, 2F, 0F, 13, 1, 1);

Body5.setRotationPoint(0F, 0F, 0F);

Body5.setTextureSize(64, 32);

Body5.mirror = true;

setRotation(Body5, 0F, 1.570796F, 0F);

Body6 = new ModelRenderer(this, 0, 0);

Body6.addBox(-4F, 1F, -2F, 13, 1, 1);

Body6.setRotationPoint(0F, 0F, 0F);

Body6.setTextureSize(64, 32);

Body6.mirror = true;

setRotation(Body6, 0F, 1.570796F, 0F);

Body7 = new ModelRenderer(this, 0, 0);

Body7.addBox(-4F, -1F, -3F, 13, 1, 1);

Body7.setRotationPoint(0F, 0F, 0F);

Body7.setTextureSize(64, 32);

Body7.mirror = true;

setRotation(Body7, 0F, 1.570796F, 0F);

Body8 = new ModelRenderer(this, 0, 0);

Body8.addBox(-4F, 0F, -3F, 13, 1, 1);

Body8.setRotationPoint(0F, 0F, 0F);

Body8.setTextureSize(64, 32);

Body8.mirror = true;

setRotation(Body8, 0F, 1.570796F, 0F);

BBody1 = new ModelRenderer(this, 0, 20);

BBody1.addBox(-3F, 0F, 4F, 1, 1, 4);

BBody1.setRotationPoint(0F, 0F, 0F);

BBody1.setTextureSize(64, 32);

BBody1.mirror = true;

setRotation(BBody1, 0F, 0F, 0F);

BBody2 = new ModelRenderer(this, 0, 20);

BBody2.addBox(-3F, -1F, 4F, 1, 1, 4);

BBody2.setRotationPoint(0F, 0F, 0F);

BBody2.setTextureSize(64, 32);

BBody2.mirror = true;

setRotation(BBody2, 0F, 0F, 0F);

BBody3 = new ModelRenderer(this, 0, 20);

BBody3.addBox(-2F, 1F, 4F, 1, 1, 4);

BBody3.setRotationPoint(0F, 0F, 0F);

BBody3.setTextureSize(64, 32);

BBody3.mirror = true;

setRotation(BBody3, 0F, 0F, 0F);

BBody4 = new ModelRenderer(this, 0, 20);

BBody4.addBox(-2F, -2F, 4F, 1, 1, 4);

BBody4.setRotationPoint(0F, 0F, 0F);

BBody4.setTextureSize(64, 32);

BBody4.mirror = true;

setRotation(BBody4, 0F, 0F, 0F);

BBody5 = new ModelRenderer(this, 0, 20);

BBody5.addBox(1F, 1F, 4F, 1, 1, 4);

BBody5.setRotationPoint(0F, 0F, 0F);

BBody5.setTextureSize(64, 32);

BBody5.mirror = true;

setRotation(BBody5, 0F, 0F, 0F);

BBody6 = new ModelRenderer(this, 0, 20);

BBody6.addBox(1F, -2F, 4F, 1, 1, 4);

BBody6.setRotationPoint(0F, 0F, 0F);

BBody6.setTextureSize(64, 32);

BBody6.mirror = true;

setRotation(BBody6, 0F, 0F, 0F);

BBody7 = new ModelRenderer(this, 0, 20);

BBody7.addBox(-1F, 2F, 4F, 1, 1, 4);

BBody7.setRotationPoint(0F, 0F, 0F);

BBody7.setTextureSize(64, 32);

BBody7.mirror = true;

setRotation(BBody7, 0F, 0F, 0F);

BBody8 = new ModelRenderer(this, 0, 20);

BBody8.addBox(0F, 2F, 4F, 1, 1, 4);

BBody8.setRotationPoint(0F, 0F, 0F);

BBody8.setTextureSize(64, 32);

BBody8.mirror = true;

setRotation(BBody8, 0F, 0F, 0F);

BBody9 = new ModelRenderer(this, 0, 20);

BBody9.addBox(2F, -1F, 4F, 1, 1, 4);

BBody9.setRotationPoint(0F, 0F, 0F);

BBody9.setTextureSize(64, 32);

BBody9.mirror = true;

setRotation(BBody9, 0F, 0F, 0F);

BBody10 = new ModelRenderer(this, 0, 20);

BBody10.addBox(2F, 0F, 4F, 1, 1, 4);

BBody10.setRotationPoint(0F, 0F, 0F);

BBody10.setTextureSize(64, 32);

BBody10.mirror = true;

setRotation(BBody10, 0F, 0F, 0F);

BBody11 = new ModelRenderer(this, 0, 20);

BBody11.addBox(-1F, -3F, 4F, 1, 1, 4);

BBody11.setRotationPoint(0F, 0F, 0F);

BBody11.setTextureSize(64, 32);

BBody11.mirror = true;

setRotation(BBody11, 0F, 0F, 0F);

BBody12 = new ModelRenderer(this, 0, 20);

BBody12.addBox(0F, -3F, 4F, 1, 1, 4);

BBody12.setRotationPoint(0F, 0F, 0F);

BBody12.setTextureSize(64, 32);

BBody12.mirror = true;

setRotation(BBody12, 0F, 0F, 0F);

BBody13 = new ModelRenderer(this, 10, 10);

BBody13.addBox(-1F, 1F, 8F, 2, 1, 1);

BBody13.setRotationPoint(0F, 0F, 0F);

BBody13.setTextureSize(64, 32);

BBody13.mirror = true;

setRotation(BBody13, 0F, 0F, 0F);

BBody14 = new ModelRenderer(this, 10, 10);

BBody14.addBox(-1F, -2F, 8F, 2, 1, 1);

BBody14.setRotationPoint(0F, 0F, 0F);

BBody14.setTextureSize(64, 32);

BBody14.mirror = true;

setRotation(BBody14, 0F, 0F, 0F);

BBody15 = new ModelRenderer(this, 10, 10);

BBody15.addBox(1F, -1F, 8F, 1, 2, 1);

BBody15.setRotationPoint(0F, 0F, 0F);

BBody15.setTextureSize(64, 32);

BBody15.mirror = true;

setRotation(BBody15, 0F, 0F, 0F);

BBody15 = new ModelRenderer(this, 10, 10);

BBody15.addBox(-2F, -1F, 8F, 1, 2, 1);

BBody15.setRotationPoint(0F, 0F, 0F);

BBody15.setTextureSize(64, 32);

BBody15.mirror = true;

setRotation(BBody15, 0F, 0F, 0F);

RSide1 = new ModelRenderer(this, 0, 14);

RSide1.addBox(-4F, -1F, 4F, 1, 2, 2);

RSide1.setRotationPoint(0F, 0F, 0F);

RSide1.setTextureSize(64, 32);

RSide1.mirror = true;

setRotation(RSide1, 0F, 0F, 0F);

RSide2 = new ModelRenderer(this, 0, 20);

RSide2.addBox(2F, -2F, 4F, 1, 1, 2);

RSide2.setRotationPoint(0F, 0F, 0F);

RSide2.setTextureSize(64, 32);

RSide2.mirror = true;

setRotation(RSide2, 0F, 0F, 0F);

RSide3 = new ModelRenderer(this, 0, 20);

RSide3.addBox(2F, 1F, 4F, 1, 1, 2);

RSide3.setRotationPoint(0F, 0F, 0F);

RSide3.setTextureSize(64, 32);

RSide3.mirror = true;

setRotation(RSide3, 0F, 0F, 0F);

LSide1 = new ModelRenderer(this, 0, 10);

LSide1.addBox(3F, -1F, 4F, 1, 2, 2);

LSide1.setRotationPoint(0F, 0F, 0F);

LSide1.setTextureSize(64, 32);

LSide1.mirror = true;

setRotation(LSide1, 0F, 0F, 0F);

LSide2 = new ModelRenderer(this, 0, 20);

LSide2.addBox(-3F, -2F, 4F, 1, 1, 2);

LSide2.setRotationPoint(0F, 0F, 0F);

LSide2.setTextureSize(64, 32);

LSide2.mirror = true;

setRotation(LSide2, 0F, 0F, 0F);

LSide3 = new ModelRenderer(this, 0, 20);

LSide3.addBox(-3F, 1F, 4F, 1, 1, 2);

LSide3.setRotationPoint(0F, 0F, 0F);

LSide3.setTextureSize(64, 32);

LSide3.mirror = true;

setRotation(LSide3, 0F, 0F, 0F);

}

 

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)

{

super.render(entity, f, f1, f2, f3, f4, f5);

setRotationAngles(f, f1, f2, f3, f4, f5, entity);

Front1.render(f5);

Front2.render(f5);

Front3.render(f5);

Front4.render(f5);

Front5.render(f5);

Front6.render(f5);

Front7.render(f5);

Front8.render(f5);

LFront1.render(f5);

LFront2.render(f5);

LFront3.render(f5);

LFront4.render(f5);

LFront5.render(f5);

LFront6.render(f5);

LFront7.render(f5);

LFront8.render(f5);

LFront9.render(f5);

LFront10.render(f5);

LFront11.render(f5);

LFront12.render(f5);

Body9.render(f5);

Body9.render(f5);

Body9.render(f5);

Body9.render(f5);

Body9.render(f5);

Body2.render(f5);

Body3.render(f5);

Body4.render(f5);

Body5.render(f5);

Body6.render(f5);

Body7.render(f5);

Body8.render(f5);

BBody1.render(f5);

BBody2.render(f5);

BBody3.render(f5);

BBody4.render(f5);

BBody5.render(f5);

BBody6.render(f5);

BBody7.render(f5);

BBody8.render(f5);

BBody9.render(f5);

BBody10.render(f5);

BBody11.render(f5);

BBody12.render(f5);

BBody13.render(f5);

BBody14.render(f5);

BBody15.render(f5);

BBody15.render(f5);

RSide1.render(f5);

RSide2.render(f5);

RSide3.render(f5);

LSide1.render(f5);

LSide2.render(f5);

LSide3.render(f5);

}

 

private void setRotation(ModelRenderer model, float x, float y, float z)

{

model.rotateAngleX = x;

model.rotateAngleY = y;

model.rotateAngleZ = z;

}

 

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity ent)

{

super.setRotationAngles(f, f1, f2, f3, f4, f5, ent);

}

 

}

 

 

This is really starting to confuse me, so thanks for the help guys. Tell me if you need any thing else to help out.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

I checked one last time and I think I found it, for some reason Techne copied Front2.mirrior = true; and placed it in two separate areas. Though, when I try to equip the model I crash, I'll look into it further and try to find out what it is this time.

 

Error Code:

 

[sTDERR] java.lang.Error: Unresolved compilation problem:

2013-03-27 09:25:15 [iNFO] [sTDERR] The method func_98187_b(String, int) is undefined for the type RenderEngine

2013-03-27 09:25:15 [iNFO] [sTDERR]

2013-03-27 09:25:15 [iNFO] [sTDERR] at sypher.mps.models.ItemRenderLauncher.renderItem(ItemRenderLauncher.java:46)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraftforge.client.ForgeHooksClient.renderEquippedItem(ForgeHooksClient.java:187)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraft.client.renderer.ItemRenderer.renderItem(ItemRenderer.java:76)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraft.client.renderer.ItemRenderer.renderItemInFirstPerson(ItemRenderer.java:492)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.renderHand(EntityRenderer.java:697)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1271)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:991)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)

2013-03-27 09:25:15 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:756)

2013-03-27 09:25:15 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

2013-03-27 09:25:25 [iNFO] [Minecraft-Client] Stopping!

2013-03-27 09:25:25 [iNFO] [sTDOUT] [spoiler\]

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

Please use pastebin(With syntax highlightning: Java) when posting code, then it looks like this: http://pastebin.com/b85FsjAE

Look it even got line numbers! :D

 

Looking at the pastebin, then line 79 seems okay, but since we are copy-pasting I assume the lines can have jumped up or down a line.

 

So looking at the area around line 79 you see something quite interesting:

Front2.mirror = true;
      Front2 = new ModelRenderer(this, 0, 30);
      Front2.addBox(11F, 1F, 0F, 3, 1, 1);

 

You are setting a property of Front2 before you instansiate Front2, this would cause the exception, since Front2 is null when you try to set mirror=true;

If you guys dont get it.. then well ya.. try harder...

Posted

That's what I found, Techne seems to have duplicated that part. I removed the first one and it fixed the issue, though now the model crashes when trying to load the texture. I'm currently working with an un-textured model to get the correct position until I can find what the texture loading is messing up, the error code is posted above. I'll make sure to post in pastebin next time, thanks for the advice.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted
[sTDERR] java.lang.Error: Unresolved compilation problem:

The method func_98187_b(String, int) is undefined for the type RenderEngine

 

at sypher.mps.models.ItemRenderLauncher.renderItem(ItemRenderLauncher.java:46)

 

Read the error log my friend, it tells you most of the time the source of your problem ;)

What does these two lines from the log tell you?

 

It should tell you that the problem is inside a different code file than the one we fixed a problem inn earlier, meaning we need that file in pastebin to help you debugg it ;)

Also it tells you the line number, so you could probably check it out yourself.

 

And it does inn plain english say that some method is undefined, what do you think that means?

 

 

If you guys dont get it.. then well ya.. try harder...

Posted

I'm getting the same error which doesn't make sense

 

Here's my crash report

---- Minecraft Crash Report ----
// Ouch. That hurt 

Time: 3/27/13 10:00 AM
Description: Failed to start game

java.lang.NullPointerException
at com.biosystemstudios.ClientProxy.registerRenderThings(ClientProxy.java:14)
at com.biosystemstudios.mod_MainClass.load(mod_MainClass.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Thread.java:722)


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

-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 845715608 bytes (806 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.8.608 Minecraft Forge 7.7.0.608 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
terestrial [Extra Terestrial Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 5450 GL version 4.2.11631 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
[.

 

Here is my classes

 

ClientProxy

http://pastebin.com/s7Xc6h0n

 

BlinSwordModel

package com.biosystemstudios;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;

public class BlinSwordModel extends ModelBase
{
//fields
public ModelRenderer Hilt2;
public ModelRenderer Hilt1;
public ModelRenderer Handle;
public ModelRenderer Bludge1;
public ModelRenderer Bludge2;
public ModelRenderer Blade1;
public ModelRenderer Blade2;
public ModelRenderer Blade3;
public ModelRenderer Shape1;

public BlinSwordModel()
{
	textureWidth = 64;
	textureHeight = 64;

	Hilt2 = new ModelRenderer(this, 0, 30);
	Hilt2.addBox(-4F, 0F, 0F, 8, 1, 1);
	Hilt2.setRotationPoint(0F, 1F, 0F);
	Hilt2.setTextureSize(64, 64);
	Hilt2.mirror = true;
	setRotation(Hilt2, 0F, 0F, 0F);
	Hilt1 = new ModelRenderer(this, 0, 30);
	Hilt1.addBox(-3F, 0F, 0F, 6, 1, 1);
	Hilt1.setRotationPoint(0F, 0F, 0F);
	Hilt1.setTextureSize(64, 64);
	Hilt1.mirror = true;
	setRotation(Hilt1, 0F, 0F, 0F);
	Handle = new ModelRenderer(this, 0, 34);
	Handle.addBox(-1F, -3F, -1F, 2, 6, 2);
	Handle.setRotationPoint(0F, 5F, 0.5F);
	Handle.setTextureSize(64, 64);
	Handle.mirror = true;
	setRotation(Handle, 0F, 0F, 0F);
	Bludge1 = new ModelRenderer(this, 25, 0);
	Bludge1.addBox(0F, 0F, 0F, 3, 2, 3);
	Bludge1.setRotationPoint(-1.5F, 8F, -1F);
	Bludge1.setTextureSize(64, 64);
	Bludge1.mirror = true;
	setRotation(Bludge1, 0F, 0F, 0F);
	Bludge2 = new ModelRenderer(this, 25, 0);
	Bludge2.addBox(0F, 0F, 0F, 2, 1, 2);
	Bludge2.setRotationPoint(-1F, 10F, -0.5F);
	Bludge2.setTextureSize(64, 64);
	Bludge2.mirror = true;
	setRotation(Bludge2, 0F, 0F, 0F);
	Blade1 = new ModelRenderer(this, 0, 0);
	Blade1.addBox(0F, 0F, 0F, 3, 16, 1);
	Blade1.setRotationPoint(-1.5F, -16F, 0F);
	Blade1.setTextureSize(64, 64);
	Blade1.mirror = true;
	setRotation(Blade1, 0F, 0F, 0F);
	Blade2 = new ModelRenderer(this, 9, 0);
	Blade2.addBox(0F, 0F, 0F, 1, 3, 1);
	Blade2.setRotationPoint(-0.25F, -18F, 0F);
	Blade2.setTextureSize(64, 64);
	Blade2.mirror = true;
	setRotation(Blade2, 0F, 0F, -0.2617994F);
	Blade3 = new ModelRenderer(this, 9, 0);
	Blade3.addBox(0F, 0F, 0F, 1, 3, 1);
	Blade3.setRotationPoint(-0.7F, -18.25F, 0F);
	Blade3.setTextureSize(64, 64);
	Blade3.mirror = true;
	setRotation(Blade3, 0F, 0F, 0.2617994F);
	Shape1 = new ModelRenderer(this, 9, 0);
	Shape1.addBox(0F, 0F, 0F, 1, 1, 1);
	Shape1.setRotationPoint(-0.5F, -17F, 0F);
	Shape1.setTextureSize(64, 64);
	Shape1.mirror = true;
	setRotation(Shape1, 0F, 0F, 0F);
}

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
	super.render(entity, f, f1, f2, f3, f4, f5);
	setRotationAngles(f, f1, f2, f3, f4, f5, entity);
	Hilt2.render(f5);
	Hilt1.render(f5);
	Handle.render(f5);
	Bludge1.render(f5);
	Bludge2.render(f5);
	Blade1.render(f5);
	Blade2.render(f5);
	Blade3.render(f5);
	Shape1.render(f5);
}

private void setRotation(ModelRenderer model, float x, float y, float z)
{
	model.rotateAngleX = x;
	model.rotateAngleY = y;
	model.rotateAngleZ = z;
}

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
{
	super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
}

}

ItemRenderSword

package com.biosystemstudios;

import org.lwjgl.opengl.GL11;

import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.IItemRenderer;

public class ItemRenderSword implements IItemRenderer {

protected BlinSwordModel swordModel;

public ItemRenderSword(){
	swordModel = new BlinSwordModel();
}

@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type) {
	switch(type){
	case EQUIPPED: return true;
	default: return false;
	}
}

@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
	return false;
}

@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
	switch(type){
	case EQUIPPED:
	{
		GL11.glPushMatrix();

		Minecraft.getMinecraft().renderEngine.bindTexture("/mods/et/textures/models/BlinSword.png");
		swordModel.render((Entity)data[1], 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f);
		GL11.glPopMatrix();
	}
	default:
		break;
	}
}

}

mod_MainClass

package com.biosystemstudios;

import net.minecraft.block.Block;
import net.minecraft.block.BlockSand;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityEggInfo;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.EnumHelper;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = "terestrial", name = "Extra Terestrial Mod", version = "0.1")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class mod_MainClass {

@SidedProxy(clientSide = "com.biosystemstudios.ClientProxy", serverSide = "com.biosystemstudios.ServerProxy")
public static ServerProxy proxy;

//Blocks
public static Block TutBlock;
public static Block CannonBlock;
//items
public static Item BlinOreRaw;
public static Item BlinOrePure;
public static Item BlinShard;
public static Item BlinCrystal;
public static Item BlinPaxel;
public static Item GlassBox;
//Tools
public static Item BlinomiumPickaxe;
public static Item BlinomiumAxe;
public static Item BlinomiumShovel;
public static Item BlinomiumHoe;
public static Item BlinomiumSword;

//Armor
public static Item BlinHelmet;
public static Item BlinPlate;
public static Item BlinLegs;
public static Item BlinBoots;

// Pre-Init
@PreInit
public void load(FMLPreInitializationEvent PreEvent){

}

// Init
@Init
public void load(FMLInitializationEvent e){
	proxy.registerRenderThings();
	proxy.registerServerTickHandler();

	addBlocks(); 			// Blocks
	addItems();				// Items
	addTools();				// Tools
	addArmor();				// Armor
	addRecipes();			// Recipes
	addMobs();				// Mobs

	EntityEgg(EntityAlien.class, 0xFFFFFF, 0x00DD00);
	GameRegistry.registerWorldGenerator(new worldGeneratorBlinomium());
	GameRegistry.registerTileEntity(CannonTileEntity.class, "cannonTileEntity");

}

private void addBlocks(){
	TutBlock = new TutBlock(450).setHardness(1.5f).setResistance(17.0f).setUnlocalizedName("Tut Block").setLightValue(0.9f);
	CannonBlock = new CannonBlock(451).setHardness(175.0f).setResistance(20.0f).setUnlocalizedName("Cannon Block");
	MinecraftForge.setBlockHarvestLevel(TutBlock, "pickaxe", 3);
	GameRegistry.registerBlock(TutBlock, "BiosystemStudios.TutBlock");
	GameRegistry.registerBlock(CannonBlock, "BiosystemStudios.CannonBlock");
}

private void addItems(){
	BlinOreRaw = new BlinOreRaw(2000).setUnlocalizedName("Raw Blinomium Ore");
	BlinOrePure = new BlinOrePure(2001).setUnlocalizedName("Pure Blinomium Ore");
	BlinShard = new BlinShard(2002).setUnlocalizedName("Blinomium Shard");
	BlinCrystal = new BlinCrystal(2003, -6, -7.0f, false).setUnlocalizedName("Blinomium Crystal");
	GlassBox = new GlassBox(2004).setUnlocalizedName("Glass Box");
}

private void addArmor(){
	EnumArmorMaterial BlinArmorMaterial = EnumHelper.addArmorMaterial("Blinomium Armor Material", 40, new int[]{4, 9, 7, 4}, 10);

	BlinHelmet = new BlinArmor(4000, BlinArmorMaterial, proxy.addArmor("Blinomium"), 0).setUnlocalizedName("Blin Helmet");
	BlinPlate = new BlinArmor(4001, BlinArmorMaterial, proxy.addArmor("Blinomium"), 1).setUnlocalizedName("Blin Plate");
	BlinLegs = new BlinArmor(4002, BlinArmorMaterial, proxy.addArmor("Blinomium"), 2).setUnlocalizedName("Blin Legs");
	BlinBoots = new BlinArmor(4003, BlinArmorMaterial, proxy.addArmor("Blinomium"), 3).setUnlocalizedName("Blin Boots");
}

private void addTools(){
	EnumToolMaterial BlinomiumTool = EnumHelper.addToolMaterial("Blinomium Material", 2, 6400, 24.0f, 8, 10);

	BlinomiumPickaxe = new BlinomiumPickaxe(3000, BlinomiumTool).setUnlocalizedName("Blinomium Pickaxe");
	BlinomiumAxe = new BlinomiumAxe(3001, BlinomiumTool).setUnlocalizedName("Blinomium Axe");
	BlinomiumShovel = new BlinomiumShovel(3002, BlinomiumTool).setUnlocalizedName("Blinomium Spade");
	BlinomiumHoe = new BlinomiumHoe(3003, BlinomiumTool).setUnlocalizedName("Blinomium Hoe");
	BlinomiumSword = new BlinomiumSword(3004, BlinomiumTool).setUnlocalizedName("Blinomium Sword").setFull3D();
	BlinPaxel = new BlinomiumPaxel(3005, BlinomiumTool).setUnlocalizedName("Blinomium Paxel");
}

private void addMobs(){
	EntityRegistry.registerModEntity(EntityAlien.class, "AlienEntity", 1, this, 80, 5, true);
	EntityRegistry.addSpawn(EntityAlien.class, 10, 1, 3, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.desert, 
																					BiomeGenBase.extremeHills, BiomeGenBase.forest,
																					BiomeGenBase.jungle, BiomeGenBase.plains,
																					BiomeGenBase.taiga, BiomeGenBase.taigaHills);
	LanguageRegistry.instance().addStringLocalization("entity.terestrial.AlienEntity.name", "Alien Entity");
}

private void registerItemNames(){
	LanguageRegistry.addName(TutBlock, "Raw Blinomium Ore");
	LanguageRegistry.addName(BlinOreRaw, "Impure Blinomium Ore");
	LanguageRegistry.addName(BlinOrePure, "Blinomium Ingot");
	LanguageRegistry.addName(BlinomiumPickaxe, "Blinomium Pickaxe");
	LanguageRegistry.addName(BlinomiumAxe, "Blinomium Axe");
	LanguageRegistry.addName(BlinomiumShovel, "Blinomium Shovel");
	LanguageRegistry.addName(BlinomiumHoe, "Blinomium Hoe");
	LanguageRegistry.addName(BlinomiumSword, "Blinomium Sword");
	LanguageRegistry.addName(BlinHelmet, "Blinomium Helmet");
	LanguageRegistry.addName(BlinPlate, "Blinomium Plate");
	LanguageRegistry.addName(BlinLegs, "Blinomium Legs");
	LanguageRegistry.addName(BlinBoots, "Blinomium Boots");
	LanguageRegistry.addName(BlinShard, "Blinomium Shard");
	LanguageRegistry.addName(BlinCrystal, "Blinomium Crystal");
	LanguageRegistry.addName(CannonBlock, "Cannon");
	LanguageRegistry.addName(BlinPaxel, "Ultimate Blinomium Tool");
	LanguageRegistry.addName(GlassBox, "Uncharged Cannon");
}

private void addRecipes(){

	//Recipes
	//  Tools
	GameRegistry.addRecipe(new ItemStack(this.BlinomiumPickaxe, 1), new Object[]{ 
		"BBB", " S ", " S ", 'B', this.BlinOrePure, 'S', Item.stick
	});
	GameRegistry.addRecipe(new ItemStack(this.BlinomiumSword, 1), new Object[]{
		" B ", " B ", " S ", 'B', this.BlinOrePure, 'S', Item.stick
	});
	GameRegistry.addRecipe(new ItemStack(this.BlinomiumAxe, 1), new Object[]{
		"BB ","BS ", " S ", 'B', this.BlinOrePure, 'S', Item.stick
	});
	GameRegistry.addRecipe(new ItemStack(this.BlinomiumShovel, 1), new Object[]{
		" B ", " S ", " S ", 'B', this.BlinOrePure, 'S', Item.stick
	});
	GameRegistry.addRecipe(new ItemStack(this.BlinomiumHoe, 1), new Object[]{
		"BB ", " S ", " S ", 'B', this.BlinOrePure, 'S', Item.stick
	});

	//  Armors
	GameRegistry.addRecipe(new ItemStack(this.BlinHelmet, 1), new Object[] {
		"BBB", "B B", "   ", 'B', this.BlinOrePure
	});
	GameRegistry.addRecipe(new ItemStack(this.BlinPlate, 1), new Object[]{
		"b b", "bbb", "bbb", 'b', this.BlinOrePure
	});
	GameRegistry.addRecipe(new ItemStack(this.BlinLegs, 1), new Object[]{
		"bbb", "b b", "b b", 'b', this.BlinOrePure
	});
	GameRegistry.addRecipe(new ItemStack(this.BlinBoots, 1), new Object[]{
		"   ", "b b", "b b", 'b', this.BlinOrePure
	});

	//Smelting Recipes
	GameRegistry.addSmelting(this.TutBlock.blockID, new ItemStack(this.BlinOreRaw, 1), 10.0f);
	GameRegistry.addSmelting(this.BlinOreRaw.itemID , new ItemStack(this.BlinOrePure, 1), 10.0f);

	/*GameRegistry.addRecipe(new ItemStack(this.BlinOrePure, 1), new Object[]{
		"r", 'r', (new ItemStack(mod_MainClass.BlinOreRaw, 1, -1))
	});*/


	//Misc. Recipes
	GameRegistry.addRecipe(new ItemStack(this.BlinCrystal, 1), new Object[]{
		"ss", "ss", 's', this.BlinShard
	});
	GameRegistry.addShapelessRecipe(new ItemStack(this.CannonBlock, 1), new Object[]{
		this.BlinCrystal, this.GlassBox
	});
	GameRegistry.addRecipe(new ItemStack(this.GlassBox, 1), new Object[]{
		"iii","i p", "iii", 'i', Item.ingotIron, 'p', Block.thinGlass
	});
}

public static int getUniqueID(){
	int EntityId = 300;
	do{
		EntityId++;
	}while(EntityList.getStringFromID(EntityId) != null);

	return EntityId;
}

public static void EntityEgg(Class<? extends Entity > entity, int primaryColor, int secondaryColor){
	int id = getUniqueID();
	EntityList.IDtoClassMapping.put(id, entity);
	EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));
}


// Post Load
@PostInit
public void PostLoad(FMLPostInitializationEvent PostEvent){
	registerItemNames();	//Item Names
}
}

 

 

Not quite sure why I am getting a null pointer exception. I have my itemID and the ItemRender class in there. Not sure why I'm crashing

Bumper Cars!

Posted

have you put this string of code in your model?

 

public void renderModel(float f1)

  {

    YOURMODELPART1.render(f1);      //Should be your model part ex: arm1, arm2, leg2//

    YOURMODELPART2.render(f1);

    YOURMODELPART3.render(f1);

 

    //etc....//

 

  }

 

PS: i'm sure that Mazetar (the post up mine) didn't do that... for you, well, i don't have your source

Actually i don't know what to write in this signature soooo.... anyway

Posted

have you put this string of code in your model?

 

public void renderModel(float f1)

  {

    YOURMODELPART1.render(f1);      //Should be your model part ex: arm1, arm2, leg2//

    YOURMODELPART2.render(f1);

    YOURMODELPART3.render(f1);

 

    //etc....//

 

  }

 

PS: i'm sure that Mazetar (the post up mine) didn't do that... for you, well, i don't have your source

 

Not sure if you were referring to me because I have listed all my source code and it's not renderModel it's just render

Bumper Cars!

Posted

have you put this string of code in your model?

 

public void renderModel(float f1)

  {

    YOURMODELPART1.render(f1);      //Should be your model part ex: arm1, arm2, leg2//

    YOURMODELPART2.render(f1);

    YOURMODELPART3.render(f1);

 

    //etc....//

 

  }

 

PS: i'm sure that Mazetar (the post up mine) didn't do that... for you, well, i don't have your source

 

Not sure if you were referring to me because I have listed all my source code and it's not renderModel it's just render

 

 

No, there are two codes: render and renderModel, and when you make a custom block model (but not in an entity model) you should do renderModel too

Actually i don't know what to write in this signature soooo.... anyway

Posted

have you put this string of code in your model?

 

public void renderModel(float f1)

  {

    YOURMODELPART1.render(f1);      //Should be your model part ex: arm1, arm2, leg2//

    YOURMODELPART2.render(f1);

    YOURMODELPART3.render(f1);

 

    //etc....//

 

  }

 

PS: i'm sure that Mazetar (the post up mine) didn't do that... for you, well, i don't have your source

 

Not sure if you were referring to me because I have listed all my source code and it's not renderModel it's just render

 

 

No, there are two codes: render and renderModel, and when you make a custom block model (but not in an entity model) you should do renderModel too

 

Oh well I dont have "renderModels" in my code but here is how I fixed it

 

I had my addTools method before my proxy.registerRenderThings method thus It was trying to obtain

 

here is my new source code for my @Init load method

@Init
public void load(FMLInitializationEvent e){
	addBlocks(); 
	addItems();
	addTools();     // <- Notice how this method
	addArmor();
	addRecipes();
	addMobs();
	proxy.registerRenderThings(); // <- is now BEFORE this method
	proxy.registerServerTickHandler();

	EntityEgg(EntityAlien.class, 0xFFFFFF, 0x00DD00);
	GameRegistry.registerWorldGenerator(new worldGeneratorBlinomium());
	GameRegistry.registerTileEntity(CannonTileEntity.class, "cannonTileEntity");

}

Bumper Cars!

Posted

I'm getting the same error which doesn't make sense

 

Here's my crash report

---- Minecraft Crash Report ----
// Ouch. That hurt 

Time: 3/27/13 10:00 AM
Description: Failed to start game

java.lang.NullPointerException
at com.biosystemstudios.ClientProxy.registerRenderThings(ClientProxy.java:14)
at com.biosystemstudios.mod_MainClass.load(mod_MainClass.java:70)

 

No you don't have the same problem, yours is totally different. He's error is a method being undefined.

And yours is clearly an Null Pointer Exception -_-

 

It's located inn your client proxy's line number 14.

If you guys dont get it.. then well ya.. try harder...

Posted

 

[sTDERR] java.lang.Error: Unresolved compilation problem:

The method func_98187_b(String, int) is undefined for the type RenderEngine

 

at sypher.mps.models.ItemRenderLauncher.renderItem(ItemRenderLauncher.java:46)

 

Read the error log my friend, it tells you most of the time the source of your problem ;)

What does these two lines from the log tell you?

 

It should tell you that the problem is inside a different code file than the one we fixed a problem inn earlier, meaning we need that file in pastebin to help you debugg it ;)

Also it tells you the line number, so you could probably check it out yourself.

 

And it does inn plain english say that some method is undefined, what do you think that means?

 

 

Yes, I know what the error message is telling me. Clicking on the error in Eclipse takes you straight to the problematic line. My main problem is I don't know what is going wrong, how is the string undefined? This is the line that's supposed to add the texture to the model, it works fine without it except for being half invisible and made of books and apples. Here's the source code: http://pastebin.com/br2H3wgm

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

It means that here is no such method, called "func_98187_b" inside RenderEngine.

Since your tutorial says there is, I would assume it did exist earlier but now has been renamed.

I'm not familiar with rendering code so I'm not sure what it's renamed too but that should be possible to find out :)

 

 

If you guys dont get it.. then well ya.. try harder...

Posted

I messed around with the code and looked into the renderEngine class fine, I believe that func_98187_b has been replaced with bindTexture. The game no longer crashes when it renders the texture, however, the texture comes up as white with black stripes, like the missing texture thing. I think that I'm using the wrong string import for bindTexture, but I'm not sure. Currently using

Minecraft.getMinecraft().renderEngine.bindTexture("/mps/models/ArmCannonTexture.png");

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

Okay, the texture still has shown up so I believe that I'm using the wrong string. On a much worse note, I found out that the model was too long so I shortened it and added some parts, now I get this error:

 

2013-03-28 17:43:16 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

2013-03-28 17:43:16 [sEVERE] [ForgeModLoader]

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Mps [Metroid Prime Suits] (bin) Unloaded->Constructed->Pre-initialized->Errored

2013-03-28 17:43:16 [sEVERE] [ForgeModLoader] The following problems were captured during this phase

2013-03-28 17:43:16 [sEVERE] [ForgeModLoader] Caught exception from Mps

java.lang.Error: Unresolved compilation problems:

Front2 cannot be resolved to a variable

Front2 cannot be resolved to a variable

Front cannot be resolved

Front cannot be resolved

Front cannot be resolved

Front cannot be resolved

 

at sypher.mps.models.ArmCannonModel1.<init>(ArmCannonModel1.java:63)

at sypher.mps.models.ItemRenderLauncher.<init>(ItemRenderLauncher.java:23)

at sypher.mps.client.ClientProxy.registerRenderers(ClientProxy.java:42)

at sypher.mps.MpsBase.load(MpsBase.java:84)

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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Unknown Source)

I'm looking into it, but the more the merrier so help is appreciated.

The updated model class is here: http://pastebin.com/reaxU19y

Eclipse says there are errors on lines: 63, 65, 69, 79.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

I can't figure how to get the model to work with parts, so I removed them in the end. It works fine now, though the texture is still giving my errors. I tested a lot and I'm positive that bindTexture is what replaced func_(randomnumber)_b, though I still have trouble with how to tell it where the texture file is.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

Okay, after more testing I've figured it out! The correct code is now:

Minecraft.getMinecraft().renderEngine.bindTexture("/mods/<ModName>/<Any Additional Folders, (models/textures, etc.) /<TextureName>.png");

This will render the models texture! The topic is now officially solved.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • that happens every time I enter a new dimension.
    • This is the last line before the crash: [ebwizardry]: Synchronising spell emitters for PixelTraveler But I have no idea what this means
    • What in particular? I barely used that mod this time around, and it's never been a problem in the past.
    • Im trying to build my mod using shade since i use the luaj library however i keep getting this error Reason: Task ':reobfJar' uses this output of task ':shadowJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. So i try adding reobfJar.dependsOn shadowJar  Could not get unknown property 'reobfJar' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. my gradle file plugins { id 'eclipse' id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0,6.2)' id 'com.github.johnrengelman.shadow' version '7.1.2' id 'org.spongepowered.mixin' version '0.7.+' } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'org.spongepowered.mixin' apply plugin: 'com.github.johnrengelman.shadow' version = mod_version group = mod_group_id base { archivesName = mod_id } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) //jarJar.enable() println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { mappings channel: mapping_channel, version: mapping_version copyIdeResources = true runs { configureEach { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' arg "-mixin.config=derp.mixin.json" mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { workingDirectory project.file('run-data') args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { flatDir { dirs './libs' } maven { url = "https://jitpack.io" } } configurations { shade implementation.extendsFrom shade } dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" implementation 'org.luaj:luaj-jse-3.0.2' implementation fg.deobf("com.github.Virtuoel:Pehkui:${pehkui_version}") annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' minecraftLibrary 'luaj:luaj-jse:3.0.2' shade 'luaj:luaj-jse:3.0.2' } // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors, 'Specification-Version' : '1', // We are version 1 of ourselves 'Implementation-Title' : project.name, 'Implementation-Version' : project.jar.archiveVersion, 'Implementation-Vendor' : mod_authors, 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"), "TweakClass" : "org.spongepowered.asm.launch.MixinTweaker", "TweakOrder" : 0, "MixinConfigs" : "derp.mixin.json" ]) } rename 'mixin.refmap.json', 'derp.mixin-refmap.json' } shadowJar { archiveClassifier = '' configurations = [project.configurations.shade] finalizedBy 'reobfShadowJar' } assemble.dependsOn shadowJar reobf { re shadowJar {} } publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } } } my entire project:https://github.com/kevin051606/DERP-Mod/tree/Derp-1.0-1.20
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.