[Tutorial] Creating a Basic Hacked Client

Posts 1630 of 46 · Page 2 of 4
Quote Originally Posted by TheR4pt0r View Post
package net.minecraft.src;

public class var
{
public static booolean menu

}
This is my problem..i get 3 errors.. is syntax wrong? it said var should be defined as own file so i did "var" and it was correct...should i keep it this way?

---------- Post added at 05:44 PM ---------- Previous post was at 05:43 PM ----------

Asking is the best way learning.
Asking is certainly a good way to learn and question what's around yourself.

Anyways this is what it should look like:
Code:
package net.minecraft.src;

public class var 
{
      public static boolean menu = false;
}
The problem:
There are 3 o's in your boolean, there should be 2.
There is no ; after "public static booolean menu", there should be.

Sometimes java gets confused on the numbers of errors. There's only two there.

Thats the errors i get
Quote Originally Posted by TheR4pt0r View Post

Thats the errors i get
Upload the image to imgur and post it inside a [IMG] link instead, that way it doesn't have to be approved.
Right now, I can't open it :P
Quote Originally Posted by TheR4pt0r View Post

Thats the errors i get
That code needs to an actual separate file, not just inside the guiInGame.
Quote Originally Posted by TheR4pt0r View Post
package net.minecraft.src;

public class var
{
public static booolean menu

}
This is my problem..i get 3 errors.. is syntax wrong? it said var should be defined as own file so i did "var" and it was correct...should i keep it this way?

---------- Post added at 05:44 PM ---------- Previous post was at 05:43 PM ----------

Asking is the best way learning.
You never created your modbase that is in a seperate package that only edits about 4 lines in the minecraft src for calling methods and hooking in your package.
Nice job!
(Ignore this - I failed)
Fail.PNG89 KB · 20 downloads
Quote Originally Posted by ExperiencedHippo View Post
DrawRectHere does not exist. I made it up instead of making an actual drawRect.
I do this a few times in the tutorial, so be wary of that :P

It should look something like this:
Code:
//drawRect(Start pos x, start pos y, width, height, color); //A template for future reference
drawRect(1, 1, 97, 12, color);
If you have any more problems just ask.
Quote Originally Posted by LordPankake View Post
DrawRectHere does not exist. I made it up instead of making an actual drawRect.
I do this a few times in the tutorial, so be wary of that :P

It should look something like this:
Code:
//drawRect(Start pos x, start pos y, width, height, color); //A template for future reference
drawRect(1, 1, 97, 12, color);
If you have any more problems just ask.
Was about to answer him. I'm learning Java currently, and yesterday I set up MCP as my secondary workspace and checked out all the files. Surprisingly, I actually understand a lot of it even though I'm only like 3-4 weeks into Java. Nice tutorial, it'll help if I ever begin on a client which I hope to once I have a good steady ground knowledge of Java. I also have WindowBuilder as a plugin installed onto Eclipse, so soon I wanna try making some cool Java programs-maybe Minecraft tools like an accountchecker.
Quote Originally Posted by ExperiencedHippo View Post
Please just stop now.You should not even be coding if you can't even draw a rectangle or use the proper declaration.
Quote Originally Posted by Psychotic View Post

I actually understand a lot of it even though I'm only like 3-4 weeks into Java.
Its surprisingly organized and easy to read. When I started back in beta 1.6 I just dabbled in terrain generation.

Quote Originally Posted by Psychotic View Post

Nice tutorial, it'll help if I ever begin on a client which I hope to once I have a good steady ground knowledge of Java.
Thanks and good luck when you do / if you start a client.

Quote Originally Posted by Psychotic View Post

I also have WindowBuilder as a plugin installed onto Eclipse, so soon I wanna try making some cool Java programs-maybe Minecraft tools like an accountchecker.
I actually had a cool idea involving windows. You would have a control panel for hacks that would have the functions of a in-game GUI, but all click-able and external. If possible, there would be no need to modify any major pieces of code in the Mc src except for a few snippets here and there. Never got around to doing this though.

Also, have fun with that account checker.
you could change the fly to non creative I think that is much better :P
Quote Originally Posted by UberCreed View Post
you could change the fly to non creative I think that is much better :P
Notch fly is the easiest to turn on/off.
I could easily swap freecam's fly method for what my current fly does, I just like notch fly more (People have their preferences).
Posts 1630 of 46 · Page 2 of 4

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?