But everytime i press the button, the game crashes.
Error:
Spoiler:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Updating screen events
A full error report has been saved to C:\Users\Dustin\Desktop\coding\Modding\Versions\1.4.6\Home\mcp725\jars\.\crash-reports\crash-2013-02-07_18.37.50-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT 6eb3b1b --------
Full report at:
C:\Users\Dustin\Desktop\coding\Modding\Versions\1.4.6\Home\mcp725\jars\.\crash-reports\crash-2013-02-07_18.37.50-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 2/7/13 6:37 PM
-- Head --
Stacktrace:
at net.minecraft.src.TARDISGui.mouseClicked(TARDISGui.java:64)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:198)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:172)
-- Affected screen --
Details:
Screen name: net.minecraft.src.TARDISGui
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player483'/17, l='MpServer', x=-638.29, y=5.62, z=448.35]]
Chunk stats: MultiplayerChunkCache: 441
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (-639,4,453), Chunk: (at 1,0,5 in -40,28; contains blocks -640,0,448 to -625,255,463), Region: (-2,0; contains chunks -64,0 to -33,31, blocks -1024,0,0 to -513,255,511)
Level time: 2931 game time, 2931 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: survival (ID 0). Hardcore: false. Cheats: false
Forced entities: 4 total; [EntitySlime['Slime'/6, l='MpServer', x=-650.18, y=4.81, z=427.84], EntitySlime['Slime'/7, l='MpServer', x=-647.42, y=4.69, z=525.97], EntitySlime['Slime'/11, l='MpServer', x=-603.48, y=4.00, z=528.54], EntityClientPlayerMP['Player483'/17, l='MpServer', x=-638.29, y=5.62, z=448.35]]
Retry entities: 0 total; []
Stacktrace:
at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:406)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2434)
at net.minecraft.client.Minecraft.run(Minecraft.java:784)
at java.lang.Thread.run(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.4.6
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_10, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 835665272 bytes (796 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 21638 (1211728 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.6
mod_TARDIS null
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics Family GL version 3.0.0 - Build 8.15.10.2246, Intel
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: 159 (8904 bytes; 0 MB) allocated, 15 (840 bytes; 0 MB) used
java.lang.NullPointerException
at net.minecraft.src.TARDISGui.mouseClicked(TARDISGui.java:64)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:198)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:172)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1500)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:843)
at net.minecraft.client.Minecraft.run(Minecraft.java:768)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 76f7695c ----------
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Updating screen events
A full error report has been saved to C:\Users\Dustin\Desktop\coding\Modding\Versions\1.4.6\Home\mcp725\jars\.\crash-reports\crash-2013-02-07_18.37.50-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT 6eb3b1b --------
Full report at:
C:\Users\Dustin\Desktop\coding\Modding\Versions\1.4.6\Home\mcp725\jars\.\crash-reports\crash-2013-02-07_18.37.50-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 2/7/13 6:37 PM
-- Head --
Stacktrace:
at net.minecraft.src.TARDISGui.mouseClicked(TARDISGui.java:64)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:198)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:172)
-- Affected screen --
Details:
Screen name: net.minecraft.src.TARDISGui
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player483'/17, l='MpServer', x=-638.29, y=5.62, z=448.35]]
Chunk stats: MultiplayerChunkCache: 441
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (-639,4,453), Chunk: (at 1,0,5 in -40,28; contains blocks -640,0,448 to -625,255,463), Region: (-2,0; contains chunks -64,0 to -33,31, blocks -1024,0,0 to -513,255,511)
Level time: 2931 game time, 2931 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: survival (ID 0). Hardcore: false. Cheats: false
Forced entities: 4 total; [EntitySlime['Slime'/6, l='MpServer', x=-650.18, y=4.81, z=427.84], EntitySlime['Slime'/7, l='MpServer', x=-647.42, y=4.69, z=525.97], EntitySlime['Slime'/11, l='MpServer', x=-603.48, y=4.00, z=528.54], EntityClientPlayerMP['Player483'/17, l='MpServer', x=-638.29, y=5.62, z=448.35]]
Retry entities: 0 total; []
Stacktrace:
at net.minecraft.src.WorldClient.addWorldInfoToCrashReport(WorldClient.java:406)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2434)
at net.minecraft.client.Minecraft.run(Minecraft.java:784)
at java.lang.Thread.run(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.4.6
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_10, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 835665272 bytes (796 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 21638 (1211728 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.6
mod_TARDIS null
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics Family GL version 3.0.0 - Build 8.15.10.2246, Intel
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: 159 (8904 bytes; 0 MB) allocated, 15 (840 bytes; 0 MB) used
java.lang.NullPointerException
at net.minecraft.src.TARDISGui.mouseClicked(TARDISGui.java:64)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:198)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:172)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1500)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:843)
at net.minecraft.client.Minecraft.run(Minecraft.java:768)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 76f7695c ----------
Code:
Spoiler:
package net.minecraft.src;
import java.awt.image.BufferedImage;
import org.lwjgl.opengl.GL11;
public class TARDISGui extends GuiScreen
{
public TARDISGui()
{
}
//Declarations:
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//Text Fields
//Name Tardis
private GuiTextField Name;
//Teleport X coor
private GuiTextField TeleportX;
//Teleport Y coor
private GuiTextField TeleportY;
//Teleport Z coor
private GuiTextField TeleportZ;
private String TardisText;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public void initGui()
{
controlList.clear();
//Buttons
//Name
// controlList.add(new GuiButton(1, width / 2 + 2, height / 2 + 20, 98, 20, "Name"));
//Teleportation
// controlList.add(new GuiButton(2, width / 2 + 2, height / 2 + 20, 98, 20, "Teleportation"));
//Inventory
// controlList.add(new GuiButton(3, width / 2 + 2, height / 2 + 20, 98, 20, "Inventory"));
//Overworld
// controlList.add(new GuiButton(4, width / 2 + 2, height / 2 + 20, 98, 20, "Overworld"));
//Nether
// controlList.add(new GuiButton(5, width / 2 + 2, height / 2 + 20, 98, 20, "Nether"));
//End
// controlList.add(new GuiButton(6, width / 2 + 2, height / 2 + 20, 98, 20, "End"));
//OtherWorld
// controlList.add(new GuiButton(7, width / 2 + 2, height / 2 + 20, 98, 20, "OtherWorld"));
//Teleport
controlList.add(new GuiButton(1, width / 2 + 2, height / 2 + 20, 98, 20, "Teleport"));
//Save Current
// controlList.add(new GuiButton(9, width / 2 + 2, height / 2 + 20, 98, 20, "Save Current"));
//Saved Locations
// controlList.add(new GuiButton(10, width / 2 + 2, height / 2 + 20, 98, 20, "Saved Locations"));
}
public void keyTyped(char c, int i)
{
super.keyTyped(c, i);
Name.textboxKeyTyped(c, i);
TeleportX.textboxKeyTyped(c, i);
TeleportY.textboxKeyTyped(c, i);
TeleportZ.textboxKeyTyped(c, i);
}
public void mouseClicked(int i, int j, int k)
{
super.mouseClicked(i, j, k);
Name.mouseClicked(i, j, k);
TeleportX.mouseClicked(i, j, k);
TeleportY.mouseClicked(i, j, k);
TeleportZ.mouseClicked(i, j, k);
}
protected void actionPerformed(GuiButton guibutton, EntityPlayer entityplayer)
{
/*
if(guibutton.id == 1)
{
}
if(guibutton.id == 2)
{
}
if(guibutton.id == 3)
{
}
if(guibutton.id == 4)
{
}
if(guibutton.id == 5)
{
}
if(guibutton.id == 6)
{
}
if(guibutton.id == 7)
{
}
*/
if(guibutton.id == 1)
{
//ModLoader.getMinecraftInstance().theWorld.setRainStrength(5F);
//ModLoader.getMinecraftInstance().theWorld.setRainStrength(0F);
//double posX, posY, posZ;
//get input dimension
//get/set input coor.
//posX = Double.parseDouble( TeleportX.getText() );
//posY = Double.parseDouble( TeleportX.getText() );
//posZ = Double.parseDouble( TeleportX.getText() );
//teleport the player
//entityplayer.setPosition(entityplayer.posX, entityplayer.posY, entityplayer.posZ);
//entityplayer.setPosition(posX + 1, posY, posZ);
entityplayer.setPosition(100, 100, 100);
//console.setPosition(posX, posY, posZ);
//tardis.setPosition(posX, posY, posZ);
}
/*
if(guibutton.id == 9)
{
}
if(guibutton.id == 10)
{
}
*/
}
public boolean doesGuiPauseGame()
{
return false;
}
public void onGuiClosed()
{
}
public void drawScreen(int i, int j, float f)
{
drawDefaultBackground();
drawGradientRect(20, 20, width - 20, height - 20, 0x60500000, 0xa0803030);
drawRect(60, 60, width - 60, height - 60, 0xFF0000FF);
drawString(fontRenderer, "Rain Controller",width / 2 - 100, height / 2 - 40 , 0xCCCCCC);
drawCenteredString(fontRenderer, "Weather Controller", width / 2, 45, 0xffffff);
super.drawScreen(i, j, f);
}
}










