Like I said, that's what I remembered, I really haven't messed with any base classes in a couple of months. I'm not sure what he's trying to do, so I just threw that out there. Either way, the best approach when trying something new that is advanced, is looking around and immersing yourself in the code.
But anyway, thanks Dread, you just now inadvertently gave me some ideas! and also for explaining what python is, in a different thread....
Oo about the python, I explained that it was a scripting language, anyways, I used to program in Python, my first language, I make games with it and a few 3D Engines. It's what got me into scripting. Once you learn python you know 60% of java, once you know C++ you know 70% together you know the syntax(C++) and the object orientation(python) it is easy to pick up almost any language.
And what might be these ideas we hear about, if they are awesome I hope to see them sometime, sounds like you have an interesting idea even though I don't know what it is.
Sorry if this is a stupid question, but i have 0 experience in any of this=[
When I follow the steps at Block.java, everything goes well, however, when you say to hit "Play" in eclipse (witch i assume is the same as run at the top of the bar?) it gives an error with other files not included in Block.java. Is this a problem i need to fix or?
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at net.minecraft.client.Minecraft.main(Minecraft.java:1583)
at Start.main(Start.java:26)
Sorry if this is a stupid question, but i have 0 experience in any of this=[
When I follow the steps at Block.java, everything goes well, however, when you say to hit "Play" in eclipse (witch i assume is the same as run at the top of the bar?) it gives an error with other files not included in Block.java. Is this a problem i need to fix or?
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at net.minecraft.client.Minecraft.main(Minecraft.java:1583)
at Start.main(Start.java:26)
You have an error in your code somewhere. Go over the tutorial again.
@Chewy2014 it's not an error in his code necessarily, but I keep getting errors that OpenGL is not found, anything that draws images or renders the items throws me errors, and when I try hitting play it gives me same error, even though just taking the java files and compiling them and running the client work perfectly.
public static EnumArt valueOf(String s)
{
return (EnumArt)Enum.valueOf(net.minecraft.src.EnumArt.class, s);
}
*/
private EnumArt(String s, int i, String s1, int j, int k, int l, int i1)
{
// super(s, i);
title = s1;
sizeX = j;
sizeY = k;
offsetX = l;
offsetY = i1;
}
/*
public static final EnumArt Kebab;
public static final EnumArt Aztec;
public static final EnumArt Alban;
public static final EnumArt Aztec2;
public static final EnumArt Bomb;
public static final EnumArt Plant;
public static final EnumArt Wasteland;
public static final EnumArt Pool;
public static final EnumArt Courbet;
public static final EnumArt Sea;
public static final EnumArt Sunset;
public static final EnumArt Creebet;
public static final EnumArt Wanderer;
public static final EnumArt Graham;
public static final EnumArt Match;
public static final EnumArt Bust;
public static final EnumArt Stage;
public static final EnumArt Void;
public static final EnumArt SkullAndRoses;
public static final EnumArt Fighters;
public static final EnumArt Pointer;
public static final EnumArt Pigscene;
public static final EnumArt BurningSkull;
public static final EnumArt Skeleton;
public static final EnumArt DonkeyKong;
*/
public static final int maxArtTitleLength = "SkullAndRoses".length();
public final String title;
public final int sizeX;
public final int sizeY;
public final int offsetX;
public final int offsetY;
private static final EnumArt F[]; /* synthetic field */
static
/*
Kebab = new EnumArt("Kebab", 0, "Kebab", 16, 16, 0, 0);
Aztec = new EnumArt("Aztec", 1, "Aztec", 16, 16, 16, 0);
Alban = new EnumArt("Alban", 2, "Alban", 16, 16, 32, 0);
Aztec2 = new EnumArt("Aztec2", 3, "Aztec2", 16, 16, 48, 0);
Bomb = new EnumArt("Bomb", 4, "Bomb", 16, 16, 64, 0);
Plant = new EnumArt("Plant", 5, "Plant", 16, 16, 80, 0);
Wasteland = new EnumArt("Wasteland", 6, "Wasteland", 16, 16, 96, 0);
Pool = new EnumArt("Pool", 7, "Pool", 32, 16, 0, 32);
Courbet = new EnumArt("Courbet", 8, "Courbet", 32, 16, 32, 32);
Sea = new EnumArt("Sea", 9, "Sea", 32, 16, 64, 32);
Sunset = new EnumArt("Sunset", 10, "Sunset", 32, 16, 96, 32);
Creebet = new EnumArt("Creebet", 11, "Creebet", 32, 16, 128, 32);
Wanderer = new EnumArt("Wanderer", 12, "Wanderer", 16, 32, 0, 64);
Graham = new EnumArt("Graham", 13, "Graham", 16, 32, 16, 64);
Match = new EnumArt("Match", 14, "Match", 32, 32, 0, 128);
Bust = new EnumArt("Bust", 15, "Bust", 32, 32, 32, 128);
Stage = new EnumArt("Stage", 16, "Stage", 32, 32, 64, 128);
Void = new EnumArt("Void", 17, "Void", 32, 32, 96, 128);
SkullAndRoses = new EnumArt("SkullAndRoses", 18, "SkullAndRoses", 32, 32, 128, 128);
Fighters = new EnumArt("Fighters", 19, "Fighters", 64, 32, 0, 96);
Pointer = new EnumArt("Pointer", 20, "Pointer", 64, 64, 0, 192);
Pigscene = new EnumArt("Pigscene", 21, "Pigscene", 64, 64, 64, 192);
BurningSkull = new EnumArt("BurningSkull", 22, "BurningSkull", 64, 64, 128, 192);
Skeleton = new EnumArt("Skeleton", 23, "Skeleton", 64, 48, 192, 64);
DonkeyKong = new EnumArt("DonkeyKong", 24, "DonkeyKong", 64, 48, 192, 112);
F = (new EnumArt[] {
Kebab, Aztec, Alban, Aztec2, Bomb, Plant, Wasteland, Pool, Courbet, Sea,
Sunset, Creebet, Wanderer, Graham, Match, Bust, Stage, Void, SkullAndRoses, Fighters,
Pointer, Pigscene, BurningSkull, Skeleton, DonkeyKong
});
}
}
*/
EnumOptions.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public boolean getEnumFloat()
{
return enumFloat;
}
public boolean getEnumBoolean()
{
return enumBoolean;
}
public int returnEnumOrdinal()
{
return ordinal();
}
public String getEnumString()
{
return enumString;
}
/*
public static final EnumOptions MUSIC;
public static final EnumOptions SOUND;
public static final EnumOptions INVERT_MOUSE;
public static final EnumOptions SENSITIVITY;
public static final EnumOptions RENDER_DISTANCE;
public static final EnumOptions VIEW_BOBBING;
public static final EnumOptions ANAGLYPH;
public static final EnumOptions ADVANCED_OPENGL;
public static final EnumOptions LIMIT_FRAMERATE;
public static final EnumOptions DIFFICULTY;
public static final EnumOptions GRAPHICS;
public static final EnumOptions AMBIENT_OCCLUSION;
public static final EnumOptions GUI_SCALE;
*/
private final boolean enumFloat;
private final boolean enumBoolean;
private final String enumString;
private static final EnumOptions q[]; /* synthetic field */
static
/*
MUSIC = new EnumOptions("MUSIC", 0, "options.music", true, false);
SOUND = new EnumOptions("SOUND", 1, "options.sound", true, false);
INVERT_MOUSE = new EnumOptions("INVERT_MOUSE", 2, "options.invertMouse", false, true);
SENSITIVITY = new EnumOptions("SENSITIVITY", 3, "options.sensitivity", true, false);
RENDER_DISTANCE = new EnumOptions("RENDER_DISTANCE", 4, "options.renderDistance", false, false);
VIEW_BOBBING = new EnumOptions("VIEW_BOBBING", 5, "options.viewBobbing", false, true);
ANAGLYPH = new EnumOptions("ANAGLYPH", 6, "options.anaglyph", false, true);
ADVANCED_OPENGL = new EnumOptions("ADVANCED_OPENGL", 7, "options.advancedOpengl", false, true);
LIMIT_FRAMERATE = new EnumOptions("FRAMERATE_LIMIT", 8, "options.framerateLimit", false, false);
DIFFICULTY = new EnumOptions("DIFFICULTY", 9, "options.difficulty", false, false);
GRAPHICS = new EnumOptions("GRAPHICS", 10, "options.graphics", false, false);
AMBIENT_OCCLUSION = new EnumOptions("AMBIENT_OCCLUSION", 11, "options.ao", false, true);
GUI_SCALE = new EnumOptions("GUI_SCALE", 12, "options.guiScale", false, false);
q = (new EnumOptions[] {
MUSIC, SOUND, INVERT_MOUSE, SENSITIVITY, RENDER_DISTANCE, VIEW_BOBBING, ANAGLYPH, ADVANCED_OPENGL, LIMIT_FRAMERATE, DIFFICULTY,
GRAPHICS, AMBIENT_OCCLUSION, GUI_SCALE
});
}
}
*/
that's because anything between /* and */ are comments, and are not part of the script, remove them, they seem to get put there somehow by the MCP, it happened to me as well and I remove them and it works.
that's because anything between /* and */ are comments, and are not part of the script, remove them, they seem to get put there somehow by the MCP, it happened to me as well and I remove them and it works.
public static EnumArt valueOf(String s)
{
return (EnumArt)Enum.valueOf(net.minecraft.src.EnumArt.class, s);
}
*/
private EnumArt(String s, int i, String s1, int j, int k, int l, int i1)
{
// super(s, i);
title = s1;
sizeX = j;
sizeY = k;
offsetX = l;
offsetY = i1;
}
/*
public static final EnumArt Kebab;
public static final EnumArt Aztec;
public static final EnumArt Alban;
public static final EnumArt Aztec2;
public static final EnumArt Bomb;
public static final EnumArt Plant;
public static final EnumArt Wasteland;
public static final EnumArt Pool;
public static final EnumArt Courbet;
public static final EnumArt Sea;
public static final EnumArt Sunset;
public static final EnumArt Creebet;
public static final EnumArt Wanderer;
public static final EnumArt Graham;
public static final EnumArt Match;
public static final EnumArt Bust;
public static final EnumArt Stage;
public static final EnumArt Void;
public static final EnumArt SkullAndRoses;
public static final EnumArt Fighters;
public static final EnumArt Pointer;
public static final EnumArt Pigscene;
public static final EnumArt BurningSkull;
public static final EnumArt Skeleton;
public static final EnumArt DonkeyKong;
*/
public static final int maxArtTitleLength = "SkullAndRoses".length();
public final String title;
public final int sizeX;
public final int sizeY;
public final int offsetX;
public final int offsetY;
private static final EnumArt F[]; /* synthetic field */
static
EnumOptions.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public boolean getEnumFloat()
{
return enumFloat;
}
public boolean getEnumBoolean()
{
return enumBoolean;
}
public int returnEnumOrdinal()
{
return ordinal();
}
public String getEnumString()
{
return enumString;
}
/*
public static final EnumOptions MUSIC;
public static final EnumOptions SOUND;
public static final EnumOptions INVERT_MOUSE;
public static final EnumOptions SENSITIVITY;
public static final EnumOptions RENDER_DISTANCE;
public static final EnumOptions VIEW_BOBBING;
public static final EnumOptions ANAGLYPH;
public static final EnumOptions ADVANCED_OPENGL;
public static final EnumOptions LIMIT_FRAMERATE;
public static final EnumOptions DIFFICULTY;
public static final EnumOptions GRAPHICS;
public static final EnumOptions AMBIENT_OCCLUSION;
public static final EnumOptions GUI_SCALE;
*/
private final boolean enumFloat;
private final boolean enumBoolean;
private final String enumString;
private static final EnumOptions q[]; /* synthetic field */
public static EnumArt valueOf(String s)
{
return (EnumArt)Enum.valueOf(net.minecraft.src.EnumArt.class, s);
}
*/
private EnumArt(String s, int i, String s1, int j, int k, int l, int i1)
{
// super(s, i);
title = s1;
sizeX = j;
sizeY = k;
offsetX = l;
offsetY = i1;
}
/*
public static final EnumArt Kebab;
public static final EnumArt Aztec;
public static final EnumArt Alban;
public static final EnumArt Aztec2;
public static final EnumArt Bomb;
public static final EnumArt Plant;
public static final EnumArt Wasteland;
public static final EnumArt Pool;
public static final EnumArt Courbet;
public static final EnumArt Sea;
public static final EnumArt Sunset;
public static final EnumArt Creebet;
public static final EnumArt Wanderer;
public static final EnumArt Graham;
public static final EnumArt Match;
public static final EnumArt Bust;
public static final EnumArt Stage;
public static final EnumArt Void;
public static final EnumArt SkullAndRoses;
public static final EnumArt Fighters;
public static final EnumArt Pointer;
public static final EnumArt Pigscene;
public static final EnumArt BurningSkull;
public static final EnumArt Skeleton;
public static final EnumArt DonkeyKong;
*/
public static final int maxArtTitleLength = "SkullAndRoses".length();
public final String title;
public final int sizeX;
public final int sizeY;
public final int offsetX;
public final int offsetY;
private static final EnumArt F[]; /* synthetic field */
static
EnumOptions.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public boolean getEnumFloat()
{
return enumFloat;
}
public boolean getEnumBoolean()
{
return enumBoolean;
}
public int returnEnumOrdinal()
{
return ordinal();
}
public String getEnumString()
{
return enumString;
}
/*
public static final EnumOptions MUSIC;
public static final EnumOptions SOUND;
public static final EnumOptions INVERT_MOUSE;
public static final EnumOptions SENSITIVITY;
public static final EnumOptions RENDER_DISTANCE;
public static final EnumOptions VIEW_BOBBING;
public static final EnumOptions ANAGLYPH;
public static final EnumOptions ADVANCED_OPENGL;
public static final EnumOptions LIMIT_FRAMERATE;
public static final EnumOptions DIFFICULTY;
public static final EnumOptions GRAPHICS;
public static final EnumOptions AMBIENT_OCCLUSION;
public static final EnumOptions GUI_SCALE;
*/
private final boolean enumFloat;
private final boolean enumBoolean;
private final String enumString;
private static final EnumOptions q[]; /* synthetic field */
static
um.. i wonder why... I mean only like 90% of your thing is commented out still by the /* */ and the last thing you have is static, I did not mean delete everything inside of the /* */ but delete the /* and the */'s themselves...
EnumArt.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
public enum EnumArt
{
Kebab("Kebab", 0, "Kebab", 16, 16, 0, 0),
Aztec("Aztec", 1, "Aztec", 16, 16, 16, 0),
Alban("Alban", 2, "Alban", 16, 16, 32, 0),
Aztec2("Aztec2", 3, "Aztec2", 16, 16, 48, 0),
Bomb("Bomb", 4, "Bomb", 16, 16, 64, 0),
Plant("Plant", 5, "Plant", 16, 16, 80, 0),
Wasteland("Wasteland", 6, "Wasteland", 16, 16, 96, 0),
Pool("Pool", 7, "Pool", 32, 16, 0, 32),
Courbet("Courbet", 8, "Courbet", 32, 16, 32, 32),
Sea("Sea", 9, "Sea", 32, 16, 64, 32),
Sunset("Sunset", 10, "Sunset", 32, 16, 96, 32),
Creebet("Creebet", 11, "Creebet", 32, 16, 128, 32),
Wanderer("Wanderer", 12, "Wanderer", 16, 32, 0, 64),
Graham("Graham", 13, "Graham", 16, 32, 16, 64),
Match("Match", 14, "Match", 32, 32, 0, 128),
Bust("Bust", 15, "Bust", 32, 32, 32, 128),
Stage("Stage", 16, "Stage", 32, 32, 64, 128),
Void("Void", 17, "Void", 32, 32, 96, 128),
SkullAndRoses("SkullAndRoses", 18, "SkullAndRoses", 32, 32, 128, 128),
Fighters("Fighters", 19, "Fighters", 64, 32, 0, 96),
Pointer("Pointer", 20, "Pointer", 64, 64, 0, 192),
Pigscene("Pigscene", 21, "Pigscene", 64, 64, 64, 192),
BurningSkull("BurningSkull", 22, "BurningSkull", 64, 64, 128, 192),
Skeleton("Skeleton", 23, "Skeleton", 64, 48, 192, 64),
DonkeyKong("DonkeyKong", 24, "DonkeyKong", 64, 48, 192, 112);
public static EnumArt[] values()
{
return (EnumArt[])F.clone();
}
public static EnumArt valueOf(String s)
{
return (EnumArt)Enum.valueOf(net.minecraft.src.EnumArt.class, s);
}
private EnumArt(String s, int i, String s1, int j, int k, int l, int i1)
{
title = s1;
sizeX = j;
sizeY = k;
offsetX = l;
offsetY = i1;
}
public static final EnumArt Kebab;
public static final EnumArt Aztec;
public static final EnumArt Alban;
public static final EnumArt Aztec2;
public static final EnumArt Bomb;
public static final EnumArt Plant;
public static final EnumArt Wasteland;
public static final EnumArt Pool;
public static final EnumArt Courbet;
public static final EnumArt Sea;
public static final EnumArt Sunset;
public static final EnumArt Creebet;
public static final EnumArt Wanderer;
public static final EnumArt Graham;
public static final EnumArt Match;
public static final EnumArt Bust;
public static final EnumArt Stage;
public static final EnumArt Void;
public static final EnumArt SkullAndRoses;
public static final EnumArt Fighters;
public static final EnumArt Pointer;
public static final EnumArt Pigscene;
public static final EnumArt BurningSkull;
public static final EnumArt Skeleton;
public static final EnumArt DonkeyKong;
public static final int maxArtTitleLength = "SkullAndRoses".length();
public final String title;
public final int sizeX;
public final int sizeY;
public final int offsetX;
public final int offsetY;
private static final EnumArt F[]; /* synthetic field */
static{
Kebab = new EnumArt("Kebab", 0, "Kebab", 16, 16, 0, 0);
Aztec = new EnumArt("Aztec", 1, "Aztec", 16, 16, 16, 0);
Alban = new EnumArt("Alban", 2, "Alban", 16, 16, 32, 0);
Aztec2 = new EnumArt("Aztec2", 3, "Aztec2", 16, 16, 48, 0);
Bomb = new EnumArt("Bomb", 4, "Bomb", 16, 16, 64, 0);
Plant = new EnumArt("Plant", 5, "Plant", 16, 16, 80, 0);
Wasteland = new EnumArt("Wasteland", 6, "Wasteland", 16, 16, 96, 0);
Pool = new EnumArt("Pool", 7, "Pool", 32, 16, 0, 32);
Courbet = new EnumArt("Courbet", 8, "Courbet", 32, 16, 32, 32);
Sea = new EnumArt("Sea", 9, "Sea", 32, 16, 64, 32);
Sunset = new EnumArt("Sunset", 10, "Sunset", 32, 16, 96, 32);
Creebet = new EnumArt("Creebet", 11, "Creebet", 32, 16, 128, 32);
Wanderer = new EnumArt("Wanderer", 12, "Wanderer", 16, 32, 0, 64);
Graham = new EnumArt("Graham", 13, "Graham", 16, 32, 16, 64);
Match = new EnumArt("Match", 14, "Match", 32, 32, 0, 128);
Bust = new EnumArt("Bust", 15, "Bust", 32, 32, 32, 128);
Stage = new EnumArt("Stage", 16, "Stage", 32, 32, 64, 128);
Void = new EnumArt("Void", 17, "Void", 32, 32, 96, 128);
SkullAndRoses = new EnumArt("SkullAndRoses", 18, "SkullAndRoses", 32, 32, 128, 128);
Fighters = new EnumArt("Fighters", 19, "Fighters", 64, 32, 0, 96);
Pointer = new EnumArt("Pointer", 20, "Pointer", 64, 64, 0, 192);
Pigscene = new EnumArt("Pigscene", 21, "Pigscene", 64, 64, 64, 192);
BurningSkull = new EnumArt("BurningSkull", 22, "BurningSkull", 64, 64, 128, 192);
Skeleton = new EnumArt("Skeleton", 23, "Skeleton", 64, 48, 192, 64);
DonkeyKong = new EnumArt("DonkeyKong", 24, "DonkeyKong", 64, 48, 192, 112);
F = (new EnumArt[] {
Kebab, Aztec, Alban, Aztec2, Bomb, Plant, Wasteland, Pool, Courbet, Sea,
Sunset, Creebet, Wanderer, Graham, Match, Bust, Stage, Void, SkullAndRoses, Fighters,
Pointer, Pigscene, BurningSkull, Skeleton, DonkeyKong
});
}
}
EnumOptions.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
public enum EnumOptions
{
MUSIC("MUSIC", 0, "options.music", true, false),
SOUND("SOUND", 1, "options.sound", true, false),
INVERT_MOUSE("INVERT_MOUSE", 2, "options.invertMouse", false, true),
SENSITIVITY("SENSITIVITY", 3, "options.sensitivity", true, false),
RENDER_DISTANCE("RENDER_DISTANCE", 4, "options.renderDistance", false, false),
VIEW_BOBBING("VIEW_BOBBING", 5, "options.viewBobbing", false, true),
ANAGLYPH("ANAGLYPH", 6, "options.anaglyph", false, true),
ADVANCED_OPENGL("ADVANCED_OPENGL", 7, "options.advancedOpengl", false, true),
FRAMERATE_LIMIT("FRAMERATE_LIMIT", 8, "options.framerateLimit", false, false),
DIFFICULTY("DIFFICULTY", 9, "options.difficulty", false, false),
GRAPHICS("GRAPHICS", 10, "options.graphics", false, false),
AMBIENT_OCCLUSION("AMBIENT_OCCLUSION", 11, "options.ao", false, true),
GUI_SCALE("GUI_SCALE", 12, "options.guiScale", false, false);
public static EnumOptions[] values()
{
return (EnumOptions[])q.clone();
}
public static EnumOptions valueOf(String s)
{
return (EnumOptions)Enum.valueOf(net.minecraft.src.EnumOptions.class, s);
}
public static EnumOptions getEnumOptions(int i)
{
EnumOptions aenumoptions[] = values();
int j = aenumoptions.length;
for(int k = 0; k < j; k++)
{
EnumOptions enumoptions = aenumoptions[k];
if(enumoptions.returnEnumOrdinal() == i)
{
return enumoptions;
}
}
return null;
}
private EnumOptions(String s, int i, String s1, boolean flag, boolean flag1)
{
enumString = s1;
enumFloat = flag;
enumBoolean = flag1;
}
public boolean getEnumFloat()
{
return enumFloat;
}
public boolean getEnumBoolean()
{
return enumBoolean;
}
public int returnEnumOrdinal()
{
return ordinal();
}
public String getEnumString()
{
return enumString;
}
public static final EnumOptions MUSIC;
public static final EnumOptions SOUND;
public static final EnumOptions INVERT_MOUSE;
public static final EnumOptions SENSITIVITY;
public static final EnumOptions RENDER_DISTANCE;
public static final EnumOptions VIEW_BOBBING;
public static final EnumOptions ANAGLYPH;
public static final EnumOptions ADVANCED_OPENGL;
public static final EnumOptions LIMIT_FRAMERATE;
public static final EnumOptions DIFFICULTY;
public static final EnumOptions GRAPHICS;
public static final EnumOptions AMBIENT_OCCLUSION;
public static final EnumOptions GUI_SCALE;
private final boolean enumFloat;
private final boolean enumBoolean;
private final String enumString;
private static final EnumOptions q[]; /* synthetic field */
static{
MUSIC = new EnumOptions("MUSIC", 0, "options.music", true, false);
SOUND = new EnumOptions("SOUND", 1, "options.sound", true, false);
INVERT_MOUSE = new EnumOptions("INVERT_MOUSE", 2, "options.invertMouse", false, true);
SENSITIVITY = new EnumOptions("SENSITIVITY", 3, "options.sensitivity", true, false);
RENDER_DISTANCE = new EnumOptions("RENDER_DISTANCE", 4, "options.renderDistance", false, false);
VIEW_BOBBING = new EnumOptions("VIEW_BOBBING", 5, "options.viewBobbing", false, true);
ANAGLYPH = new EnumOptions("ANAGLYPH", 6, "options.anaglyph", false, true);
ADVANCED_OPENGL = new EnumOptions("ADVANCED_OPENGL", 7, "options.advancedOpengl", false, true);
LIMIT_FRAMERATE = new EnumOptions("FRAMERATE_LIMIT", 8, "options.framerateLimit", false, false);
DIFFICULTY = new EnumOptions("DIFFICULTY", 9, "options.difficulty", false, false);
GRAPHICS = new EnumOptions("GRAPHICS", 10, "options.graphics", false, false);
AMBIENT_OCCLUSION = new EnumOptions("AMBIENT_OCCLUSION", 11, "options.ao", false, true);
GUI_SCALE = new EnumOptions("GUI_SCALE", 12, "options.guiScale", false, false);
q = (new EnumOptions[] {
MUSIC, SOUND, INVERT_MOUSE, SENSITIVITY, RENDER_DISTANCE, VIEW_BOBBING, ANAGLYPH, ADVANCED_OPENGL, LIMIT_FRAMERATE, DIFFICULTY,
GRAPHICS, AMBIENT_OCCLUSION, GUI_SCALE
});
}
}
You have an error in your code somewhere. Go over the tutorial again.
You might also have Eclipse set up wrong.
I dont believe it is an error in my code, i erased everything i put in and it still wouldn't run the client off eclipse.
Should i try to uninstall Eclipse and try again?
@KFCFootlong no, that will not help, it's the fact that your computer is not recconizing the OpenGL libraries and the sound libraries, go into your workspace and take the edited files and copy them (not move, copy) into your MCP/src/minecraft/net/minecraft/src folder and replace the old ones (back them up first however) and then run the recompile.bat and then test the client with start_client.bat
@DreadKyller
I copied and pasted the two codes that you gave me, and now I get 100 errors D:
Edit:
Ok, I've gotten rid of the {}. Now I only have 40 errors, but that's a start :biggrin.gif:
The only problem is the way enums decompile. When they are decompiled they are turned into a class, instead of an enum. The only reason this doesn't happen in MCP is because of the script they wrote as part of the decompile script to fix the problem with the enum. That's why there are parts that are comments where you don't think there should be, and why they are so buggy when a new version of MCP is released.
And for anyone who doesn't believe me, try to decompile the game outside of MCP with a standard decompiler.
The only problem is the way enums decompile. When they are decompiled they are turned into a class, instead of an enum. The only reason this doesn't happen in MCP is because of the script they wrote as part of the decompile script to fix the problem with the enum. That's why there are parts that are comments where you don't think there should be, and why they are so buggy when a new version of MCP is released.
And for anyone who doesn't believe me, try to decompile the game outside of MCP with a standard decompiler.
@KFCFootlong no, that will not help, it's the fact that your computer is not recconizing the OpenGL libraries and the sound libraries, go into your workspace and take the edited files and copy them (not move, copy) into your MCP/src/minecraft/net/minecraft/src folder and replace the old ones (back them up first however) and then run the recompile.bat and then test the client with start_client.bat
Thanks so much! I finally got it to work and your advice was more then helpful!!!!
Oo about the python, I explained that it was a scripting language, anyways, I used to program in Python, my first language, I make games with it and a few 3D Engines. It's what got me into scripting. Once you learn python you know 60% of java, once you know C++ you know 70% together you know the syntax(C++) and the object orientation(python) it is easy to pick up almost any language.
And what might be these ideas we hear about, if they are awesome I hope to see them sometime, sounds like you have an interesting idea even though I don't know what it is.
When I follow the steps at Block.java, everything goes well, however, when you say to hit "Play" in eclipse (witch i assume is the same as run at the top of the bar?) it gives an error with other files not included in Block.java. Is this a problem i need to fix or?
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at net.minecraft.client.Minecraft.main(Minecraft.java:1583)
at Start.main(Start.java:26)
You have an error in your code somewhere. Go over the tutorial again.
You might also have Eclipse set up wrong.
What it says:
src\minecraft\net\minecraft\src\EnumArt.java:124: reached end of file while parsing
*/
^
src\minecraft\net\minecraft\src\EnumOptions.java:118: reached end of file while parsing
*/
^
Codes
EnumArt.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
public enum EnumArt
{
Kebab("Kebab", 0, "Kebab", 16, 16, 0, 0),
Aztec("Aztec", 1, "Aztec", 16, 16, 16, 0),
Alban("Alban", 2, "Alban", 16, 16, 32, 0),
Aztec2("Aztec2", 3, "Aztec2", 16, 16, 48, 0),
Bomb("Bomb", 4, "Bomb", 16, 16, 64, 0),
Plant("Plant", 5, "Plant", 16, 16, 80, 0),
Wasteland("Wasteland", 6, "Wasteland", 16, 16, 96, 0),
Pool("Pool", 7, "Pool", 32, 16, 0, 32),
Courbet("Courbet", 8, "Courbet", 32, 16, 32, 32),
Sea("Sea", 9, "Sea", 32, 16, 64, 32),
Sunset("Sunset", 10, "Sunset", 32, 16, 96, 32),
Creebet("Creebet", 11, "Creebet", 32, 16, 128, 32),
Wanderer("Wanderer", 12, "Wanderer", 16, 32, 0, 64),
Graham("Graham", 13, "Graham", 16, 32, 16, 64),
Match("Match", 14, "Match", 32, 32, 0, 128),
Bust("Bust", 15, "Bust", 32, 32, 32, 128),
Stage("Stage", 16, "Stage", 32, 32, 64, 128),
Void("Void", 17, "Void", 32, 32, 96, 128),
SkullAndRoses("SkullAndRoses", 18, "SkullAndRoses", 32, 32, 128, 128),
Fighters("Fighters", 19, "Fighters", 64, 32, 0, 96),
Pointer("Pointer", 20, "Pointer", 64, 64, 0, 192),
Pigscene("Pigscene", 21, "Pigscene", 64, 64, 64, 192),
BurningSkull("BurningSkull", 22, "BurningSkull", 64, 64, 128, 192),
Skeleton("Skeleton", 23, "Skeleton", 64, 48, 192, 64),
DonkeyKong("DonkeyKong", 24, "DonkeyKong", 64, 48, 192, 112);
/*
public static EnumArt[] values()
{
return (EnumArt[])F.clone();
}
public static EnumArt valueOf(String s)
{
return (EnumArt)Enum.valueOf(net.minecraft.src.EnumArt.class, s);
}
*/
private EnumArt(String s, int i, String s1, int j, int k, int l, int i1)
{
// super(s, i);
title = s1;
sizeX = j;
sizeY = k;
offsetX = l;
offsetY = i1;
}
/*
public static final EnumArt Kebab;
public static final EnumArt Aztec;
public static final EnumArt Alban;
public static final EnumArt Aztec2;
public static final EnumArt Bomb;
public static final EnumArt Plant;
public static final EnumArt Wasteland;
public static final EnumArt Pool;
public static final EnumArt Courbet;
public static final EnumArt Sea;
public static final EnumArt Sunset;
public static final EnumArt Creebet;
public static final EnumArt Wanderer;
public static final EnumArt Graham;
public static final EnumArt Match;
public static final EnumArt Bust;
public static final EnumArt Stage;
public static final EnumArt Void;
public static final EnumArt SkullAndRoses;
public static final EnumArt Fighters;
public static final EnumArt Pointer;
public static final EnumArt Pigscene;
public static final EnumArt BurningSkull;
public static final EnumArt Skeleton;
public static final EnumArt DonkeyKong;
*/
public static final int maxArtTitleLength = "SkullAndRoses".length();
public final String title;
public final int sizeX;
public final int sizeY;
public final int offsetX;
public final int offsetY;
private static final EnumArt F[]; /* synthetic field */
static
/*
Kebab = new EnumArt("Kebab", 0, "Kebab", 16, 16, 0, 0);
Aztec = new EnumArt("Aztec", 1, "Aztec", 16, 16, 16, 0);
Alban = new EnumArt("Alban", 2, "Alban", 16, 16, 32, 0);
Aztec2 = new EnumArt("Aztec2", 3, "Aztec2", 16, 16, 48, 0);
Bomb = new EnumArt("Bomb", 4, "Bomb", 16, 16, 64, 0);
Plant = new EnumArt("Plant", 5, "Plant", 16, 16, 80, 0);
Wasteland = new EnumArt("Wasteland", 6, "Wasteland", 16, 16, 96, 0);
Pool = new EnumArt("Pool", 7, "Pool", 32, 16, 0, 32);
Courbet = new EnumArt("Courbet", 8, "Courbet", 32, 16, 32, 32);
Sea = new EnumArt("Sea", 9, "Sea", 32, 16, 64, 32);
Sunset = new EnumArt("Sunset", 10, "Sunset", 32, 16, 96, 32);
Creebet = new EnumArt("Creebet", 11, "Creebet", 32, 16, 128, 32);
Wanderer = new EnumArt("Wanderer", 12, "Wanderer", 16, 32, 0, 64);
Graham = new EnumArt("Graham", 13, "Graham", 16, 32, 16, 64);
Match = new EnumArt("Match", 14, "Match", 32, 32, 0, 128);
Bust = new EnumArt("Bust", 15, "Bust", 32, 32, 32, 128);
Stage = new EnumArt("Stage", 16, "Stage", 32, 32, 64, 128);
Void = new EnumArt("Void", 17, "Void", 32, 32, 96, 128);
SkullAndRoses = new EnumArt("SkullAndRoses", 18, "SkullAndRoses", 32, 32, 128, 128);
Fighters = new EnumArt("Fighters", 19, "Fighters", 64, 32, 0, 96);
Pointer = new EnumArt("Pointer", 20, "Pointer", 64, 64, 0, 192);
Pigscene = new EnumArt("Pigscene", 21, "Pigscene", 64, 64, 64, 192);
BurningSkull = new EnumArt("BurningSkull", 22, "BurningSkull", 64, 64, 128, 192);
Skeleton = new EnumArt("Skeleton", 23, "Skeleton", 64, 48, 192, 64);
DonkeyKong = new EnumArt("DonkeyKong", 24, "DonkeyKong", 64, 48, 192, 112);
F = (new EnumArt[] {
Kebab, Aztec, Alban, Aztec2, Bomb, Plant, Wasteland, Pool, Courbet, Sea,
Sunset, Creebet, Wanderer, Graham, Match, Bust, Stage, Void, SkullAndRoses, Fighters,
Pointer, Pigscene, BurningSkull, Skeleton, DonkeyKong
});
}
}
*/
EnumOptions.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
public enum EnumOptions
{
MUSIC("MUSIC", 0, "options.music", true, false),
SOUND("SOUND", 1, "options.sound", true, false),
INVERT_MOUSE("INVERT_MOUSE", 2, "options.invertMouse", false, true),
SENSITIVITY("SENSITIVITY", 3, "options.sensitivity", true, false),
RENDER_DISTANCE("RENDER_DISTANCE", 4, "options.renderDistance", false, false),
VIEW_BOBBING("VIEW_BOBBING", 5, "options.viewBobbing", false, true),
ANAGLYPH("ANAGLYPH", 6, "options.anaglyph", false, true),
ADVANCED_OPENGL("ADVANCED_OPENGL", 7, "options.advancedOpengl", false, true),
FRAMERATE_LIMIT("FRAMERATE_LIMIT", 8, "options.framerateLimit", false, false),
DIFFICULTY("DIFFICULTY", 9, "options.difficulty", false, false),
GRAPHICS("GRAPHICS", 10, "options.graphics", false, false),
AMBIENT_OCCLUSION("AMBIENT_OCCLUSION", 11, "options.ao", false, true),
GUI_SCALE("GUI_SCALE", 12, "options.guiScale", false, false);
/*
public static EnumOptions[] values()
{
return (EnumOptions[])q.clone();
}
public static EnumOptions valueOf(String s)
{
return (EnumOptions)Enum.valueOf(net.minecraft.src.EnumOptions.class, s);
}
*/
public static EnumOptions getEnumOptions(int i)
{
EnumOptions aenumoptions[] = values();
int j = aenumoptions.length;
for(int k = 0; k < j; k++)
{
EnumOptions enumoptions = aenumoptions[k];
if(enumoptions.returnEnumOrdinal() == i)
{
return enumoptions;
}
}
return null;
}
private EnumOptions(String s, int i, String s1, boolean flag, boolean flag1)
{
// super(s, i);
enumString = s1;
enumFloat = flag;
enumBoolean = flag1;
}
public boolean getEnumFloat()
{
return enumFloat;
}
public boolean getEnumBoolean()
{
return enumBoolean;
}
public int returnEnumOrdinal()
{
return ordinal();
}
public String getEnumString()
{
return enumString;
}
/*
public static final EnumOptions MUSIC;
public static final EnumOptions SOUND;
public static final EnumOptions INVERT_MOUSE;
public static final EnumOptions SENSITIVITY;
public static final EnumOptions RENDER_DISTANCE;
public static final EnumOptions VIEW_BOBBING;
public static final EnumOptions ANAGLYPH;
public static final EnumOptions ADVANCED_OPENGL;
public static final EnumOptions LIMIT_FRAMERATE;
public static final EnumOptions DIFFICULTY;
public static final EnumOptions GRAPHICS;
public static final EnumOptions AMBIENT_OCCLUSION;
public static final EnumOptions GUI_SCALE;
*/
private final boolean enumFloat;
private final boolean enumBoolean;
private final String enumString;
private static final EnumOptions q[]; /* synthetic field */
static
/*
MUSIC = new EnumOptions("MUSIC", 0, "options.music", true, false);
SOUND = new EnumOptions("SOUND", 1, "options.sound", true, false);
INVERT_MOUSE = new EnumOptions("INVERT_MOUSE", 2, "options.invertMouse", false, true);
SENSITIVITY = new EnumOptions("SENSITIVITY", 3, "options.sensitivity", true, false);
RENDER_DISTANCE = new EnumOptions("RENDER_DISTANCE", 4, "options.renderDistance", false, false);
VIEW_BOBBING = new EnumOptions("VIEW_BOBBING", 5, "options.viewBobbing", false, true);
ANAGLYPH = new EnumOptions("ANAGLYPH", 6, "options.anaglyph", false, true);
ADVANCED_OPENGL = new EnumOptions("ADVANCED_OPENGL", 7, "options.advancedOpengl", false, true);
LIMIT_FRAMERATE = new EnumOptions("FRAMERATE_LIMIT", 8, "options.framerateLimit", false, false);
DIFFICULTY = new EnumOptions("DIFFICULTY", 9, "options.difficulty", false, false);
GRAPHICS = new EnumOptions("GRAPHICS", 10, "options.graphics", false, false);
AMBIENT_OCCLUSION = new EnumOptions("AMBIENT_OCCLUSION", 11, "options.ao", false, true);
GUI_SCALE = new EnumOptions("GUI_SCALE", 12, "options.guiScale", false, false);
q = (new EnumOptions[] {
MUSIC, SOUND, INVERT_MOUSE, SENSITIVITY, RENDER_DISTANCE, VIEW_BOBBING, ANAGLYPH, ADVANCED_OPENGL, LIMIT_FRAMERATE, DIFFICULTY,
GRAPHICS, AMBIENT_OCCLUSION, GUI_SCALE
});
}
}
*/
Thanks
I did what you said to do, but it stills gives me errors.
src\minecraft\net\minecraft\src\EnumArt.java:90: reached end of file while parsing
static
^
src\minecraft\net\minecraft\src\EnumOptions.java:97: reached end of file while parsing
static
^
Codes
EnumArt.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
public enum EnumArt
{
Kebab("Kebab", 0, "Kebab", 16, 16, 0, 0),
Aztec("Aztec", 1, "Aztec", 16, 16, 16, 0),
Alban("Alban", 2, "Alban", 16, 16, 32, 0),
Aztec2("Aztec2", 3, "Aztec2", 16, 16, 48, 0),
Bomb("Bomb", 4, "Bomb", 16, 16, 64, 0),
Plant("Plant", 5, "Plant", 16, 16, 80, 0),
Wasteland("Wasteland", 6, "Wasteland", 16, 16, 96, 0),
Pool("Pool", 7, "Pool", 32, 16, 0, 32),
Courbet("Courbet", 8, "Courbet", 32, 16, 32, 32),
Sea("Sea", 9, "Sea", 32, 16, 64, 32),
Sunset("Sunset", 10, "Sunset", 32, 16, 96, 32),
Creebet("Creebet", 11, "Creebet", 32, 16, 128, 32),
Wanderer("Wanderer", 12, "Wanderer", 16, 32, 0, 64),
Graham("Graham", 13, "Graham", 16, 32, 16, 64),
Match("Match", 14, "Match", 32, 32, 0, 128),
Bust("Bust", 15, "Bust", 32, 32, 32, 128),
Stage("Stage", 16, "Stage", 32, 32, 64, 128),
Void("Void", 17, "Void", 32, 32, 96, 128),
SkullAndRoses("SkullAndRoses", 18, "SkullAndRoses", 32, 32, 128, 128),
Fighters("Fighters", 19, "Fighters", 64, 32, 0, 96),
Pointer("Pointer", 20, "Pointer", 64, 64, 0, 192),
Pigscene("Pigscene", 21, "Pigscene", 64, 64, 64, 192),
BurningSkull("BurningSkull", 22, "BurningSkull", 64, 64, 128, 192),
Skeleton("Skeleton", 23, "Skeleton", 64, 48, 192, 64),
DonkeyKong("DonkeyKong", 24, "DonkeyKong", 64, 48, 192, 112);
/*
public static EnumArt[] values()
{
return (EnumArt[])F.clone();
}
public static EnumArt valueOf(String s)
{
return (EnumArt)Enum.valueOf(net.minecraft.src.EnumArt.class, s);
}
*/
private EnumArt(String s, int i, String s1, int j, int k, int l, int i1)
{
// super(s, i);
title = s1;
sizeX = j;
sizeY = k;
offsetX = l;
offsetY = i1;
}
/*
public static final EnumArt Kebab;
public static final EnumArt Aztec;
public static final EnumArt Alban;
public static final EnumArt Aztec2;
public static final EnumArt Bomb;
public static final EnumArt Plant;
public static final EnumArt Wasteland;
public static final EnumArt Pool;
public static final EnumArt Courbet;
public static final EnumArt Sea;
public static final EnumArt Sunset;
public static final EnumArt Creebet;
public static final EnumArt Wanderer;
public static final EnumArt Graham;
public static final EnumArt Match;
public static final EnumArt Bust;
public static final EnumArt Stage;
public static final EnumArt Void;
public static final EnumArt SkullAndRoses;
public static final EnumArt Fighters;
public static final EnumArt Pointer;
public static final EnumArt Pigscene;
public static final EnumArt BurningSkull;
public static final EnumArt Skeleton;
public static final EnumArt DonkeyKong;
*/
public static final int maxArtTitleLength = "SkullAndRoses".length();
public final String title;
public final int sizeX;
public final int sizeY;
public final int offsetX;
public final int offsetY;
private static final EnumArt F[]; /* synthetic field */
static
EnumOptions.java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
public enum EnumOptions
{
MUSIC("MUSIC", 0, "options.music", true, false),
SOUND("SOUND", 1, "options.sound", true, false),
INVERT_MOUSE("INVERT_MOUSE", 2, "options.invertMouse", false, true),
SENSITIVITY("SENSITIVITY", 3, "options.sensitivity", true, false),
RENDER_DISTANCE("RENDER_DISTANCE", 4, "options.renderDistance", false, false),
VIEW_BOBBING("VIEW_BOBBING", 5, "options.viewBobbing", false, true),
ANAGLYPH("ANAGLYPH", 6, "options.anaglyph", false, true),
ADVANCED_OPENGL("ADVANCED_OPENGL", 7, "options.advancedOpengl", false, true),
FRAMERATE_LIMIT("FRAMERATE_LIMIT", 8, "options.framerateLimit", false, false),
DIFFICULTY("DIFFICULTY", 9, "options.difficulty", false, false),
GRAPHICS("GRAPHICS", 10, "options.graphics", false, false),
AMBIENT_OCCLUSION("AMBIENT_OCCLUSION", 11, "options.ao", false, true),
GUI_SCALE("GUI_SCALE", 12, "options.guiScale", false, false);
/*
public static EnumOptions[] values()
{
return (EnumOptions[])q.clone();
}
public static EnumOptions valueOf(String s)
{
return (EnumOptions)Enum.valueOf(net.minecraft.src.EnumOptions.class, s);
}
*/
public static EnumOptions getEnumOptions(int i)
{
EnumOptions aenumoptions[] = values();
int j = aenumoptions.length;
for(int k = 0; k < j; k++)
{
EnumOptions enumoptions = aenumoptions[k];
if(enumoptions.returnEnumOrdinal() == i)
{
return enumoptions;
}
}
return null;
}
private EnumOptions(String s, int i, String s1, boolean flag, boolean flag1)
{
// super(s, i);
enumString = s1;
enumFloat = flag;
enumBoolean = flag1;
}
public boolean getEnumFloat()
{
return enumFloat;
}
public boolean getEnumBoolean()
{
return enumBoolean;
}
public int returnEnumOrdinal()
{
return ordinal();
}
public String getEnumString()
{
return enumString;
}
/*
public static final EnumOptions MUSIC;
public static final EnumOptions SOUND;
public static final EnumOptions INVERT_MOUSE;
public static final EnumOptions SENSITIVITY;
public static final EnumOptions RENDER_DISTANCE;
public static final EnumOptions VIEW_BOBBING;
public static final EnumOptions ANAGLYPH;
public static final EnumOptions ADVANCED_OPENGL;
public static final EnumOptions LIMIT_FRAMERATE;
public static final EnumOptions DIFFICULTY;
public static final EnumOptions GRAPHICS;
public static final EnumOptions AMBIENT_OCCLUSION;
public static final EnumOptions GUI_SCALE;
*/
private final boolean enumFloat;
private final boolean enumBoolean;
private final String enumString;
private static final EnumOptions q[]; /* synthetic field */
static
um.. i wonder why... I mean only like 90% of your thing is commented out still by the /* */ and the last thing you have is static, I did not mean delete everything inside of the /* */ but delete the /* and the */'s themselves...
EnumArt.java
EnumOptions.java
those should be fixed
use an archiving program (like 7zip or WinRar) to open minecraft.jar, it's right in there with all the strange class names. Items is under GUI
I dont believe it is an error in my code, i erased everything i put in and it still wouldn't run the client off eclipse.
Should i try to uninstall Eclipse and try again?
I copied and pasted the two codes that you gave me, and now I get 100 errors D:
Edit:
Ok, I've gotten rid of the {}. Now I only have 40 errors, but that's a start :biggrin.gif:
The only problem is the way enums decompile. When they are decompiled they are turned into a class, instead of an enum. The only reason this doesn't happen in MCP is because of the script they wrote as part of the decompile script to fix the problem with the enum. That's why there are parts that are comments where you don't think there should be, and why they are so buggy when a new version of MCP is released.
And for anyone who doesn't believe me, try to decompile the game outside of MCP with a standard decompiler.
So, how do you fix this?
So I have to recompile it then edit it?
Wait for MCP to be less buggy. Or, try to figure out what the enum does and fix it yourself.
Thanks so much! I finally got it to work and your advice was more then helpful!!!!