Jump to content

[1.7.2] Crash-Report Help


TheDav1311

Recommended Posts

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 01.09.14 18:37
Description: Unexpected error

java.lang.IllegalStateException: Player is either on another team or not on any team. Cannot remove from team 'Innocent'.
at net.minecraft.scoreboard.Scoreboard.func_96512_b(SourceFile:206)
at net.minecraft.client.network.NetHandlerPlayClient.func_147247_a(NetHandlerPlayClient.java:1556)
at net.minecraft.network.play.server.S3EPacketTeams.func_148833_a(SourceFile:99)
at net.minecraft.network.play.server.S3EPacketTeams.func_148833_a(SourceFile:13)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:197)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1541)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:916)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:835)
at net.minecraft.client.main.Main.main(SourceFile:103)
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:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


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

-- Head --
Stacktrace:
at net.minecraft.scoreboard.Scoreboard.func_96512_b(SourceFile:206)
at net.minecraft.client.network.NetHandlerPlayClient.func_147247_a(NetHandlerPlayClient.java:1556)
at net.minecraft.network.play.server.S3EPacketTeams.func_148833_a(SourceFile:99)
at net.minecraft.network.play.server.S3EPacketTeams.func_148833_a(SourceFile:13)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:197)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273)

-- Affected level --
Details:
Level name: MpServer
All players: 5 total; [EntityClientPlayerMP['TheDav'/188, l='MpServer', x=-402,62, y=70,73, z=156,69], EntityOtherPlayerMP['Luca'/187, l='MpServer', x=-397,97, y=69,00, z=165,75], EntityOtherPlayerMP['AlessB'/228, l='MpServer', x=-396,97, y=69,00, z=165,06], EntityOtherPlayerMP['Luca'/187, l='MpServer', x=-399,72, y=68,50, z=165,38], EntityOtherPlayerMP['AlessB'/228, l='MpServer', x=-402,13, y=68,00, z=165,91]]
Chunk stats: MultiplayerChunkCache: 222, 222
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (-284,64,194), Chunk: (at 4,4,2 in -18,12; contains blocks -288,0,192 to -273,255,207), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 2086732 game time, 1146 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: 10 total; [EntityClientPlayerMP['TheDav'/188, l='MpServer', x=-400,11, y=70,12, z=165,75], EntityOtherPlayerMP['Luca'/187, l='MpServer', x=-397,97, y=69,00, z=165,75], EntityMinecartChest['entity.MinecartChest.name'/8, l='MpServer', x=-462,50, y=7,50, z=168,50], EntityHorse['Paul Hesse'/40, l='MpServer', x=-370,66, y=63,00, z=156,34], EntityClientPlayerMP['TheDav'/188, l='MpServer', x=-402,62, y=70,73, z=156,69], EntityLeiche['Leiche'/267, l='MpServer', x=-401,91, y=68,00, z=165,91], EntityPig['Kevin'/24, l='MpServer', x=-404,25, y=74,00, z=126,47], EntityOtherPlayerMP['Luca'/187, l='MpServer', x=-399,72, y=68,50, z=165,38], EntityOtherPlayerMP['AlessB'/228, l='MpServer', x=-402,13, y=68,00, z=165,91], EntityOtherPlayerMP['AlessB'/228, l='MpServer', x=-396,97, y=69,00, z=165,06]]
Retry entities: 0 total; []
Server brand: mcpc,craftbukkit,fml,forge
Server type: Non-integrated multiplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:368)
at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2382)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:864)
at net.minecraft.client.main.Main.main(SourceFile:103)
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:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 100379168 bytes (95 MB) / 451936256 bytes (431 MB) up to 954728448 bytes (910 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
AABB Pool Size: 4053 (226968 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.03 FML v7.2.193.1078 Minecraft Forge 10.12.1.1078 4 mods loaded, 4 mods active
mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
FML{7.2.193.1078} [Forge Mod Loader] (forge-1.7.2-10.12.1.1078.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
Forge{10.12.1.1078} [Minecraft Forge] (forge-1.7.2-10.12.1.1078.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
minecrafttrouble{1.6.2} [Trouble in Steve's Town] (modid-1.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
Launched Version: 1.7.2-Forge10.12.1.1078
LWJGL: 2.9.0
OpenGL: AMD Radeon(TM) HD 6520G GL version 4.1.11156 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: Deutsch (Deutschland)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 3078 (172368 bytes; 0 MB) allocated, 22 (1232 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

 

The person which does nothing by the kill get this Crash-Report

 

Code:

 

@SubscribeEvent
public void spielerTot(LivingDeathEvent event)
{
	Entity entityP = event.entity;
	World world = event.entity.worldObj;

	if(entityP instanceof EntityPlayer && Roundaktiv && !Preparing && ((EntityPlayer) entityP).getTeam() != null)
	{
		EntityPlayer player = (EntityPlayer) event.entity;

		world.getScoreboard().func_151392_a(player.getCommandSenderName(), tot);

		player.setGameType(GameType.CREATIVE);
}

Link to comment
Share on other sites

The Start-Command

 

@Override
public void processCommand(ICommandSender var1, String[] var2) 
{
			World world = var1.getEntityWorld();
			if(RoundHandler.getFahne(world) != null)
			{
				RoundHandler.tileEntityLeeren(world);
				TileEntityFahne fahne = ((TileEntityFahne) RoundHandler.getFahne(world));
				RoundHandler.setCountdown(120 * 60);
				for(int m = 0; m < world.playerEntities.size(); m++)
				{
					EntityPlayerMP playerMP = (EntityPlayerMP) world.playerEntities.get(m);
					ChatComponentTranslation dc = new ChatComponentTranslation("Es geht LOS");
		 			playerMP.addChatComponentMessage(dc);
				}
			}


}

 

public static void starteRunde(World world) 
{
	Scoreboard sc = world.getScoreboard();

	if(sc.getTeamNames().contains(traitor))
		sc.removeTeam(sc.getTeam(traitor));
	if(sc.getTeamNames().contains(inno))
		sc.removeTeam(sc.getTeam(inno));
	if(sc.getTeamNames().contains(detec))
		sc.removeTeam(sc.getTeam(detec));
	if(sc.getTeamNames().contains(tot))
		sc.removeTeam(sc.getTeam(tot));
	innoList.clear();
	traitorList.clear();
	detecList.clear();

	sc.createTeam(traitor);
	sc.createTeam(inno);
	sc.createTeam(detec);
	sc.createTeam(tot);
	sc.getTeam(inno).setSeeFriendlyInvisiblesEnabled(false);

	int traitorZahlfehl = world.playerEntities.size() == 5 ? 2 : world.playerEntities.size()/3;
	int detectivZahlfehl = world.playerEntities.size() >= 5 ? 1: 0;

	for(int s = 0; s < world.playerEntities.size(); s++)
	{
		EntityPlayerMP playerMP = (EntityPlayerMP) world.playerEntities.get(s);
		playerMP.setHealth(20);
		innoList.add(playerMP);
	}
	for(int s = 0; s < traitorZahlfehl; s++)
	{
		int random = rand.nextInt(innoList.size()-1);
		traitorList.add(innoList.get(random));
		innoList.remove(random);
	}
	for(int s = 0; s < detectivZahlfehl; s++)
	{
		int random = rand.nextInt(innoList.size()-1);
		detecList.add(innoList.get(random));
		innoList.remove(random);
	}
	for(int s = 0; s < traitorList.size(); s++)
	{
		EntityPlayerMP player = (EntityPlayerMP) traitorList.get(s);
		sc.func_151392_a(player.getCommandSenderName(), traitor);
	}
	for(int s = 0; s < detecList.size(); s++)
	{
		EntityPlayerMP player = (EntityPlayerMP) detecList.get(s);
		sc.func_151392_a(player.getCommandSenderName(), detec);
	}
	for(int s = 0; s < innoList.size(); s++)
	{
		EntityPlayerMP player = (EntityPlayerMP) innoList.get(s);
		sc.func_151392_a(player.getCommandSenderName(), inno);
	}
        }
}

 

@SubscribeEvent
public void spielerTot(LivingDeathEvent event)
{
	Entity entityP = event.entity;
	double x = event.entity.posX;
	double y = event.entity.posY;
	double z = event.entity.posZ;
	World world = event.entity.worldObj;

	if(!world.isRemote && entityP instanceof EntityPlayer && Roundaktiv && !Preparing && ((EntityPlayer) entityP).getTeam() != null)
	{
		EntityPlayer player = (EntityPlayer) event.entity;

		if(!((EntityPlayer) player).getTeam().isSameTeam(world.getScoreboard().getTeam(traitor)))
			spielerTotTimeAdd();	

		EntityLeiche entity = new EntityLeiche(world, x, y, z);
		entity.setPlayer(((EntityPlayer) player).getCommandSenderName());
		entity.setTeam(((EntityPlayer) player).getTeam().getRegisteredName());
		world.spawnEntityInWorld(entity);

		world.getScoreboard().removePlayerFromTeam(player.getCommandSenderName(), (ScorePlayerTeam) player.getTeam());

		player.setGameType(GameType.CREATIVE);
          }
}

Link to comment
Share on other sites

Forgot this:

 

@SubscribeEvent
public void startTimer(WorldTickEvent event)
{
	if(event.world.isRemote)
		return;

	if(event.side == Side.SERVER)
	{
		World world = event.world; 
		if(RoundHandler.Preparing)
		{
			RoundHandler.processCountdown();
			if(RoundHandler.Countdown == 0)
			{
				RoundHandler.Preparing = false;
				RoundHandler.starteRunde(world);
				RoundHandler.setCountdown(120 * 8 * 60);
			}
		}
//more stuff here
	}
}

Link to comment
Share on other sites

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.