The Meaning of Life, the Universe, and Everything.
Join Date:
8/11/2012
Posts:
59
Member Details
Hey everyone!
Im currently working on my mod for 1.6.2. So im working on a basic furnace for my items and stuff that will be required to make my machines. Im having two problems tho.
When i right-click my refiner to open the GUI, the game crashes. I think i forgot some methods in my TileEntityRefiner, and i would like it if you guys could help me fix that.
Crash report :
---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 13-07-09 10:51
Description: Ticking memory connectionjava.lang.NullPointerException
at cpw.mods.fml.common.modloader.ModLoaderHelper.openGui(ModLoaderHelper.java:177)
at net.minecraft.src.ModLoader.serverOpenWindow(ModLoader.java:831)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:90)
at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:416)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:554)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
A detailed walkthrough of the error, its code path and all known details is as follows:
----------------------------------------------------------------------------------------- Head --
Stacktrace:
at cpw.mods.fml.common.modloader.ModLoaderHelper.openGui(ModLoaderHelper.java:177)
at net.minecraft.src.ModLoader.serverOpenWindow(ModLoader.java:831)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:90)
at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:416)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:554)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
-- Ticking connection --
Details:
Connection: net.minecraft.network.NetServerHandler@1b8cffab
Stacktrace:
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Mac OS X (x86_64) version 10.7.5
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 801269944 bytes (764 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 3356 (187936 bytes; 0 MB) allocated, 3317 (185752 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v8.04 FML v6.2.16.784 Minecraft Forge 9.10.0.784 4 mods loaded, 4 mods active
mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
FML{6.2.16.784} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge{9.10.0.784} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
ProjectDestiny{a2r1} [Project Destiny] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 3910 (218960 bytes; 0 MB) allocated, 3590 (201040 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player593'/1391, l='Refiner', x=-101,47, y=71,00, z=194,71]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
All my textures are working, except for this one since its my only multi-textured block. How do i fix this?Fixed
Im currently working on my mod for 1.6.2. So im working on a basic furnace for my items and stuff that will be required to make my machines. Im having two problems tho.
When i right-click my refiner to open the GUI, the game crashes. I think i forgot some methods in my TileEntityRefiner, and i would like it if you guys could help me fix that.
Crash report :
---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 13-07-09 10:51
Description: Ticking memory connectionjava.lang.NullPointerException
at cpw.mods.fml.common.modloader.ModLoaderHelper.openGui(ModLoaderHelper.java:177)
at net.minecraft.src.ModLoader.serverOpenWindow(ModLoader.java:831)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:90)
at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:416)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:554)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
A detailed walkthrough of the error, its code path and all known details is as follows:
----------------------------------------------------------------------------------------- Head --
Stacktrace:
at cpw.mods.fml.common.modloader.ModLoaderHelper.openGui(ModLoaderHelper.java:177)
at net.minecraft.src.ModLoader.serverOpenWindow(ModLoader.java:831)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:90)
at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:416)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:554)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
-- Ticking connection --
Details:
Connection: net.minecraft.network.NetServerHandler@1b8cffab
Stacktrace:
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Mac OS X (x86_64) version 10.7.5
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 801269944 bytes (764 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 3356 (187936 bytes; 0 MB) allocated, 3317 (185752 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v8.04 FML v6.2.16.784 Minecraft Forge 9.10.0.784 4 mods loaded, 4 mods active
mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
FML{6.2.16.784} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge{9.10.0.784} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
ProjectDestiny{a2r1} [Project Destiny] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 3910 (218960 bytes; 0 MB) allocated, 3590 (201040 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player593'/1391, l='Refiner', x=-101,47, y=71,00, z=194,71]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
All my textures are working, except for this one since its my only multi-textured block. How do i fix this?Fixed
If you dont have a GUI handler, try just making a new class:
package YourPackage;
import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.src.*;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraft.entity.player.*;
public class TestGuiHandler implements IGuiHandler{
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new *your furnaces container class here*(player.inventory, (*your furnaces TileEntity class here*) tile_entity);
default:
return null;
}
}
@Override
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new *your furnaces GUI class here*(player.inventory, (*your furnaces TileEntity class here*) tile_entity);
default:
return null;
}
}
}
}
Then in your main mod class, add:
private TestGuiHandler TestguiHandler = new TestGuiHandler();
@Instance
public static *Main mod class name* instance = new *Main mod class name*();
java.lang.NullPointerException
at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:356)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2461)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:92)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:371)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1378)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1854)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
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.openLocalGui(NetworkRegistry.java:328)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:356)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2461)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:92)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:371)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1378)
java.lang.NullPointerException
at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:356)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2461)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:92)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:371)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1378)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1854)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
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.openLocalGui(NetworkRegistry.java:328)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:356)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2461)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:92)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:371)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1378)
The Meaning of Life, the Universe, and Everything.
Join Date:
8/11/2012
Posts:
59
Member Details
And here it is too!
package Destiny;
import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.src.*;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraft.entity.player.*;
public class DestinyGuiHandler implements IGuiHandler{
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new ContainerRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
@Override
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new GuiRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
}
package Destiny;
import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.src.*;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraft.entity.player.*;
public class DestinyGuiHandler implements IGuiHandler{
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new ContainerRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
@Override
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new GuiRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
}
Ok, ill be right back, im going to take a look at my mods code, and see if i missed something, because it should be working right now... xD.
package Destiny;
import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.src.*;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraft.entity.player.*;
public class DestinyGuiHandler implements IGuiHandler{
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new ContainerRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
@Override
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new GuiRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
}
package Destiny;
import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.src.*;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraft.entity.player.*;
public class DestinyGuiHandler implements IGuiHandler{
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new ContainerRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
@Override
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z){
TileEntity tile_entity = world.getBlockTileEntity(x, y, z);
switch(id){
case 0:
return new GuiRefiner(player.inventory, (TileEntityRefiner) tile_entity);
default:
return null;
}
}
}
The Meaning of Life, the Universe, and Everything.
Join Date:
8/11/2012
Posts:
59
Member Details
Finally i can open it without crashing!
But there's one last problem. When i do open it, it closes instantly. Il'll try to fix this one, but if you know what's wrong, could you please tell me?
EDIT : Okay, couldn't find what's wrong. Maybe its just me being a total idiot. Here's the error thing :
2013-07-10 18:54:11 [SEVERE] [ForgeModLoader] A TileEntity type Destiny.TileEntityRefiner has throw an exception trying to write state. It will not persist. Report this to the mod author
java.lang.RuntimeException: class Destiny.TileEntityRefiner is missing a mapping! This is a bug!
at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:108)
at Destiny.TileEntityRefiner.writeToNBT(TileEntityRefiner.java:186)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:317)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:127)
at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:232)
at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:284)
at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:897)
at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:358)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:124)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
EDIT 2: Got a new error but found out what is wrong. I think.
But there's one last problem. When i do open it, it closes instantly. Il'll try to fix this one, but if you know what's wrong, could you please tell me?
The Meaning of Life, the Universe, and Everything.
Join Date:
8/11/2012
Posts:
59
Member Details
Found the problem. But i don't really know how to fix it. Its a problem with the resource location of my GUI texture. Its in the good place, im just not sure on how to register it. Here's the line of code that needs fixing :
private static final ResourceLocation REFINERGUI = new ResourceLocation("/assets/projectdestiny/textures/gui/refiner.png");
Found the problem. But i don't really know how to fix it. Its a problem with the resource location of my GUI texture. Its in the good place, im just not sure on how to register it. Here's the line of code that needs fixing :
private static final ResourceLocation REFINERGUI = new ResourceLocation("/assets/projectdestiny/textures/gui/refiner.png");
Found the problem. But i don't really know how to fix it. Its a problem with the resource location of my GUI texture. Its in the good place, im just not sure on how to register it. Here's the line of code that needs fixing :
private static final ResourceLocation REFINERGUI = new ResourceLocation("/assets/projectdestiny/textures/gui/refiner.png");
Im currently working on my mod for 1.6.2. So im working on a basic furnace for my items and stuff that will be required to make my machines. Im having two problems tho.
When i right-click my refiner to open the GUI, the game crashes. I think i forgot some methods in my TileEntityRefiner, and i would like it if you guys could help me fix that.---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 13-07-09 10:51
Description: Ticking memory connectionjava.lang.NullPointerException
at cpw.mods.fml.common.modloader.ModLoaderHelper.openGui(ModLoaderHelper.java:177)
at net.minecraft.src.ModLoader.serverOpenWindow(ModLoader.java:831)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:90)
at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:416)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:554)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
A detailed walkthrough of the error, its code path and all known details is as follows:
----------------------------------------------------------------------------------------- Head --
Stacktrace:
at cpw.mods.fml.common.modloader.ModLoaderHelper.openGui(ModLoaderHelper.java:177)
at net.minecraft.src.ModLoader.serverOpenWindow(ModLoader.java:831)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:90)
at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:416)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:554)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
-- Ticking connection --
Details:
Connection: net.minecraft.network.NetServerHandler@1b8cffab
Stacktrace:
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Mac OS X (x86_64) version 10.7.5
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 801269944 bytes (764 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 3356 (187936 bytes; 0 MB) allocated, 3317 (185752 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63
FML: MCP v8.04 FML v6.2.16.784 Minecraft Forge 9.10.0.784 4 mods loaded, 4 mods active
mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
FML{6.2.16.784} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge{9.10.0.784} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
ProjectDestiny{a2r1} [Project Destiny] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 3910 (218960 bytes; 0 MB) allocated, 3590 (201040 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player593'/1391, l='Refiner', x=-101,47, y=71,00, z=194,71]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
All my textures are working, except for this one since its my only multi-textured block. How do i fix this?Fixedhttps://github.com/HoodiePanda/Destiny
Thanks in advance!
Yellow Monkey Corporation Thread
Are you using Forge or Modloader?
Mapping and Modding rules | Global rules
Yellow Monkey Corporation Thread
Yellow Monkey Corporation Thread
If you dont have a GUI handler, try just making a new class:
Then in your main mod class, add:
And finally, change:
To:
Hope this helps .
Mapping and Modding rules | Global rules
I added that stuff, but now i can't open the refiner's GUI. Would you happen to know how i could fix this?
Yellow Monkey Corporation Thread
Try get ridding of the :
in the onBlockActivated method .
Mapping and Modding rules | Global rules
Here's the new crash report :
// There are four lights!
Time: 13-07-10 18:12
Description: Unexpected error
java.lang.NullPointerException
at cpw.mods.fml.common.network.NetworkRegistry.openLocalGui(NetworkRegistry.java:328)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:356)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2461)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:92)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:371)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1378)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1854)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
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.openLocalGui(NetworkRegistry.java:328)
at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:356)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2461)
at Destiny.blockRefiner.onBlockActivated(blockRefiner.java:92)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:371)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1378)
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player871'/283, l='MpServer', x=-99,19, y=72,62, z=197,39]]
Chunk stats: MultiplayerChunkCache: 240
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (-108,64,232), Chunk: (at 4,4,8 in -7,14; contains blocks -112,0,224 to -97,255,239), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 3247 game time, 3247 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: 112 total; [EntityClientPlayerMP['Player871'/283, l='MpServer', x=-99,19, y=72,62, z=197,39], EntitySkeleton['Skeleton'/39, l='MpServer', x=-162,50, y=12,00, z=247,31], EntitySkeleton['Skeleton'/42, l='MpServer', x=-167,13, y=37,00, z=274,50], EntityCreeper['Creeper'/40, l='MpServer', x=-160,22, y=28,00, z=268,63], EntitySquid['Squid'/46, l='MpServer', x=-149,88, y=47,39, z=209,38], EntitySquid['Squid'/47, l='MpServer', x=-145,50, y=47,00, z=212,46], EntitySquid['Squid'/45, l='MpServer', x=-147,63, y=47,42, z=192,48], EntitySquid['Squid'/51, l='MpServer', x=-155,91, y=54,40, z=245,53], EntityBat['Bat'/50, l='MpServer', x=-158,50, y=11,05, z=247,34], EntitySpider['Spider'/49, l='MpServer', x=-159,97, y=14,00, z=243,84], EntitySquid['Squid'/48, l='MpServer', x=-149,21, y=57,38, z=214,09], EntitySquid['Squid'/54, l='MpServer', x=-152,40, y=56,24, z=260,76], EntityCreeper['Creeper'/53, l='MpServer', x=-157,11, y=27,00, z=263,72], EntityCreeper['Creeper'/52, l='MpServer', x=-155,66, y=28,00, z=265,97], EntityZombie['Zombie'/57, l='MpServer', x=-157,50, y=39,00, z=274,50], EntityZombie['Zombie'/56, l='MpServer', x=-150,94, y=37,00, z=277,69], EntitySquid['Squid'/69, l='MpServer', x=-141,50, y=44,51, z=179,47], EntitySquid['Squid'/70, l='MpServer', x=-142,99, y=48,34, z=202,72], EntitySquid['Squid'/71, l='MpServer', x=-131,94, y=51,39, z=203,12], EntityZombie['Zombie'/76, l='MpServer', x=-143,44, y=33,00, z=249,41], EntityZombie['Zombie'/77, l='MpServer', x=-141,50, y=37,00, z=248,16], EntityBat['Bat'/78, l='MpServer', x=-134,25, y=38,10, z=269,75], EntityBat['Bat'/79, l='MpServer', x=-139,25, y=37,00, z=267,50], EntitySquid['Squid'/72, l='MpServer', x=-139,36, y=49,28, z=208,29], EntitySquid['Squid'/73, l='MpServer', x=-131,51, y=51,38, z=207,23], EntitySquid['Squid'/74, l='MpServer', x=-137,20, y=48,95, z=193,85], EntitySkeleton['Skeleton'/75, l='MpServer', x=-131,50, y=44,00, z=231,50], EntityBat['Bat'/81, l='MpServer', x=-142,56, y=36,10, z=272,59], EntityChicken['Chicken'/95, l='MpServer', x=-120,56, y=72,00, z=126,44], EntityBat['Bat'/102, l='MpServer', x=-126,72, y=42,10, z=239,75], EntityBat['Bat'/103, l='MpServer', x=-127,28, y=37,10, z=238,06], EntityBat['Bat'/100, l='MpServer', x=-112,25, y=26,10, z=168,25], EntitySkeleton['Skeleton'/101, l='MpServer', x=-119,72, y=43,00, z=165,50], EntityItem['item.tile.sapling.oak'/98, l='MpServer', x=-125,75, y=71,13, z=134,88], EntityItem['item.tile.sapling.oak'/99, l='MpServer', x=-120,13, y=80,13, z=136,50], EntityChicken['Chicken'/96, l='MpServer', x=-117,63, y=72,00, z=141,94], EntityItem['item.tile.sapling.oak'/97, l='MpServer', x=-123,13, y=79,13, z=137,56], EntityChicken['Chicken'/110, l='MpServer', x=-105,53, y=70,00, z=164,44], EntityZombie['Zombie'/111, l='MpServer', x=-110,22, y=15,00, z=206,50], EntityBat['Bat'/108, l='MpServer', x=-104,28, y=29,10, z=154,88], EntityZombie['Zombie'/109, l='MpServer', x=-102,56, y=43,00, z=146,22], EntityChicken['Chicken'/107, l='MpServer', x=-110,53, y=71,00, z=142,84], EntitySkeleton['Skeleton'/104, l='MpServer', x=-126,09, y=39,00, z=253,56], EntityBat['Bat'/112, l='MpServer', x=-111,78, y=43,10, z=260,63], EntityItem['item.item.apple'/127, l='MpServer', x=-86,63, y=80,13, z=157,13], EntitySkeleton['Skeleton'/126, l='MpServer', x=-82,50, y=15,00, z=152,38], EntitySkeleton['Skeleton'/125, l='MpServer', x=-91,30, y=18,00, z=142,31], EntityZombie['Zombie'/124, l='MpServer', x=-93,50, y=26,00, z=141,50], EntitySquid['Squid'/137, l='MpServer', x=-81,72, y=48,32, z=256,75], EntitySquid['Squid'/136, l='MpServer', x=-79,67, y=55,00, z=252,50], EntityZombie['Zombie'/129, l='MpServer', x=-80,41, y=48,00, z=175,94], EntityItem['item.tile.sapling.oak'/128, l='MpServer', x=-90,25, y=80,13, z=157,13], EntityItem['item.item.apple'/131, l='MpServer', x=-88,25, y=72,13, z=162,88], EntityItem['item.tile.sapling.oak'/130, l='MpServer', x=-86,88, y=77,13, z=160,50], EntityZombie['Zombie'/133, l='MpServer', x=-86,47, y=44,00, z=179,84], EntityItem['item.tile.sapling.oak'/132, l='MpServer', x=-88,47, y=71,13, z=161,88], EntitySquid['Squid'/135, l='MpServer', x=-89,75, y=55,34, z=253,69], EntityZombie['Zombie'/134, l='MpServer', x=-82,44, y=16,00, z=209,41], EntityZombie['Zombie'/156, l='MpServer', x=-77,50, y=57,00, z=139,50], EntityBat['Bat'/157, l='MpServer', x=-69,75, y=61,10, z=149,50], EntityEnderman['Enderman'/158, l='MpServer', x=-67,25, y=58,00, z=152,63], EntityCreeper['Creeper'/159, l='MpServer', x=-75,25, y=61,00, z=149,97], EntityCreeper['Creeper'/171, l='MpServer', x=-74,91, y=49,00, z=176,63], EntityItem['item.tile.sapling.oak'/170, l='MpServer', x=-75,47, y=76,13, z=161,41], EntityItem['item.tile.sapling.oak'/169, l='MpServer', x=-74,44, y=71,13, z=162,34], EntityItem['item.item.seeds'/168, l='MpServer', x=-65,34, y=62,13, z=168,31], EntityZombie['Zombie'/175, l='MpServer', x=-78,88, y=17,00, z=212,31], EntityCreeper['Creeper'/174, l='MpServer', x=-75,53, y=17,00, z=211,38], EntityCreeper['Creeper'/173, l='MpServer', x=-77,47, y=17,00, z=211,56], EntityCreeper['Creeper'/172, l='MpServer', x=-70,00, y=48,00, z=179,66], EntityItem['item.tile.sapling.oak'/163, l='MpServer', x=-77,31, y=79,13, z=156,88], EntityItem['item.tile.sapling.oak'/162, l='MpServer', x=-78,44, y=76,13, z=153,69], EntityBat['Bat'/161, l='MpServer', x=-69,56, y=61,10, z=149,97], EntityCreeper['Creeper'/160, l='MpServer', x=-67,50, y=58,00, z=151,78], EntityItem['item.item.seeds'/167, l='MpServer', x=-66,34, y=63,13, z=167,28], EntityItem['item.tile.sapling.oak'/166, l='MpServer', x=-77,13, y=71,13, z=153,88], EntityItem['item.tile.sapling.oak'/165, l='MpServer', x=-75,09, y=79,13, z=156,88], EntityItem['item.tile.sapling.oak'/164, l='MpServer', x=-77,88, y=71,13, z=152,88], EntitySkeleton['Skeleton'/190, l='MpServer', x=-53,69, y=51,00, z=181,31], EntitySkeleton['Skeleton'/191, l='MpServer', x=-52,53, y=51,00, z=182,00], EntityCreeper['Creeper'/188, l='MpServer', x=-48,91, y=33,00, z=121,75], EntityCreeper['Creeper'/189, l='MpServer', x=-53,53, y=36,00, z=137,06], EntitySpider['Spider'/178, l='MpServer', x=-65,44, y=34,00, z=226,72], EntitySpider['Spider'/179, l='MpServer', x=-72,41, y=33,00, z=224,91], EntitySkeleton['Skeleton'/176, l='MpServer', x=-65,31, y=39,00, z=214,53], EntityCreeper['Creeper'/177, l='MpServer', x=-77,69, y=45,00, z=208,47], EntityZombie['Zombie'/180, l='MpServer', x=-75,41, y=42,00, z=246,13], EntityCreeper['Creeper'/205, l='MpServer', x=-56,00, y=25,00, z=230,41], EntitySkeleton['Skeleton'/204, l='MpServer', x=-60,50, y=24,00, z=225,50], EntityBat['Bat'/207, l='MpServer', x=-49,72, y=37,10, z=238,75], EntitySkeleton['Skeleton'/206, l='MpServer', x=-49,63, y=18,00, z=229,69], EntityBat['Bat'/201, l='MpServer', x=-43,25, y=18,64, z=210,63], EntityCreeper['Creeper'/200, l='MpServer', x=-63,00, y=19,00, z=214,22], EntitySkeleton['Skeleton'/203, l='MpServer', x=-54,34, y=18,00, z=227,69], EntitySkeleton['Skeleton'/202, l='MpServer', x=-60,53, y=39,00, z=219,18], EntitySkeleton['Skeleton'/197, l='MpServer', x=-54,50, y=16,00, z=213,50], EntitySkeleton['Skeleton'/196, l='MpServer', x=-60,03, y=22,00, z=213,59], EntitySpider['Spider'/199, l='MpServer', x=-63,81, y=20,00, z=216,63], EntityZombie['Zombie'/198, l='MpServer', x=-57,01, y=17,00, z=215,56], EntityCreeper['Creeper'/193, l='MpServer', x=-59,91, y=19,00, z=204,31], EntityItem['item.tile.gravel'/192, l='MpServer', x=-63,13, y=21,13, z=202,84], EntitySpider['Spider'/195, l='MpServer', x=-49,03, y=35,00, z=204,72], EntityZombie['Zombie'/194, l='MpServer', x=-49,25, y=36,00, z=201,50], EntityBat['Bat'/216, l='MpServer', x=-43,37, y=19,38, z=208,28], EntityBat['Bat'/212, l='MpServer', x=-31,50, y=14,92, z=185,91], EntitySpider['Spider'/213, l='MpServer', x=-46,50, y=19,00, z=201,88], EntitySkeleton['Skeleton'/214, l='MpServer', x=-43,56, y=20,00, z=206,84], EntityBat['Bat'/215, l='MpServer', x=-56,67, y=19,55, z=203,75], EntityCreeper['Creeper'/208, l='MpServer', x=-51,31, y=33,00, z=241,88], EntityBat['Bat'/209, l='MpServer', x=-63,38, y=33,10, z=256,53], EntityBat['Bat'/210, l='MpServer', x=-34,25, y=34,00, z=145,84], EntityBat['Bat'/211, l='MpServer', x=-45,66, y=15,45, z=190,66]]
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.addGraphicsAndWorldToCrashReport(Minecraft.java:2298)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:851)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Mac OS X (x86_64) version 10.7.5
Java Version: 1.7.0_11, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 691611592 bytes (659 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 18838 (1054928 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 2, allocated: 4, tallocated: 60
FML: MCP v8.04 FML v6.2.16.784 Minecraft Forge 9.10.0.784 4 mods loaded, 4 mods active
mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{6.2.16.784} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{9.10.0.784} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
ProjectDestiny{a2r1} [Project Destiny] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: AMD Radeon HD 6750M OpenGL Engine GL version 2.1 ATI-7.32.12, ATI Technologies Inc.
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: 12731 (712936 bytes; 0 MB) allocated, 16 (896 bytes; 0 MB) used
Yellow Monkey Corporation Thread
Can you send me your modified blockRefiner class?
Mapping and Modding rules | Global rules
Yellow Monkey Corporation Thread
Sorry i forgot to tell you earlier, but can you also post your new GUIHandler?
Mapping and Modding rules | Global rules
Yellow Monkey Corporation Thread
Ok, ill be right back, im going to take a look at my mods code, and see if i missed something, because it should be working right now... xD.
Mapping and Modding rules | Global rules
Ok, try adding:
to your main mod class, in your "load" method.
Mapping and Modding rules | Global rules
But there's one last problem. When i do open it, it closes instantly. Il'll try to fix this one, but if you know what's wrong, could you please tell me?
EDIT : Okay, couldn't find what's wrong. Maybe its just me being a total idiot. Here's the error thing :
EDIT 2: Got a new error but found out what is wrong. I think.
Yellow Monkey Corporation Thread
Ok, try adding:
to your mod class's "load" method.
Mapping and Modding rules | Global rules
Yellow Monkey Corporation Thread
Could you post your GUI class ?
Mapping and Modding rules | Global rules
Yellow Monkey Corporation Thread
To:
If that doesnt work, try changing:
To:
Hope this finally fixes the problem xD.
Mapping and Modding rules | Global rules