Jump to content

Recommended Posts

Posted

I create Entity and create EntityAI.

 

I create ArrayList position x z in list and do write read NBT.

 

entity.java

        public List<Integer> PositionX = new ArrayList<Integer>();
public List<Integer> PositionZ = new ArrayList<Integer>();

        @Override
        public void readEntityFromNBT(NBTTagCompound p_70037_1_){
        super.readEntityFromNBT(p_70037_1_);
        
        NBTTagList tagList = p_70037_1_.getTagList("Position", Constants.NBT.TAG_COMPOUND);
        
    for(int i = 0; i < tagList.tagCount(); i++){
    	
    	NBTTagCompound tag = tagList.getCompoundTagAt(i);
    	
    	int x = tag.getInteger("PositionX");
    	int z = tag.getInteger("PositionZ");
    	
    	PositionX.add(i, x);
    	PositionX.add(i, z);
    }
    }

    @Override
    public void writeEntityToNBT(NBTTagCompound p_70014_1_){
        super.writeEntityToNBT(p_70014_1_);
        
    NBTTagList tagList = new NBTTagList();
    
    for(int i = 0; i < PositionX.size(); i++){
    	
    	int x = PositionX.get(i);
    	int z = PositionZ.get(i);
    	
    	NBTTagCompound tag = new NBTTagCompound();
    	
    	tag.setInteger("PositionX", x);
    	tag.setInteger("PositionZ", z);
    	
    	tagList.appendTag(tag);
    }
    p_70014_1_.setTag("Position", tagList);
    }

 

in the AI i do it move position in list .get(0)

 

entityAI.java

 

     private EntitySoliderMelee entity;
     private int xPosition;
     private double yPosition;
     private int zPosition;
     private double speed;
    
     public AIMoveHuman(EntitySoliderMelee p_i1648_1_, double p_i1648_2_)
     {
         this.entity = p_i1648_1_;
         this.speed = p_i1648_2_;
         this.setMutexBits(1);
     }

     public boolean shouldExecute()
    {
    	this.xPosition = this.entity.PositionX.get(0);
        this.yPosition = this.entity.posY;
        this.zPosition = this.entity.PositionZ.get(0);
        
	return true;
    }

    public void startExecuting()
    {
        this.entity.getNavigator().tryMoveToXYZ(this.xPosition, this.yPosition, this.zPosition, this.speed);
    }

 

i try run and out game and new run it tell me.

 

 

 

[13:23:39] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Ticking entity

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:709) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.7.0_79]

at java.util.ArrayList.get(Unknown Source) ~[?:1.7.0_79]

at OnerGamer.Entity.Solider.AIMoveHuman.shouldExecute(AIMoveHuman.java:33) ~[AIMoveHuman.class:?]

at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:84) ~[EntityAITasks.class:?]

at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:613) ~[EntityLiving.class:?]

at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:1983) ~[EntityLivingBase.class:?]

at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431) ~[EntityLiving.class:?]

at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:39) ~[EntityMob.class:?]

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816) ~[EntityLivingBase.class:?]

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250) ~[EntityLiving.class:?]

at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:47) ~[EntityMob.class:?]

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298) ~[World.class:?]

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684) ~[WorldServer.class:?]

at net.minecraft.world.World.updateEntity(World.java:2258) ~[World.class:?]

at net.minecraft.world.World.updateEntities(World.java:2108) ~[World.class:?]

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515) ~[WorldServer.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) ~[MinecraftServer.class:?]

... 4 more

[13:23:39] [server thread/ERROR]: This crash report has been saved to: D:\Project\minecraft\mcp\Moba\eclipse\.\crash-reports\crash-2016-05-24_13.23.39-server.txt

[13:23:39] [server thread/INFO]: Stopping server

[13:23:39] [server thread/INFO]: Saving players

[13:23:39] [server thread/INFO]: Saving worlds

[13:23:39] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[13:23:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// Oh - I know what I did wrong!

 

Time: 5/24/16 1:23 PM

Description: Ticking entity

 

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at OnerGamer.Entity.Solider.AIMoveHuman.shouldExecute(AIMoveHuman.java:33)

at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:84)

at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:613)

at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:1983)

at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431)

at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:39)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250)

at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:47)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)

at net.minecraft.world.World.updateEntity(World.java:2258)

at net.minecraft.world.World.updateEntities(World.java:2108)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

 

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

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

 

-- Head --

Stacktrace:

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at OnerGamer.Entity.Solider.AIMoveHuman.shouldExecute(AIMoveHuman.java:33)

at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:84)

at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:613)

at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:1983)

at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431)

at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:39)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250)

at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:47)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)

at net.minecraft.world.World.updateEntity(World.java:2258)

 

-- Entity being ticked --

Details:

Entity Type: solidermelee (OnerGamer.Entity.Solider.EntitySoliderMelee)

Entity ID: 501

Entity Name: entity.solidermelee.name

Entity's Exact location: -31.66, 66.00, 253.45

Entity's Block location: World: (-32,66,253), Chunk: (at 0,4,13 in -2,15; contains blocks -32,0,240 to -17,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Entity's Momentum: 0.00, -0.08, 0.00

Stacktrace:

at net.minecraft.world.World.updateEntities(World.java:2108)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)

 

-- Affected level --

Details:

Level name: New World

All players: 0 total; []

Chunk stats: ServerChunkCache: 625 Drop: 0

Level seed: -1274643836703657747

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

Level generator options:

Level spawn location: World: (32,64,252), Chunk: (at 0,4,12 in 2,15; contains blocks 32,0,240 to 47,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 252492 game time, 8907 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 57382 (now: false), thunder time: 103559 (now: false)

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

Stacktrace:

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_79, Oracle Corporation

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

Memory: 815952208 bytes (778 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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: 12, tallocated: 94

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 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

UCHIJAAAAAAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAAAAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)

UCHIJAAAAAAAAA Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)

UCHIJAAAAAAAAA OnerGamer{1.0} [OnerGamer] (bin)

GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

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

[13:23:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-05-24_13.23.39-server.txt

[13:23:39] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.

[13:23:39] [server thread/ERROR] [FML]: An Entity type OnerGamer.Entity.Solider.EntitySoliderMelee has thrown an exception trying to write state. It will not persist. Report this to the mod author

net.minecraft.util.ReportedException: Saving entity NBT

at net.minecraft.entity.Entity.writeToNBT(Entity.java:1553) ~[Entity.class:?]

at net.minecraft.entity.Entity.writeToNBTOptional(Entity.java:1489) ~[Entity.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:371) [AnvilChunkLoader.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]

at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]

at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:538) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.7.0_79]

at java.util.ArrayList.get(Unknown Source) ~[?:1.7.0_79]

at OnerGamer.Entity.Solider.EntitySoliderMelee.writeEntityToNBT(EntitySoliderMelee.java:77) ~[EntitySoliderMelee.class:?]

at net.minecraft.entity.Entity.writeToNBT(Entity.java:1536) ~[Entity.class:?]

... 11 more

[13:23:39] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[13:23:39] [server thread/INFO]: Saving chunks for level 'New World'/The End

[13:23:39] [server thread/INFO] [FML]: Unloading dimension 0

[13:23:39] [server thread/INFO] [FML]: Unloading dimension -1

[13:23:39] [server thread/INFO] [FML]: Unloading dimension 1

[13:23:39] [server thread/INFO] [FML]: Applying holder lookups

[13:23:39] [server thread/INFO] [FML]: Holder lookups applied

[13:23:39] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.

[13:23:39] [Client thread/INFO] [FML]: Server terminated.

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

Posted

I create Entity and create EntityAI.

 

I create ArrayList position x z in list and do write read NBT.

 

entity.java

        public List<Integer> PositionX = new ArrayList<Integer>();
public List<Integer> PositionZ = new ArrayList<Integer>();

        @Override
        public void readEntityFromNBT(NBTTagCompound p_70037_1_){
        super.readEntityFromNBT(p_70037_1_);
        
        NBTTagList tagList = p_70037_1_.getTagList("Position", Constants.NBT.TAG_COMPOUND);
        
    for(int i = 0; i < tagList.tagCount(); i++){
    	
    	NBTTagCompound tag = tagList.getCompoundTagAt(i);
    	
    	int x = tag.getInteger("PositionX");
    	int z = tag.getInteger("PositionZ");
    	
    	PositionX.add(i, x);
    	PositionX.add(i, z);
    }
    }

    @Override
    public void writeEntityToNBT(NBTTagCompound p_70014_1_){
        super.writeEntityToNBT(p_70014_1_);
        
    NBTTagList tagList = new NBTTagList();
    
    for(int i = 0; i < PositionX.size(); i++){
    	
    	int x = PositionX.get(i);
    	int z = PositionZ.get(i);
    	
    	NBTTagCompound tag = new NBTTagCompound();
    	
    	tag.setInteger("PositionX", x);
    	tag.setInteger("PositionZ", z);
    	
    	tagList.appendTag(tag);
    }
    p_70014_1_.setTag("Position", tagList);
    }

 

in the AI i do it move position in list .get(0)

 

entityAI.java

 

     private EntitySoliderMelee entity;
     private int xPosition;
     private double yPosition;
     private int zPosition;
     private double speed;
    
     public AIMoveHuman(EntitySoliderMelee p_i1648_1_, double p_i1648_2_)
     {
         this.entity = p_i1648_1_;
         this.speed = p_i1648_2_;
         this.setMutexBits(1);
     }

     public boolean shouldExecute()
    {
    	this.xPosition = this.entity.PositionX.get(0);
        this.yPosition = this.entity.posY;
        this.zPosition = this.entity.PositionZ.get(0);
        
	return true;
    }

    public void startExecuting()
    {
        this.entity.getNavigator().tryMoveToXYZ(this.xPosition, this.yPosition, this.zPosition, this.speed);
    }

 

i try run and out game and new run it tell me.

 

 

 

[13:23:39] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Ticking entity

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:709) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.7.0_79]

at java.util.ArrayList.get(Unknown Source) ~[?:1.7.0_79]

at OnerGamer.Entity.Solider.AIMoveHuman.shouldExecute(AIMoveHuman.java:33) ~[AIMoveHuman.class:?]

at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:84) ~[EntityAITasks.class:?]

at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:613) ~[EntityLiving.class:?]

at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:1983) ~[EntityLivingBase.class:?]

at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431) ~[EntityLiving.class:?]

at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:39) ~[EntityMob.class:?]

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816) ~[EntityLivingBase.class:?]

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250) ~[EntityLiving.class:?]

at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:47) ~[EntityMob.class:?]

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298) ~[World.class:?]

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684) ~[WorldServer.class:?]

at net.minecraft.world.World.updateEntity(World.java:2258) ~[World.class:?]

at net.minecraft.world.World.updateEntities(World.java:2108) ~[World.class:?]

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515) ~[WorldServer.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) ~[MinecraftServer.class:?]

... 4 more

[13:23:39] [server thread/ERROR]: This crash report has been saved to: D:\Project\minecraft\mcp\Moba\eclipse\.\crash-reports\crash-2016-05-24_13.23.39-server.txt

[13:23:39] [server thread/INFO]: Stopping server

[13:23:39] [server thread/INFO]: Saving players

[13:23:39] [server thread/INFO]: Saving worlds

[13:23:39] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[13:23:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// Oh - I know what I did wrong!

 

Time: 5/24/16 1:23 PM

Description: Ticking entity

 

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at OnerGamer.Entity.Solider.AIMoveHuman.shouldExecute(AIMoveHuman.java:33)

at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:84)

at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:613)

at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:1983)

at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431)

at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:39)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250)

at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:47)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)

at net.minecraft.world.World.updateEntity(World.java:2258)

at net.minecraft.world.World.updateEntities(World.java:2108)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

 

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

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

 

-- Head --

Stacktrace:

at java.util.ArrayList.rangeCheck(Unknown Source)

at java.util.ArrayList.get(Unknown Source)

at OnerGamer.Entity.Solider.AIMoveHuman.shouldExecute(AIMoveHuman.java:33)

at net.minecraft.entity.ai.EntityAITasks.onUpdateTasks(EntityAITasks.java:84)

at net.minecraft.entity.EntityLiving.updateAITasks(EntityLiving.java:613)

at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:1983)

at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431)

at net.minecraft.entity.monster.EntityMob.onLivingUpdate(EntityMob.java:39)

at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)

at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250)

at net.minecraft.entity.monster.EntityMob.onUpdate(EntityMob.java:47)

at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)

at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)

at net.minecraft.world.World.updateEntity(World.java:2258)

 

-- Entity being ticked --

Details:

Entity Type: solidermelee (OnerGamer.Entity.Solider.EntitySoliderMelee)

Entity ID: 501

Entity Name: entity.solidermelee.name

Entity's Exact location: -31.66, 66.00, 253.45

Entity's Block location: World: (-32,66,253), Chunk: (at 0,4,13 in -2,15; contains blocks -32,0,240 to -17,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Entity's Momentum: 0.00, -0.08, 0.00

Stacktrace:

at net.minecraft.world.World.updateEntities(World.java:2108)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)

 

-- Affected level --

Details:

Level name: New World

All players: 0 total; []

Chunk stats: ServerChunkCache: 625 Drop: 0

Level seed: -1274643836703657747

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

Level generator options:

Level spawn location: World: (32,64,252), Chunk: (at 0,4,12 in 2,15; contains blocks 32,0,240 to 47,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 252492 game time, 8907 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 57382 (now: false), thunder time: 103559 (now: false)

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

Stacktrace:

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_79, Oracle Corporation

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

Memory: 815952208 bytes (778 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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: 12, tallocated: 94

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 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

UCHIJAAAAAAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAAAAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)

UCHIJAAAAAAAAA Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)

UCHIJAAAAAAAAA OnerGamer{1.0} [OnerGamer] (bin)

GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

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

[13:23:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-05-24_13.23.39-server.txt

[13:23:39] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.

[13:23:39] [server thread/ERROR] [FML]: An Entity type OnerGamer.Entity.Solider.EntitySoliderMelee has thrown an exception trying to write state. It will not persist. Report this to the mod author

net.minecraft.util.ReportedException: Saving entity NBT

at net.minecraft.entity.Entity.writeToNBT(Entity.java:1553) ~[Entity.class:?]

at net.minecraft.entity.Entity.writeToNBTOptional(Entity.java:1489) ~[Entity.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:371) [AnvilChunkLoader.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]

at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]

at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:538) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.7.0_79]

at java.util.ArrayList.get(Unknown Source) ~[?:1.7.0_79]

at OnerGamer.Entity.Solider.EntitySoliderMelee.writeEntityToNBT(EntitySoliderMelee.java:77) ~[EntitySoliderMelee.class:?]

at net.minecraft.entity.Entity.writeToNBT(Entity.java:1536) ~[Entity.class:?]

... 11 more

[13:23:39] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[13:23:39] [server thread/INFO]: Saving chunks for level 'New World'/The End

[13:23:39] [server thread/INFO] [FML]: Unloading dimension 0

[13:23:39] [server thread/INFO] [FML]: Unloading dimension -1

[13:23:39] [server thread/INFO] [FML]: Unloading dimension 1

[13:23:39] [server thread/INFO] [FML]: Applying holder lookups

[13:23:39] [server thread/INFO] [FML]: Holder lookups applied

[13:23:39] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.

[13:23:39] [Client thread/INFO] [FML]: Server terminated.

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

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.