Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.7.10][Solved]Changed my mob's size, and now the game is crashing.

Featured Replies

Posted

I don't understand why it's crashing, all I did was change the size of my mob's blocks and rearrange them according to their new size, then copied only the coding for block size, rotation points, texture size, etc.

 

Here's the crash:

 

---- Minecraft Crash Report ----
// My bad.

Time: 11/7/14 4:21 PM
Description: Initializing game

java.lang.NullPointerException: Initializing game
at com.multiverse.mob.RaptorModel.<init>(RaptorModel.java:86)
at com.multiverse.main.ClientProxy.registerRenderThings(ClientProxy.java:17)
at com.multiverse.main.MainRegistry.PreLoad(MainRegistry.java:55)
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:513)
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.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
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.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:164)
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 GradleStart.bounce(GradleStart.java:107)
at GradleStart.startClient(GradleStart.java:100)
at GradleStart.main(GradleStart.java:55)


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

-- Head --
Stacktrace:
at com.multiverse.mob.RaptorModel.<init>(RaptorModel.java:86)
at com.multiverse.main.ClientProxy.registerRenderThings(ClientProxy.java:17)
at com.multiverse.main.MainRegistry.PreLoad(MainRegistry.java:55)
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:513)
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.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
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.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:164)
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 GradleStart.bounce(GradleStart.java:107)
at GradleStart.startClient(GradleStart.java:100)
at GradleStart.main(GradleStart.java:55)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.7.0_71, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 938346880 bytes (894 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized
Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized
multiverse{1.0} [Multiverse Mod] (bin) Unloaded->Constructed->Errored
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 8240 GL version 4.3.12618 Compatibility Profile Context 13.251.0.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

 

and here's my model class:

 

package com.multiverse.mob;

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

public class RaptorModel extends ModelBase
{
  //fields
    ModelRenderer Body;
    ModelRenderer Tail_Front;
    ModelRenderer Tail_Back;
    ModelRenderer Neck;
    ModelRenderer Skull;
    ModelRenderer Mouth;
    ModelRenderer Left_Arm;
    ModelRenderer Right_Arm;
    ModelRenderer Left_Leg;
    ModelRenderer Right_Leg;
    ModelRenderer Left_Foot;
    ModelRenderer Right_Foot;
    ModelRenderer Left_Foot_Claw;
    ModelRenderer Right_Foot_Claw;
    
    protected void convertToChild(ModelRenderer parParent, ModelRenderer parChild)
    {
   parChild.rotationPointX -= parParent.rotationPointX;
   parChild.rotationPointY -= parParent.rotationPointY;
   parChild.rotationPointZ -= parParent.rotationPointZ;
   // make rotations relative to parent
   parChild.rotateAngleX -= parParent.rotateAngleX;
   parChild.rotateAngleY -= parParent.rotateAngleY;
   parChild.rotateAngleZ -= parParent.rotateAngleZ;
   // create relationship
       parParent.addChild(parChild);
    }
  
  public RaptorModel()
  {
    textureWidth = 256;
    textureHeight = 64;
    
      Body = new ModelRenderer(this, 0, 0);
      Body.addBox(0F, 0F, 0F, 12, 16, 20);
      Body.setRotationPoint(-6F, -6F, -10F);
      Body.setTextureSize(256, 64);
      Body.mirror = true;
      setRotation(Body, 0F, 0F, 0F);
      Tail_Front = new ModelRenderer(this, 66, 0);
      Tail_Front.addBox(0F, 0F, 0F, 8, 10, 18);
      Tail_Front.setRotationPoint(-4F, -4F, 10F);
      Tail_Front.setTextureSize(256, 64);
      Tail_Front.mirror = true;
      setRotation(Tail_Front, 0F, 0F, 0F);
      Tail_Back = new ModelRenderer(this, 119, 0);
      Tail_Back.addBox(0F, 0F, 0F, 4, 6, 20);
      Tail_Back.setRotationPoint(-1F, -2F, 28F);
      Tail_Back.setTextureSize(256, 64);
      Tail_Back.mirror = true;
      setRotation(Tail_Back, 0F, 0F, 0F);
      Neck = new ModelRenderer(this, 168, 0);
      Neck.addBox(0F, 0F, -7F, 8, 8, 12);
      Neck.setRotationPoint(-4F, -5F, -10F);
      Neck.setTextureSize(256, 64);
      Neck.mirror = true;
      setRotation(Neck, -0.5235988F, 0F, 0F);
      Skull = new ModelRenderer(this, 66, 30);
      Skull.addBox(0F, -1F, -10F, 8, 10, 10);
      Skull.setRotationPoint(-4F, -9F, -16F);
      Skull.setTextureSize(256, 64);
      Skull.mirror = true;
      setRotation(Skull, 0F, 0F, 0F);
      Mouth = new ModelRenderer(this, 0, 38);
      Mouth.addBox(0F, 0F, -8F, 8, 8, ;
      Mouth.setRotationPoint(-4F, -8F, -26F);
      Mouth.setTextureSize(256, 64);
      Mouth.mirror = true;
      setRotation(Mouth, 0F, 0F, 0F);
      Left_Arm = new ModelRenderer(this, 34, 38);
      Left_Arm.addBox(0F, 0F, -5F, 4, 4, 10);
      Left_Arm.setRotationPoint(6F, 9F, -10F);
      Left_Arm.setTextureSize(256, 64);
      Left_Arm.mirror = true;
      setRotation(Left_Arm, 0.5235988F, 0F, 0F);
      Right_Arm.mirror = true;
      Right_Arm = new ModelRenderer(this, 34, 38);
      Right_Arm.addBox(-2F, 0F, -5F, 4, 4, 10);
      Right_Arm.setRotationPoint(-6F, 9F, -10F);
      Right_Arm.setTextureSize(256, 64);
      Right_Arm.mirror = true;
      setRotation(Right_Arm, 0.5235988F, 0F, 0F);
      Right_Arm.mirror = false;
      Left_Leg = new ModelRenderer(this, 104, 30);
      Left_Leg.addBox(-3F, 0F, 0F, 6, 14, 6);
      Left_Leg.setRotationPoint(6F, 10F, -1F);
      Left_Leg.setTextureSize(256, 64);
      Left_Leg.mirror = true;
      setRotation(Left_Leg, 0F, 0F, 0F);
      Right_Leg.mirror = true;
      Right_Leg = new ModelRenderer(this, 104, 30);
      Right_Leg.addBox(-3F, 0F, 0F, 6, 14, 6);
      Right_Leg.setRotationPoint(-6F, 10F, -1F);
      Right_Leg.setTextureSize(256, 64);
      Right_Leg.mirror = true;
      setRotation(Right_Leg, 0F, 0F, 0F);
      Right_Leg.mirror = false;
      Left_Foot = new ModelRenderer(this, 66, 52);
      Left_Foot.addBox(0F, 0F, -3F, 6, 2, 6);
      Left_Foot.setRotationPoint(3F, 22F, -4F);
      Left_Foot.setTextureSize(256, 64);
      Left_Foot.mirror = true;
      setRotation(Left_Foot, 0F, 0F, 0F);
      Right_Foot.mirror = true;
      Right_Foot = new ModelRenderer(this, 66, 52);
      Right_Foot.addBox(-6F, 0F, -3F, 6, 2, 6);
      Right_Foot.setRotationPoint(-3F, 22F, -4F);
      Right_Foot.setTextureSize(256, 64);
      Right_Foot.mirror = true;
      setRotation(Right_Foot, 0F, 0F, 0F);
      Right_Foot.mirror = false;
      Left_Foot_Claw = new ModelRenderer(this, 93, 52);
      Left_Foot_Claw.addBox(0F, -4F, 0F, 2, 5, 2);
      Left_Foot_Claw.setRotationPoint(5F, 22F, -2F);
      Left_Foot_Claw.setTextureSize(256, 64);
      Left_Foot_Claw.mirror = true;
      setRotation(Left_Foot_Claw, 0.5235988F, 0F, 0F);
      Right_Foot_Claw.mirror = true;
      Right_Foot_Claw = new ModelRenderer(this, 93, 52);
      Right_Foot_Claw.addBox(-2F, -4F, 0F, 2, 5, 2);
      Right_Foot_Claw.setRotationPoint(-5F, 22F, -2F);
      Right_Foot_Claw.setTextureSize(256, 64);
      Right_Foot_Claw.mirror = true;
      setRotation(Right_Foot_Claw, 0.5235988F, 0F, 0F);
      Right_Foot_Claw.mirror = false;
      convertToChild(Skull, Mouth);
      convertToChild(Neck, Skull);
      convertToChild(Tail_Front, Tail_Back);
      convertToChild(Body, Tail_Front);
      convertToChild(Right_Foot, Right_Foot_Claw);
      convertToChild(Right_Leg, Right_Foot);
      convertToChild(Left_Foot, Left_Foot_Claw);
      convertToChild(Left_Leg, Left_Foot);
  }
  
  public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
  {
    setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
    Body.render(par7);
    //Tail_Front.render(par7);
    //Tail_Back.render(par7);
    Neck.render(par7);
    //Skull.render(par7);
    //Mouth.render(par7);
    Left_Arm.render(par7);
    Right_Arm.render(par7);
    Left_Leg.render(par7);
    Right_Leg.render(par7);
    //Left_Foot.render(par7);
    //Right_Foot.render(par7);
    //Left_Foot_Claw.render(par7);
    //Right_Foot_Claw.render(par7);
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
  
  public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
  {
  this.Neck.rotateAngleY = par4 / (180F / (float)Math.PI);
  this.Neck.rotateAngleX = par5 / (170F / (float)Math.PI);
  
  this.Left_Leg.rotateAngleX = MathHelper.cos(par1 * 0.6662F) * 1.4F * par2;
  this.Left_Leg.rotateAngleY = 0.0F;
  this.Right_Leg.rotateAngleX = MathHelper.cos(par1 * 0.6662F + (float)Math.PI) * 1.4F * par2;
  this.Right_Leg.rotateAngleY = 0.0F;
  }

}

 

  • Author

You call

Right_Foot.mirror = true

before initializing Right_Foot to any value.

Ah, thanks. I made it using Techne, this time I mirrored certain textures pieces, so I guess Techne must have a bug when doing so.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.