Jump to content

[1.7.2] Crash when trying to make a simple GUI mod


madcrazydrumma

Recommended Posts

Hey guys, here is my crash log:

 

[20:59:14] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:59:14] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[20:59:14] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[20:59:14] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1057 for Minecraft 1.7.2 loading
[20:59:14] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_51, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7
[20:59:14] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:59:14] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:59:14] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:59:14] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:59:14] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:59:14] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:59:15] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[20:59:15] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/rshah/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1057/forgeSrc-1.7.2-10.12.0.1057.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!
[20:59:15] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[20:59:15] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/rshah/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1057/forgeSrc-1.7.2-10.12.0.1057.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[20:59:15] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:59:15] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:59:15] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[20:59:16] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:59:17] [main/INFO]: Setting user: Player751
[20:59:18] [Client thread/INFO]: LWJGL Version: 2.9.0
[20:59:18] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[20:59:18] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1057 Initialized
[20:59:18] [Client thread/INFO] [FML]: Replaced 141 ore recipies
[20:59:18] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[20:59:18] [Client thread/INFO] [FML]: Searching C:\Users\rshah\Documents\Minecraft Modding\Fast Travel Mod\eclipse\mods for mods
[20:59:19] [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!
[20:59:21] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[20:59:21] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Fast Travel
[20:59:21] [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.
[20:59:22] [Client thread/ERROR]: ########## GL ERROR ##########
[20:59:22] [Client thread/ERROR]: @ Pre startup
[20:59:22] [Client thread/ERROR]: 1286: Invalid framebuffer operation

[20:59:22] [sound Library Loader/INFO]: Sound engine started
[20:59:22] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[20:59:22] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[20:59:22] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[20:59:22] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Fast Travel
[20:59:23] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[20:59:23] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

SoundSystem shutting down...
    Author: Paul Lamb, www.paulscode.com

 

I dont know what code to add so let me know! Thank you!

Link to comment
Share on other sites

I am using forge 157 :P

 

Here is my GUI:

 

package io.madcrazydrumma.gui;

import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;

public class GuiFastTravel extends GuiScreen
{
public GuiFastTravel() {

}

public void initGui() {
	this.buttonList.clear();
}

protected void actionPerformed(GuiButton par1) {

}

@Override
public void drawScreen(int par1, int par2, float par3) {
	drawDefaultBackground();

	drawCenteredString(fontRendererObj, "Fast Travel - Control Menu", width / 2, 40, 16777215);

	super.drawScreen(par1, par2, par3);
}

public boolean doesGuiPauseGame() {
	return true;
}
}

 

and here is my GuiHandler:

 

package io.madcrazydrumma.gui;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;

public class GuiHandler implements IGuiHandler
{
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
	return null;
}

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
	if(ID == 0) {
		return new GuiFastTravel();
	} else {
		return null;
	}
}
}

 

and here is where i open the GUI:

 

package io.madcrazydrumma.command;

import io.madcrazydrumma.gui.GuiFastTravel;
import io.madcrazydrumma.main.FastTravel;

import java.util.List;

import net.minecraft.client.Minecraft;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;

public class CommandFastTravel implements ICommand
{
public CommandFastTravel() {

}

@Override
public String getCommandUsage(ICommandSender var1) {
	return "command.fasttravel.usage";
}

@Override
public int compareTo(Object arg0) {
	return 0;
}

@Override
public String getCommandName() {
	return "fasttravel";
}

@Override
public List getCommandAliases() {
	return null;
}

@Override
public void processCommand(ICommandSender var1, String[] var2) {
	if(var1 instanceof EntityPlayer) {
		EntityPlayer player = (EntityPlayer) var1;
		player.openGui(FastTravel.instance, 0, player.worldObj, (int)player.posX, (int)player.posY, (int)player.posZ);
		//Minecraft.getMinecraft().displayGuiScreen(new GuiFastTravel());
	}
}

@Override
public boolean canCommandSenderUseCommand(ICommandSender var1) {
	return true;
}

@Override
public List addTabCompletionOptions(ICommandSender var1, String[] var2) {
	return null;
}

@Override
public boolean isUsernameIndex(String[] var1, int var2) {
	return false;
}
}

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.