Jump to content

Recommended Posts

Posted

Hey,

I'm working on a new book in Minecraft, but every time I click on my Item Diary, it shows for a short time my GUI and then it crashes.

 

I looked up in my classes, if there is any cast with net.minecraft.inventory.Container. But there isn't.

So if you could help me, please do it :)

 

Maybe it's bug with the FMLNetworkHandler.

 

Crash Report

 

 

[11:53:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[11:53:31] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[11:53:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[11:53:31] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading

[11:53:31] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre8

[11:53:31] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[11:53:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[11:53:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[11:53:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[11:53:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[11:53:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[11:53:31] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[11:53:32] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Tim/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!

[11:53:32] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!

[11:53:32] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Tim/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it

[11:53:32] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[11:53:32] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[11:53:32] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[11:53:32] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[11:53:33] [main/INFO]: Setting user: Player181

[11:53:34] [Client thread/INFO]: LWJGL Version: 2.9.0

[11:53:34] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[11:53:34] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized

[11:53:34] [Client thread/INFO] [FML]: Replaced 141 ore recipies

[11:53:35] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[11:53:35] [Client thread/INFO] [FML]: Searching C:\Users\Tim\Desktop\forge\ForgeMods\eclipse\mods for mods

[11:53:35] [Client thread/INFO] [Periodicsystem]: Mod Periodicsystem is missing the required element 'name'. Substituting Periodicsystem

[11:53:35] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!

[11:53:38] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[11:53:38] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:Periodicsystem

[11:53:38] [Client thread/ERROR] [Periodicsystem]: The mod Periodicsystem appears to have an invalid event annotation EventHandler. This annotation can only apply to methods with recognized event arguments - it will not be called

[11:53:38] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

 

[11:53:39] [sound Library Loader/INFO]: Sound engine started

[11:53:39] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[11:53:39] [Client thread/INFO]: Created: 256x256 textures/items-atlas

DIRT BLOCK >> tile.dirt

[11:53:40] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[11:53:40] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:Periodicsystem

[11:53:40] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[11:53:40] [Client thread/ERROR]: Using missing texture, unable to load periodicsystem:textures/items/Diary.png

java.io.FileNotFoundException: periodicsystem:textures/items/Diary.png

at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]

at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]

at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:624) [Minecraft.class:?]

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:283) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

[11:53:40] [Client thread/INFO]: Created: 512x256 textures/items-atlas

 

SoundSystem shutting down...

    Author: Paul Lamb, www.paulscode.com

 

 

Starting up SoundSystem...

Initializing LWJGL OpenAL

    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

OpenAL initialized.

 

[11:53:41] [sound Library Loader/INFO]: Sound engine started

[11:53:42] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[11:53:45] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:53:45] [server thread/INFO]: Generating keypair

[11:53:45] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[11:53:45] [server thread/INFO] [FML]: Loading dimension 0 (Periodicsytem) (net.minecraft.server.integrated.IntegratedServer@2fb31d0f)

[11:53:45] [server thread/INFO] [FML]: Loading dimension 5 (Periodicsytem) (net.minecraft.server.integrated.IntegratedServer@2fb31d0f)

[11:53:45] [server thread/INFO] [FML]: Loading dimension 1 (Periodicsytem) (net.minecraft.server.integrated.IntegratedServer@2fb31d0f)

[11:53:45] [server thread/INFO] [FML]: Loading dimension -1 (Periodicsytem) (net.minecraft.server.integrated.IntegratedServer@2fb31d0f)

[11:53:45] [server thread/INFO]: Preparing start region for level 0

[11:53:47] [Netty Client IO #0/INFO] [FML]: Server protocol version 1

[11:53:47] [Netty IO #1/INFO] [FML]: Client protocol version 1

[11:53:47] [Netty IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]

[11:53:47] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[11:53:47] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

[11:53:47] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[11:53:47] [server thread/INFO]: Player181[local:E:4063d89c] logged in with entity id 229 at (8.635152823710513, 63.0, 0.769718496594578)

[11:53:47] [server thread/INFO]: Player181 joined the game

[11:53:47] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[11:53:49] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Ticking memory connection

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:198) ~[NetworkSystem.class:?]

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

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

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

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

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

Caused by: java.lang.ClassCastException: com.kloon.periodicsystem.gui.GuiDiary cannot be cast to net.minecraft.inventory.Container

at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:241) ~[NetworkRegistry.class:?]

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75) ~[FMLNetworkHandler.class:?]

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2510) ~[EntityPlayer.class:?]

at com.kloon.periodicsystem.Diary.onItemRightClick(Diary.java:23) ~[Diary.class:?]

at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:165) ~[itemStack.class:?]

at net.minecraft.server.management.ItemInWorldManager.tryUseItem(ItemInWorldManager.java:341) ~[itemInWorldManager.class:?]

at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:572) ~[NetHandlerPlayServer.class:?]

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) ~[C08PacketPlayerBlockPlacement.class:?]

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) ~[C08PacketPlayerBlockPlacement.class:?]

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232) ~[NetworkManager.class:?]

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?]

... 5 more

[11:53:49] [server thread/ERROR]: This crash report has been saved to: C:\Users\Tim\Desktop\forge\ForgeMods\eclipse\.\crash-reports\crash-2014-06-17_11.53.49-server.txt

[11:53:49] [server thread/INFO]: Stopping server

[11:53:49] [server thread/INFO]: Saving players

---- Minecraft Crash Report ----

// I'm sorry, Dave.

 

Time: 17.06.14 11:53

Description: Ticking memory connection

 

java.lang.ClassCastException: com.kloon.periodicsystem.gui.GuiDiary cannot be cast to net.minecraft.inventory.Container

at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:241)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2510)

at com.kloon.periodicsystem.Diary.onItemRightClick(Diary.java:23)

at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:165)

at net.minecraft.server.management.ItemInWorldManager.tryUseItem(ItemInWorldManager.java:341)

at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:572)

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232)

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)

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

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

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

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

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

 

 

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

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

 

-- Head --

Stacktrace:

at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:241)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)

at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2510)

at com.kloon.periodicsystem.Diary.onItemRightClick(Diary.java:23)

at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:165)

at net.minecraft.server.management.ItemInWorldManager.tryUseItem(ItemInWorldManager.java:341)

at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:572)

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:232)

 

-- Ticking connection --

Details:

Connection: net.minecraft.network.NetworkManager@1050ce66

Stacktrace:

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)

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

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

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

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

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

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.8.0, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 760844024 bytes (725 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

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

AABB Pool Size: 1318 (73808 bytes; 0 MB) allocated, 1023 (57288 bytes; 0 MB) used

IntCache: cache: 15, tcache: 0, allocated: 13, tallocated: 95

FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active

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

FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Periodicsystem{1.2} [Periodicsystem] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Profiler Position: N/A (disabled)

Vec3 Pool Size: 1805 (101080 bytes; 0 MB) allocated, 1571 (87976 bytes; 0 MB) used

Player Count: 1 / 8; [EntityPlayerMP['Player181'/229, l='Periodicsytem', x=8,64, y=63,00, z=0,77]]

Type: Integrated Server (map_client.txt)

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

#@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-06-17_11.53.49-server.txt

[11:53:49] [server thread/INFO]: Saving worlds

[11:53:49] [server thread/INFO]: Saving chunks for level 'Periodicsytem'/Overworld

[11:53:49] [Client Shutdown Thread/INFO]: Stopping server

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

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

Diary

 

 

public class Diary extends Item {

public Diary(){
	this.setCreativeTab(Periodicsystem.PeriodicsystemItems);
}

public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player)
    {

			player.openGui(Periodicsystem.instance, Periodicsystem.GuiIDDiary, world, (int) player.posX, (int)player.posY,(int) player.posZ);







	return itemstack;
    }   


}	

 

 

Gui Diary

 

 

public class GuiDiary extends GuiScreen{

ResourceLocation texture = new ResourceLocation(Periodicsystem.MODID + ":textures/gui/diarygui.png");
public final int xSizeOfTexture = 100;
public final int ySizeOfTexture = 150;

public GuiDiary(EntityPlayer player){

}

@Override
public void drawScreen(int x, int y, float f){
	drawDefaultBackground();
	GL11.glColor4f(1F, 1F, 1F, 1F);

	Minecraft.getMinecraft().getTextureManager().bindTexture(texture);

	int posX = (this.width - xSizeOfTexture) / 2;
	int posY = (this.width - ySizeOfTexture) / 2;
	drawTexturedModalRect(posX, posY, 0, 0, xSizeOfTexture, ySizeOfTexture);

			super.drawScreen(x, y, f);
}

@Override
public boolean doesGuiPauseGame(){
	return false;
}


}

 

Creator of Extra Shoes

 

Watch out, I'm total jerk, and I'll troll anybody if it feels like its necessary. Pls report me then

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.