*** Minecraft Coder Pack Version 2.12 ***
MCP 2.12 running in F:\CoderPack
Compiling Minecraft
sources\minecraft\net\minecraft\src\Block.java:767: cannot find symbol
symbol : class BlockSuperBlock
location: class net.minecraft.src.Block
SuperBlock = (new BlockSuperBlock(100, 32)).setHardness(0.5F).se
tLightValue(1.0F).setStepSound(soundGravelFootstep).setBlockName("SuperBlock");
^
1 error
Compiling Minecraft Server
=== MCP 2.12 recompile script finished ===
Press any key to continue . . .
-----------------------------------------------------------------------------------------------------------------------------
Can some1 please help me out here, i have no idea how to fix this error!
Btw, for you!!
Tyvm for the diamonds. Also, First thing: Did you name it SuperBlock, with the exact same caps whereever else you saved it? Do you have the newest version of MCP, with 1.5 files in the "jars" folder? If not, I suggest you just copy and paste my code over yours(I put that up didn't I?). It could be some lame error... So yeah, there you go, can't really help more than that without more info.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
*** Minecraft Coder Pack Version 2.12 ***
MCP 2.12 running in C:\Documents and Settings\*********\My Documents\*********\Minecraft Related\Minecraft Modding
Compiling Minecraft
sources\minecraft\net\minecraft\src\StatsSyncher.java:68: unreported exception j
ava.io.IOException; must be caught or declared to be thrown
PrintWriter printwriter = new PrintWriter(new FileWriter(file, false));
^
1 error
Compiling Minecraft Server
=== MCP 2.12 recompile script finished ===
Press any key to continue . . .
Okay... what did I do wrong? I just used derecompile.bat...
Help!
I run recompile.bat after everything and it says this:
"Compiling Minecraft
sources/minecraft/net/minecraft/src/Block.java:646: ';' expected
public static final Block Super Block;
^
sources/minecraft/net/minecraft/src/Block.java:646: <identifier> expected
public static final Block Super Block;
^
"Compiling Minecraft
sources/minecraft/net/minecraft/src/Block.java:646: ';' expected
public static final Block Super Block;
^
sources/minecraft/net/minecraft/src/Block.java:646: <identifier> expected
public static final Block Super Block;
^
I also had this error,
Change ' public static final Block Super Block; ' to
public static final Block superblock;
not sure why, but it seem to not like it when you use capital letters and spaces in certain places :/
I've got this one :tongue.gif: In programming, most languages (if not all) are case sensitive "superblock" is a variable and you must ALWAYS have the exact same spelling as the variable or it will never find it (or be mistaken for a variable that is capitolized even though a variable never should be) :tongue.gif: Its like bill and Bill, one is a bill as in money and the other is someones name. For these reasons variables in programming are often spelt in camel case (helloGoodbye) or seperated by underscores (hello_goodbye). On that note in most languages a final variable (one that never changes from it's assigned value or rarly) are normally wrote in caps so that other programmers can tell the difference in their code (neater code). I don't think notch however did capatalize his final variables XD Was that helpful?
"Compiling Minecraft
sources/minecraft/net/minecraft/src/Block.java:646: ';' expected
public static final Block Super Block;
^
sources/minecraft/net/minecraft/src/Block.java:646: <identifier> expected
public static final Block Super Block;
^
I also had this error,
Change ' public static final Block Super Block; ' to
public static final Block superblock;
not sure why, but it seem to not like it when you use capital letters and spaces in certain places :/
In java AND c++ coding (I'd assume C, and probably every other launguage does the same thing), when you want to end a line, or command, you use a ;, you use it after most lines. However, things that have {} or () tend to not have them. For example:
if (x>1){
do something;
}
See, you don't want to "end" the command of if, so you don't do if(x>2); And the brackets just kinda replace the ; in showing where it ends(and the code it is effecting starts)
You can actually do this:
Can do this:
if (x>1)
do something;
But you couldn't do this:
if (x>1)
do something;
do something else;
The else thing wouldn't happen.
And in C++(idk about java)
you could do this:
cout<<"This text gets said"
"And so does this text"
"And even this text";
"However this text is not said, and you get an error, because this is after the ; and it doesn't" . "know what to do with these lines..."
So yeah...
Also, dude with the chest pict, it doesn't mind the spaces and caps, it just wants it to always be the same. LIke winkleson said.
As for you siereien, your block isn't modloader compatible, so i'm going to assume you have a mod that it wasn't compatible with.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
I don't even know what python is... Could u give me the entire error?
To do so, right click, hit select all, then push enter. Then ctrl v (paste) the error here.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Yeah I know, there's been an update. It's startgame.bat now. And reobf.bat is now reobfuscate.bat, and final out isn't there anymore. I'll update the tutorial soon. Frankly I don't even know how obfuscation works with MCP for sure now though.
And person who can't see ingame name, you need to edit that lang file, I mentioned it in the tutorial. You skipped that step.
Quote from seanf1 »
When I run recompile.bat, I get this
2011-05-03 20:34 - commands.recompile - ERROR - == ERRORS FOUND ==
2011-05-03 20:34 - commands.recompile - ERROR -
2011-05-03 20:34 - commands.recompile - ERROR - javac: invalid flag: src/minecraft\net\minecraft\src\BlockExample.Java
2011-05-03 20:34 - commands.recompile - ERROR - Usage: javac <options> <source files>
2011-05-03 20:34 - commands.recompile - ERROR - use -help for a list of possible options
2011-05-03 20:34 - commands.recompile - ERROR - ==================
but i dont know how to find or use ''-help''
Sound's like you either didn't set up JDK right, or you have the new JDK, and the old MCP, or the old JDK, and the new MCP (Isn't there a new JDK, or am I wrong?)
And to find out how to damage the person look into the scripts of things that do damage the person. Lava, for instance. Or mobs, or arrows, but i'd go with lava. Since it's a block, and it hurts. If u need to, compare lava too water, and see if you can find the method that hurts the player in lava, since water doesn't have that that could help clue what script controls the hurting.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
MCP\temp\bin\minecraft, I think that is where u edit the PNG with the newest version. I think that should be the same with the lang file. Is that where u changed it?
And if that doesn't work, it's just becasue it's the wrong folder, and modloader isn't implementing it. Just include that edited lang file in your normal minecraft if you want to add your mod too your personal minecraft, otherwise, you'll justhave to wait to make it work in MCP, until I update teh tutorial.
Also, startclient is it, sorry.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Tutorial has been updated to match the newest version of MCP. If I missed something please do tell me
EDIT: MODLOADER TUTORIAL FINISHED
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Good question. that is actually the next tutorial i'm gonna write(or part of it at least). For now, just click the "suggested tutorials" link on my table of contents, and hit the link to simo's world gen tutorial. That'll help you out, but u will have to change a few things around.
Hey the other day I found a mod someone made, and they actually put my name in the credits for teaching them how to mod. I loved that(not just my name in the credits, but seeing the results of my tutorial). But the point is, if you make a mod, and u learned from my tutorial, please tell me, so I can check it out, and I'll add a new section to this forum that links to all the mod pages made by people who took my tutorial.
Rollback Post to RevisionRollBack
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Making a video game mod for minecraft. Going great. The idea? blocks when clicked open up a minigame that rewards you with ores and such based on your ingame score. Almost finished with beta version, which features a very basic pong game.
Tyvm for the diamonds. Also, First thing: Did you name it SuperBlock, with the exact same caps whereever else you saved it? Do you have the newest version of MCP, with 1.5 files in the "jars" folder? If not, I suggest you just copy and paste my code over yours(I put that up didn't I?). It could be some lame error... So yeah, there you go, can't really help more than that without more info.
Okay... what did I do wrong? I just used
derecompile.bat...MCP 2.12 running in C:\MCP
Compiling Minecraft
sources\minecraft\net\minecraft\src\Block.java:646: ';' expected
public static final Block SuperDirt
^
sources\minecraft\net\minecraft\src\Block.java:771: ';' expected
SuperDirt = (new BlockSuperDirt(31)).setHardness(2.5f).setLightO
pacity(3).setLightValue(2.5f).setStepSound(soundGravelFootstep).setBlockName("Su
perBlock")
^
2 errors
Compiling Minecraft Server
help plz for u
I run recompile.bat after everything and it says this:
"Compiling Minecraft
sources/minecraft/net/minecraft/src/Block.java:646: ';' expected
public static final Block Super Block;
^
sources/minecraft/net/minecraft/src/Block.java:646: <identifier> expected
public static final Block Super Block;
^
2 errors"
Oh btw, great tutorial
10/10
I've got this one :tongue.gif: In programming, most languages (if not all) are case sensitive "superblock" is a variable and you must ALWAYS have the exact same spelling as the variable or it will never find it (or be mistaken for a variable that is capitolized even though a variable never should be) :tongue.gif: Its like bill and Bill, one is a bill as in money and the other is someones name. For these reasons variables in programming are often spelt in camel case (helloGoodbye) or seperated by underscores (hello_goodbye). On that note in most languages a final variable (one that never changes from it's assigned value or rarly) are normally wrote in caps so that other programmers can tell the difference in their code (neater code). I don't think notch however did capatalize his final variables XD Was that helpful?
In java AND c++ coding (I'd assume C, and probably every other launguage does the same thing), when you want to end a line, or command, you use a ;, you use it after most lines. However, things that have {} or () tend to not have them. For example:
See, you don't want to "end" the command of if, so you don't do if(x>2); And the brackets just kinda replace the ; in showing where it ends(and the code it is effecting starts)
You can actually do this:
So yeah...
Also, dude with the chest pict, it doesn't mind the spaces and caps, it just wants it to always be the same. LIke winkleson said.
As for you siereien, your block isn't modloader compatible, so i'm going to assume you have a mod that it wasn't compatible with.
To do so, right click, hit select all, then push enter. Then ctrl v (paste) the error here.
just one more think how would i make so if someone were to step on my block it would hurt them?
And person who can't see ingame name, you need to edit that lang file, I mentioned it in the tutorial. You skipped that step.
Sound's like you either didn't set up JDK right, or you have the new JDK, and the old MCP, or the old JDK, and the new MCP (Isn't there a new JDK, or am I wrong?)
And to find out how to damage the person look into the scripts of things that do damage the person. Lava, for instance. Or mobs, or arrows, but i'd go with lava. Since it's a block, and it hurts. If u need to, compare lava too water, and see if you can find the method that hurts the player in lava, since water doesn't have that that could help clue what script controls the hurting.
also when i do start it it doesnt work
And if that doesn't work, it's just becasue it's the wrong folder, and modloader isn't implementing it. Just include that edited lang file in your normal minecraft if you want to add your mod too your personal minecraft, otherwise, you'll justhave to wait to make it work in MCP, until I update teh tutorial.
Also, startclient is it, sorry.
EDIT: MODLOADER TUTORIAL FINISHED
Hey the other day I found a mod someone made, and they actually put my name in the credits for teaching them how to mod. I loved that(not just my name in the credits, but seeing the results of my tutorial). But the point is, if you make a mod, and u learned from my tutorial, please tell me, so I can check it out, and I'll add a new section to this forum that links to all the mod pages made by people who took my tutorial.
Anthrocraft http://www.minecraft...f=1021&t=231356
Green Screenhttp://www.minecraft...f=1021&t=236906
Minecraft Mojang Fix http://www.minecraft...f=1032&t=26687