21 - 40 of 96
deadrecon98DarkEyeDragonOk so i'm working on an update for my Better Gui + mod but its not really working out...
Well it was untill i had to finish it off.
So i created my mod and changed some code here and there to be compatible with 1.6 but then wen i add the@Mod(modid = "BetterGui")
it just crashes. this is what i did:@SideOnly(Side.CLIENT)
@Mod(modid = "BetterGui")
public class CustomButton extends GuiButton {
public CustomButton(int i, int j, int k, String s)
{
this(i, j, k, 120, 20, s);
}
public CustomButton(int i, int j, int k, int l, int i1, String s)
{
super(i, j, k, l, i1, s);
}
protected int getHoverState(boolean flag)
{
byte byte0 = 1;
if (!enabled)
{
byte0 = 0;
}
else if (flag)
{
byte0 = 2;
}
return byte0;
}
public void drawButton(Minecraft mc, int mx, int my)
{
FontRenderer fontrenderer = mc.fontRenderer;
boolean flag = mx >= xPosition && my >= yPosition && mx < xPosition + width && my < yPosition + height; //Flag, tells if your mouse is hovering the button
if (flag)
{ // Hover Action
drawBorderedRect(xPosition -3, yPosition -1, xPosition +3 + width, yPosition + height +1, 1, 0x90FFFFFF, 0x80000000);
drawCenteredString(fontrenderer, displayString, xPosition + width / 2, yPosition + (height - 8) / 2, 0x870000);
}
else { // Normal
drawBorderedRect(xPosition, yPosition, xPosition + width, yPosition + height, 1, 0x90FFFFFF, 0x60000000);
drawCenteredString(fontrenderer, displayString, xPosition + width / 2, yPosition + (height - 8) / 2, 0xFFCCCCCC);
}
}
}
And this is the errorlog i get:---- Minecraft Crash Report ----
// You're mean.
Time: 20/12/13 18:22
Description: There was a severe problem during mod loading that has caused the game to fail
cpw.mods.fml.common.LoaderException: java.lang.InstantiationException: bettergui.CustomButton
at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:521)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)
at net.minecraft.client.Minecraft.run(Minecraft.java:808)
at net.minecraft.client.main.Main.main(Main.java:93)
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:131)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Caused by: java.lang.InstantiationException: bettergui.CustomButton
at java.lang.Class.newInstance(Unknown Source)
at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:174)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:518)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)
... 10 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.6.4
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 901455976 bytes (859 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed
Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed
BetterGui{1.0} [BetterGui] (bin) Unloaded->Errored
...Why dont you just go check out my tutorials. xD
Eco212I think the just the fact that you judge people's maturity by their age deters a lot of people from this thread.
Koslaw99Modder
Name: TheNuk
Team: No
21 - 40 of 96
© 2010 - 2024
www.planetminecraft.com