Help with programming my first Client

Posts 14 of 4 · Page 1 of 1
Help with programming my first Client
So, i am simply watching youtube videos and mimicing what they do. (no hate please?)

Anyway, most vides are outdated. So i looked in the comments and people were saying to change some things like fontrenderer to var8 etc. but i have a feeling im missing something. my client will open mc, then when trying to load a game it will crash and repeats the following;

Variables cannot be resolved to a variable

also, in the package explorer bar, if i follow the red 'X's i find that there may be a problem with;

renderGameOverlay

ill post some pics below. Thanks!

PS: Im a total noob explain things simply please :S



1.1 - This is The error i get...


1.2 - This is the renderGameOverlay


1.3 - The code that i recently added which most likely is causing problem.

IGNORE 'problem' files
Problem 2.jpg202 KB · 4 downloads Problem.jpeg415 KB · 4 downloads
Pictures approved!
I don't know coding, so wait for someone else to help.
Error code says line 502 is in question. (something on or near that line is messed up)

Red lines are appearing on your Variables. This could mean a few things:
  • Variables is not imported. (I'm guessing yours would be " Import net.minecraft.src.Variables; ")
  • Variables.java is spelled incorrectly (the file itself)
  • You are mis-typing your boolean-holding class. (Class mispelled or your calling is mispelled)


I'm going to assume it's the first point though.

Also for format's sake, instead of
Code:
else
     code
use
Code:
else
{
     code
}
Clean code is easier to work with and usually speeds up time in the updating progress.

Edit: that syntax you're using there is pretty bad. Fix it up a bit and that should fix another error after you import your variables class.
Posts 14 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?