Jump to content

Recommended Posts

Posted

Hey all, I tried everything I know (not much)and I couldn't create an entity without crashing. So I went and looked at project Zulu ,copied all the relevant code and used it in my mod. My objective is to try and fix the crash, and see my entity. :P Once I do that, I'll start writing the code myself because I'll know what is needed. Only problem is, it still crashes. I'm getting something like a tick issue, which is strange, but here is the crash report. If, just tell me what classes are needed and I can provide them.:

 

 

---- Minecraft Crash Report ----

// I bet Cylons wouldn't have this problem.

 

Time: 12/20/13 12:21 PM

Description: Exception in world tick

 

java.lang.NullPointerException

at net.minecraft.client.multiplayer.NetClientHandler.handleMobSpawn(NetClientHandler.java:952)

at net.minecraft.network.packet.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:143)

at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

at net.minecraft.client.multiplayer.WorldClient.tick(WorldClient.java:99)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1930)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)

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

at net.minecraft.client.main.Main.main(Main.java:93)

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:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.client.multiplayer.NetClientHandler.handleMobSpawn(NetClientHandler.java:952)

at net.minecraft.network.packet.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:143)

at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)

at net.minecraft.client.multiplayer.NetClientHandler.processReadPackets(NetClientHandler.java:281)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player715'/338, l='MpServer', x=201.93, y=64.62, z=67.55]]

Chunk stats: MultiplayerChunkCache: 85

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (130,64,264), Chunk: (at 2,4,8 in 8,16; contains blocks 128,0,256 to 143,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 3724 game time, 3724 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 17 total; [EntityBat['Bat'/373, l='MpServer', x=149.76, y=27.72, z=127.76], EntityCow['Cow'/372, l='MpServer', x=148.22, y=80.00, z=99.22], EntityCow['Cow'/371, l='MpServer', x=145.50, y=85.00, z=98.50], EntityCow['Cow'/370, l='MpServer', x=157.81, y=75.00, z=95.53], EntityBat['Bat'/377, l='MpServer', x=166.47, y=21.10, z=57.31], EntityClientPlayerMP['Player715'/338, l='MpServer', x=201.93, y=64.62, z=67.55], EntityBat['Bat'/378, l='MpServer', x=171.93, y=15.25, z=60.29], EntityBat['Bat'/395, l='MpServer', x=229.75, y=21.45, z=0.42], EntityBat['Bat'/396, l='MpServer', x=227.35, y=20.05, z=7.62], EntityWolf['Wolf'/364, l='MpServer', x=142.50, y=84.00, z=93.50], EntityBear['unknown'/454, l='MpServer', x=199.70, y=63.37, z=65.70], EntityCow['Cow'/365, l='MpServer', x=142.88, y=80.00, z=97.03], EntityWolf['Wolf'/366, l='MpServer', x=140.25, y=80.00, z=97.53], EntityWolf['Wolf'/367, l='MpServer', x=140.66, y=80.00, z=98.69], EntityBat['Bat'/361, l='MpServer', x=139.40, y=15.88, z=69.02], EntityBat['Bat'/362, l='MpServer', x=143.25, y=26.00, z=76.25], EntityBat['Bat'/363, l='MpServer', x=134.25, y=33.10, z=92.50]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1943)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)

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

at net.minecraft.client.main.Main.main(Main.java:93)

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:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player715'/338, l='MpServer', x=201.93, y=64.62, z=67.55]]

Chunk stats: MultiplayerChunkCache: 85

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (130,64,264), Chunk: (at 2,4,8 in 8,16; contains blocks 128,0,256 to 143,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 3724 game time, 3724 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 17 total; [EntityBat['Bat'/373, l='MpServer', x=149.76, y=27.72, z=127.76], EntityCow['Cow'/372, l='MpServer', x=148.22, y=80.00, z=99.22], EntityCow['Cow'/371, l='MpServer', x=145.50, y=85.00, z=98.50], EntityCow['Cow'/370, l='MpServer', x=157.81, y=75.00, z=95.53], EntityBat['Bat'/377, l='MpServer', x=166.47, y=21.10, z=57.31], EntityClientPlayerMP['Player715'/338, l='MpServer', x=201.93, y=64.62, z=67.55], EntityBat['Bat'/378, l='MpServer', x=171.93, y=15.25, z=60.29], EntityBat['Bat'/395, l='MpServer', x=229.75, y=21.45, z=0.42], EntityBat['Bat'/396, l='MpServer', x=227.35, y=20.05, z=7.62], EntityWolf['Wolf'/364, l='MpServer', x=142.50, y=84.00, z=93.50], EntityBear['unknown'/454, l='MpServer', x=199.70, y=63.37, z=65.70], EntityCow['Cow'/365, l='MpServer', x=142.88, y=80.00, z=97.03], EntityWolf['Wolf'/366, l='MpServer', x=140.25, y=80.00, z=97.53], EntityWolf['Wolf'/367, l='MpServer', x=140.66, y=80.00, z=98.69], EntityBat['Bat'/361, l='MpServer', x=139.40, y=15.88, z=69.02], EntityBat['Bat'/362, l='MpServer', x=143.25, y=26.00, z=76.25], EntityBat['Bat'/363, l='MpServer', x=134.25, y=33.10, z=92.50]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_25, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 759382832 bytes (724 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 7955 (445480 bytes; 0 MB) allocated, 208 (11648 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63

FML: MCP v8.11 FML v6.4.38.942 Minecraft Forge 9.11.1.942 4 mods loaded, 4 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{6.4.38.942} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{9.11.1.942} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

LegendofZelda{0.1 Alpha} [The Legend of Zelda] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: GeForce GT 630/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Pack: Default

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 293 (16408 bytes; 0 MB) allocated, 51 (2856 bytes; 0 MB) used

 

Posted

Hi

 

The way to track down this type of error is to start by identifying the line that is causing the problem.

 

In this case line 952 of NetClientHandler.  It is trying to spawn an entity (probably one of your new ones) and is running into a problem.

 

One of the variables on that line is null when it shouldn't be.  The trick is then to figure out why it is null.  Usually this is because you've forgotten to initialise something before using it.

 

What is line 952 of NetClientHandler in your code?

 

-TGG

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



×
×
  • Create New...

Important Information

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