DragonessAtHeart Posted January 30, 2016 Posted January 30, 2016 I keep getting this crash when I am trying to load a world that has already been created where I have spawned my broken entity. I say broken because it isn't rendering correctly, it just spawns a white box that runs around. I have no idea where to go from here about fixing that and making it render the model I have created. I'm not sure what is wrong though. What should I be doing differently? [09:12:59] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-01-30 09:13:00,579 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-01-30 09:13:00,668 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-01-30 09:13:00,668 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [09:13:01] [Client thread/INFO]: Setting user: Player677 [09:13:09] [Client thread/INFO]: LWJGL Version: 2.9.4 [09:13:10] [Client thread/WARN] [FML]: ============================================================= [09:13:10] [Client thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML! [09:13:10] [Client thread/WARN] [FML]: Offendor: com/sun/jna/Native.main([Ljava/lang/String;)V [09:13:10] [Client thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead [09:13:10] [Client thread/WARN] [FML]: ============================================================= [09:13:11] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:246]: ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen. Time: 1/30/16 9:13 AM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_71, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 61272056 bytes (58 MB) / 392167424 bytes (374 MB) up to 1409286144 bytes (1344 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.15.4279' Renderer: 'Intel® HD Graphics 4400' [09:13:12] [Client thread/INFO] [FML]: MinecraftForge v11.15.1.1722 Initialized [09:13:12] [Client thread/INFO] [FML]: Replaced 204 ore recipies [09:13:13] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [09:13:13] [Client thread/INFO] [FML]: Searching C:\Users\DragonAtHeart\Desktop\Minecraft Modding Stuff\IndependentStudy\Forge1.8.9\run\mods for mods [09:13:17] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [09:13:18] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, firstmod] at CLIENT [09:13:18] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, firstmod] at SERVER [09:13:20] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:First_Mod [09:13:20] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [09:13:20] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [09:13:20] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [09:13:20] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [09:13:20] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [09:13:20] [Client thread/INFO] [sTDOUT]: [com.dragonessatheart.firstmod.Main:preinit:61]: I'm in preinit [09:13:20] [Client thread/INFO] [sTDOUT]: [com.dragonessatheart.firstmod.CommonProxy:preinit:34]: mobid is:1 [09:13:20] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [09:13:20] [Client thread/INFO] [FML]: Applying holder lookups [09:13:20] [Client thread/INFO] [FML]: Holder lookups applied [09:13:20] [Client thread/INFO] [FML]: Injecting itemstacks [09:13:20] [Client thread/INFO] [FML]: Itemstack injection complete [09:13:21] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [09:13:21] [sound Library Loader/INFO]: Starting up SoundSystem... [09:13:22] [Thread-9/INFO]: Initializing LWJGL OpenAL [09:13:22] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [09:13:22] [Thread-9/INFO]: OpenAL initialized. [09:13:22] [sound Library Loader/INFO]: Sound engine started [09:13:26] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/idle.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.idle [09:13:26] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/hiss.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.hiss [09:13:26] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/death.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.death [09:13:26] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/growl.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.growl [09:13:39] [Client thread/INFO] [FML]: Max texture size: 16384 [09:13:39] [Client thread/INFO]: Created: 16x16 textures-atlas [09:13:42] [Client thread/INFO] [sTDOUT]: [com.dragonessatheart.firstmod.Main:init:71]: I'm in Init [09:13:42] [Client thread/INFO] [FML]: Injecting itemstacks [09:13:42] [Client thread/INFO] [FML]: Itemstack injection complete [09:13:42] [Client thread/INFO] [sTDOUT]: [com.dragonessatheart.firstmod.Main:postinit:82]: I'm in postInit [09:13:42] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [09:13:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:First_Mod [09:13:42] [Client thread/INFO]: SoundSystem shutting down... [09:13:43] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [09:13:43] [sound Library Loader/INFO]: Starting up SoundSystem... [09:13:43] [Thread-11/INFO]: Initializing LWJGL OpenAL [09:13:43] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [09:13:43] [Thread-11/INFO]: OpenAL initialized. [09:13:43] [sound Library Loader/INFO]: Sound engine started [09:13:46] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/idle.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.idle [09:13:46] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/hiss.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.hiss [09:13:46] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/death.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.death [09:13:46] [Client thread/WARN]: File firstmod:sounds/mobsounds/giantlizard/growl.ogg does not exist, cannot add it to event firstmod:mobsounds.giantlizard.growl [09:13:56] [Client thread/INFO] [FML]: Max texture size: 16384 [09:13:57] [Client thread/INFO]: Created: 512x512 textures-atlas [09:13:59] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [09:14:27] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [09:14:27] [server thread/INFO]: Starting integrated minecraft server version 1.8.9 [09:14:27] [server thread/INFO]: Generating keypair [09:14:27] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [09:14:27] [server thread/INFO] [FML]: Applying holder lookups [09:14:27] [server thread/INFO] [FML]: Holder lookups applied [09:14:28] [server thread/INFO] [FML]: Loading dimension 0 (Another new hope) (net.minecraft.server.integrated.IntegratedServer@3d61eda3) [09:14:28] [server thread/INFO] [FML]: Loading dimension 1 (Another new hope) (net.minecraft.server.integrated.IntegratedServer@3d61eda3) [09:14:28] [server thread/INFO] [FML]: Loading dimension -1 (Another new hope) (net.minecraft.server.integrated.IntegratedServer@3d61eda3) [09:14:28] [server thread/INFO]: Preparing start region for level 0 [09:14:29] [server thread/INFO]: Preparing spawn area: 0% [09:14:30] [server thread/INFO]: Preparing spawn area: 53% [09:14:32] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [09:14:32] [server thread/INFO]: Changing view distance to 12, from 10 [09:14:33] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2089ms behind, skipping 41 tick(s) [09:14:34] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [09:14:34] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [09:14:34] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [09:14:34] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [09:14:34] [server thread/INFO] [FML]: [server thread] Server side modded connection established [09:14:34] [server thread/INFO]: Player677[local:E:ac704e05] logged in with entity id 354 at (157.5, 68.0, 99.5) [09:14:34] [server thread/INFO]: Player677 joined the game [09:14:35] [server thread/ERROR]: Encountered an unexpected exception net.minecraft.util.ReportedException: Ticking entity at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:783) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) ~[integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_71] Caused by: io.netty.handler.codec.EncoderException: java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.Byte at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[MessageToMessageEncoder.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:651) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:637) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:880) ~[DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.AbstractChannel.write(AbstractChannel.java:230) ~[AbstractChannel.class:4.0.23.Final] at io.netty.channel.embedded.EmbeddedChannel.writeOutbound(EmbeddedChannel.java:195) ~[EmbeddedChannel.class:4.0.23.Final] at net.minecraftforge.fml.common.network.FMLEmbeddedChannel.generatePacketFrom(FMLEmbeddedChannel.java:50) ~[FMLEmbeddedChannel.class:?] at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.getEntitySpawningPacket(FMLNetworkHandler.java:132) ~[FMLNetworkHandler.class:?] at net.minecraft.entity.EntityTrackerEntry.func_151260_c(EntityTrackerEntry.java:494) ~[EntityTrackerEntry.class:?] at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntity(EntityTrackerEntry.java:370) ~[EntityTrackerEntry.class:?] at net.minecraft.entity.EntityTracker.func_85172_a(EntityTracker.java:335) ~[EntityTracker.class:?] at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:335) ~[EntityPlayerMP.class:?] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2009) ~[World.class:?] at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:724) ~[WorldServer.class:?] at net.minecraft.world.World.updateEntity(World.java:1974) ~[World.class:?] at net.minecraft.world.World.updateEntities(World.java:1803) ~[World.class:?] at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:559) ~[WorldServer.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:777) ~[MinecraftServer.class:?] ... 4 more Caused by: java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.Byte at net.minecraft.entity.DataWatcher.writeWatchableObjectToPacketBuffer(DataWatcher.java:264) ~[DataWatcher.class:?] at net.minecraft.entity.DataWatcher.writeTo(DataWatcher.java:226) ~[DataWatcher.class:?] at net.minecraftforge.fml.common.network.internal.FMLMessage$EntitySpawnMessage.toBytes(FMLMessage.java:196) ~[FMLMessage$EntitySpawnMessage.class:?] at net.minecraftforge.fml.common.network.internal.FMLRuntimeCodec.encodeInto(FMLRuntimeCodec.java:24) ~[FMLRuntimeCodec.class:?] at net.minecraftforge.fml.common.network.internal.FMLRuntimeCodec.encodeInto(FMLRuntimeCodec.java:13) ~[FMLRuntimeCodec.class:?] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:55) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[MessageToMessageCodec$1.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ~[MessageToMessageEncoder.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[MessageToMessageCodec.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:651) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:637) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:880) ~[DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.AbstractChannel.write(AbstractChannel.java:230) ~[AbstractChannel.class:4.0.23.Final] at io.netty.channel.embedded.EmbeddedChannel.writeOutbound(EmbeddedChannel.java:195) ~[EmbeddedChannel.class:4.0.23.Final] at net.minecraftforge.fml.common.network.FMLEmbeddedChannel.generatePacketFrom(FMLEmbeddedChannel.java:50) ~[FMLEmbeddedChannel.class:?] at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.getEntitySpawningPacket(FMLNetworkHandler.java:132) ~[FMLNetworkHandler.class:?] at net.minecraft.entity.EntityTrackerEntry.func_151260_c(EntityTrackerEntry.java:494) ~[EntityTrackerEntry.class:?] at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntity(EntityTrackerEntry.java:370) ~[EntityTrackerEntry.class:?] at net.minecraft.entity.EntityTracker.func_85172_a(EntityTracker.java:335) ~[EntityTracker.class:?] at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:335) ~[EntityPlayerMP.class:?] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2009) ~[World.class:?] at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:724) ~[WorldServer.class:?] at net.minecraft.world.World.updateEntity(World.java:1974) ~[World.class:?] at net.minecraft.world.World.updateEntities(World.java:1803) ~[World.class:?] at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:559) ~[WorldServer.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:777) ~[MinecraftServer.class:?] ... 4 more [09:14:35] [server thread/ERROR]: This crash report has been saved to: C:\Users\DragonAtHeart\Desktop\Minecraft Modding Stuff\IndependentStudy\Forge1.8.9\run\.\crash-reports\crash-2016-01-30_09.14.35-server.txt [09:14:35] [server thread/INFO]: Stopping server [09:14:35] [server thread/INFO]: Saving players [09:14:36] [server thread/INFO]: Player677 lost connection: TextComponent{text='Server closed', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}} [09:14:36] [server thread/INFO]: Player677 left the game [09:14:36] [server thread/INFO]: Stopping singleplayer server as player logged out [09:14:36] [server thread/INFO]: Saving worlds [09:14:36] [server thread/INFO]: Saving chunks for level 'Another new hope'/Overworld [09:14:36] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: ---- Minecraft Crash Report ---- // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 1/30/16 9:14 AM Description: Ticking entity io.netty.handler.codec.EncoderException: java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.Byte at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:651) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:637) at io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:880) at io.netty.channel.AbstractChannel.write(AbstractChannel.java:230) at io.netty.channel.embedded.EmbeddedChannel.writeOutbound(EmbeddedChannel.java:195) at net.minecraftforge.fml.common.network.FMLEmbeddedChannel.generatePacketFrom(FMLEmbeddedChannel.java:50) at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.getEntitySpawningPacket(FMLNetworkHandler.java:132) at net.minecraft.entity.EntityTrackerEntry.func_151260_c(EntityTrackerEntry.java:494) at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntity(EntityTrackerEntry.java:370) at net.minecraft.entity.EntityTracker.func_85172_a(EntityTracker.java:335) at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:335) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2009) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:724) at net.minecraft.world.World.updateEntity(World.java:1974) at net.minecraft.world.World.updateEntities(World.java:1803) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:559) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:777) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.Byte at net.minecraft.entity.DataWatcher.writeWatchableObjectToPacketBuffer(DataWatcher.java:264) at net.minecraft.entity.DataWatcher.writeTo(DataWatcher.java:226) at net.minecraftforge.fml.common.network.internal.FMLMessage$EntitySpawnMessage.toBytes(FMLMessage.java:196) at net.minecraftforge.fml.common.network.internal.FMLRuntimeCodec.encodeInto(FMLRuntimeCodec.java:24) at net.minecraftforge.fml.common.network.internal.FMLRuntimeCodec.encodeInto(FMLRuntimeCodec.java:13) at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:55) at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:89) ... 24 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:658) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:716) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:651) at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:637) at io.netty.channel.DefaultChannelPipeline.write(DefaultChannelPipeline.java:880) at io.netty.channel.AbstractChannel.write(AbstractChannel.java:230) at io.netty.channel.embedded.EmbeddedChannel.writeOutbound(EmbeddedChannel.java:195) at net.minecraftforge.fml.common.network.FMLEmbeddedChannel.generatePacketFrom(FMLEmbeddedChannel.java:50) at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.getEntitySpawningPacket(FMLNetworkHandler.java:132) at net.minecraft.entity.EntityTrackerEntry.func_151260_c(EntityTrackerEntry.java:494) at net.minecraft.entity.EntityTrackerEntry.updatePlayerEntity(EntityTrackerEntry.java:370) at net.minecraft.entity.EntityTracker.func_85172_a(EntityTracker.java:335) at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:335) at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2009) at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:724) at net.minecraft.world.World.updateEntity(World.java:1974) -- Entity being ticked -- Details: Entity Type: null (net.minecraft.entity.player.EntityPlayerMP) Entity ID: 354 Entity Name: Player677 Entity's Exact location: 157.50, 68.00, 99.50 Entity's Block location: 157.00,68.00,99.00 - World: (157,68,99), Chunk: (at 13,4,3 in 9,6; contains blocks 144,0,96 to 159,255,111), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Entity's Momentum: 0.00, -0.08, 0.00 Entity's Rider: ~~ERROR~~ NullPointerException: null Entity's Vehicle: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.world.World.updateEntities(World.java:1803) at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:559) -- Affected level -- Details: Level name: Another new hope All players: 1 total; [EntityPlayerMP['Player677'/354, l='Another new hope', x=157.50, y=68.00, z=99.50]] Chunk stats: ServerChunkCache: 650 Drop: 0 Level seed: -1993803920202880631 Level generator: ID 00 - default, ver 1. Features enabled: true Level generator options: Level spawn location: 164.00,64.00,108.00 - World: (164,64,108), Chunk: (at 4,4,12 in 10,6; contains blocks 160,0,96 to 175,255,111), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 676 game time, 676 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 130303 (now: false), thunder time: 77574 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:777) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:681) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:159) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:548) at java.lang.Thread.run(Unknown Source) -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_71, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 500473360 bytes (477 MB) / 728236032 bytes (694 MB) up to 1409286144 bytes (1344 MB) JVM Flags: 0 total; IntCache: cache: 13, tcache: 0, allocated: 13, tallocated: 95 FML: MCP 9.19 Powered by Forge 11.15.1.1722 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1722.jar) UCHIJAAAA Forge{11.15.1.1722} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1722.jar) UCHIJAAAA firstmod{1.0} [First_Mod] (bin) Loaded coremods (and transformers): GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread. Profiler Position: N/A (disabled) Player Count: 1 / 8; [EntityPlayerMP['Player677'/354, l='Another new hope', x=157.50, y=68.00, z=99.50]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' [09:14:36] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-01-30_09.14.35-server.txt [09:14:36] [Client thread/INFO] [FML]: Waiting for the server to terminate/save. [09:14:37] [server thread/INFO]: Saving chunks for level 'Another new hope'/Nether [09:14:37] [server thread/INFO]: Saving chunks for level 'Another new hope'/The End [09:14:38] [server thread/INFO] [FML]: Unloading dimension 0 [09:14:38] [server thread/INFO] [FML]: Unloading dimension -1 [09:14:38] [server thread/INFO] [FML]: Unloading dimension 1 [09:14:38] [server thread/INFO] [FML]: Applying holder lookups [09:14:38] [server thread/INFO] [FML]: Holder lookups applied [09:14:38] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. [09:14:38] [Client thread/INFO] [FML]: Server terminated. AL lib: (EE) alc_cleanup: 1 device not closed Quote
DragonessAtHeart Posted January 30, 2016 Author Posted January 30, 2016 Okay. Thanks for giving me a place to start. How did you know it was the dataWatcher? I am still learning how to read the console errors. I've been using some stuff from the vanilla code without really understanding all of it, so no wonder I'm having problems. I've been reading up on the datawatcher stuff and it's starting to make sense, but can someone explain it a bit more for me? So the data watcher can have 32 objects of type [byte, Short, Integer, Float, String, ItemStack and ChunkCoordinates] So I'm assuming the string is for the name, ItemStack is for what the entity has, and the chunkCoordinates is for where it is located, right? What are the other types for? I have looked at this chart but I'm not quite sure how to read it. http://www.minecraftforge.net/wiki/Datawatcher And when you do have a specific number like 18 or something what does that mean? I know the wolf uses it, but I'm confused about what it means. Or does it not work like that? If you still need me to paste my code after this I will. Quote
coolAlias Posted January 30, 2016 Posted January 30, 2016 The IDs are arbitrary and must be unique; if you use an already taken ID the conflict will result in a crash, so you must check all super classes to see what DataWatcher IDs they use. It is not recommended to use DataWatcher in things like IExtendedEntityProperties as it is impossible to know what DataWatcher IDs other mod entities use and/or add, but it's fine to use it in your own custom entity classes. As for the Objects that the DataWatcher contains, they can mean anything you want them to mean. An ItemStack, for example, may be the object held by the entity, or it may not be; it all depends on how that particular DW index is used in the code. It could be that it is a piece of armor, or a cape, or any number of other things. The only reason to use DataWatcher, btw, is when you have a value on the server (e.g. the held item) that you need to keep up-to-date on the client, usually because you want to use that value when rendering. If you don't need the value client side, don't use DataWatcher. Also, DataWatcher is just a convenience wrapper around a system that sends packets in the background, so you can easily provide the same functionality by sending a packet yourself and not using DataWatcher at all. Quote http://i.imgur.com/NdrFdld.png[/img]
DragonessAtHeart Posted January 30, 2016 Author Posted January 30, 2016 So if I'm trying to make my entity tameable would I need to communicate with the server? How do I know what needs to be and what is just client side? Like health for example. That is only client right? Quote
coolAlias Posted January 30, 2016 Posted January 30, 2016 The client handles anything that the player needs to see or interact with, but doesn't keep track of the actual game state - it merely tries to represent the game state. Anything that needs to be remembered or has a real effect in the game, such as health, needs to be handled on the server. The client only needs to know about it if you are going to display it. Quote http://i.imgur.com/NdrFdld.png[/img]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.