Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Fixing Lag and Freezing when Joining a MP Server

tutorial lag freezing

  • Please log in to reply
171 replies to this topic

#1

pqqqqq
    pqqqqq

    Tree Puncher

  • Curse Premium
  • Curse Premium
  • 22 posts

Posted 02 September 2012 - 05:31 AM

The Problem
There has been a known issue with 1.3.1 and 1.3.2 when connecting to MP servers. That also includes getting the pings for servers, which could take minutes just for them all to get connection.

When a server was trying to be logged into, the user may have to wait up to 15-30 seconds while the game client was frozen for them to be let in.


The Explanation
The explanation for this was because of minecraft trying to use java files that may not be in every "active" version of java. Without checking if the class existed in their version of java, minecraft attempted to get attributes of the class. Java's reaction was to wait for it's time out of around 15-30 seconds until throwing an error, which minecraft recognized and dealt with properly.


The Solution
The solution was pretty simple, knowing the problem. Check if the class files exist before attempting anything else.  I guess you could consider it a "null check" (the concept, not the actuality). With this change, I use the Class#forName to check if it exists, in which it will throw an error if it doesn't. If caught, the error will let the method know that the class doesn't exist and not to try anything else.

Below is a file to replace in minecraft.jar. This will require the deletion of the META-INF from the jar. If you need further instructions on how to place the file in, look up a tutorial on how to install mods.

View Postpqqqqq, on 04 January 2013 - 01:46 AM, said:

A) Take these steps in order:
1. Download the class file for the corresponding version of minecraft.
2. Open the Minecraft.jar in an archiving program (WinRAR, WinZip, 7Zip, etc.)
3. Delete the META-INF folder (this is crucial, if this isn't done Minecraft will crash on start-up)
4. Drag the class file into the archive, if prompted for permission to override, click yes.
5. Start up Minecraft.

The files:
1.3.2: http://www.mediafire...46hh70uhe0wl4a7
1.4.2: http://www.mediafire...snxpfsasvpphsca
1.4.4 / 1.4.5: http://www.mediafire...naqw90ae6xg4bay
1.4.6 / 1.4.7: http://www.mediafire...cvhhu2394uuhn86
1.5: http://www.mediafire...rdgjkgckym6hufm
1.5.1: http://www.mediafire...k7g22b0dks0y9et
1.5.2: http://www.mediafire...vj770g44vl6yvng
1.6.2: http://www.mediafire...r4qwmx1zxwacke4
1.6.4: http://www.mediafire...d7kzdjmxwjsfrek

The source (MCP): http://www.mediafire...n9ocqp42ju5xf4o

I hope this helps.

Register or log in to remove.

#2

darknavi
    darknavi

    Tree Puncher

  • Curse Premium
  • Curse Premium
  • 34 posts

Posted 22 September 2012 - 03:37 AM

This is an amazing fix.  Thanks so much.  

Everyone else who this helps, please post here.  This is literally the only post that I've found that fixes this.

#3

pqqqqq
    pqqqqq

    Tree Puncher

  • Curse Premium
  • Curse Premium
  • 22 posts

Posted 29 September 2012 - 07:57 PM

Thanks, glad it helped you. 61 downloads, 250 views and 1 comment, man. It's either lots of leachers or it just didn't help people. I guess it doesn't matter too much thought, glad it helped someone.

#4

Dano10
    Dano10

    Stone Miner

  • Members
  • 72 posts
  • Minecraft: Dano10

Posted 07 October 2012 - 12:11 AM

Ever since 1.3.1 when trying to join servers with the default port (:25565) it would freeze for half a minute then connect to the server, but this has fixed it, it doesn't freeze anymore!
Thanks Heaps! Posted Image

#5

Kingpulse
  • Minecraft: Kingpulse

Posted 22 October 2012 - 05:48 PM

I'm still getting the same issue even when ive deleted Meta-inf and put that in :/

#6

darknavi
    darknavi

    Tree Puncher

  • Curse Premium
  • Curse Premium
  • 34 posts

Posted 26 October 2012 - 05:14 PM

Hey, I was hoping you'd update this to 1.4.2 :3

#7

pqqqqq
    pqqqqq

    Tree Puncher

  • Curse Premium
  • Curse Premium
  • 22 posts

Posted 27 October 2012 - 05:45 AM

Sure, fixed it for 1.4.2, link changed in original post.

#8

Year
    Year

    Redstone Miner

  • Members
  • 594 posts
  • Minecraft: Nxck

Posted 27 October 2012 - 10:12 PM

I have definately bookmarked this post!

Hopefully your remedy is the cure - Will try this when I get my server fully operational on 1.4.2 CB; starting up MC again. :)

This was a persistant bug prior. I'm glad it's squashed.

Posted Image


#9

Zebtrol
    Zebtrol

    Out of the Water

  • Members
  • 7 posts

Posted 28 October 2012 - 08:14 PM

Same thing happend. freezes when im trying to join a server

#10

cliffnerd

Posted 30 October 2012 - 12:25 PM

Been dying with this issue for months! This works!!!! Thanks. Trying to forward more people here.

#11

Nofearashonti

Posted 30 October 2012 - 01:23 PM

thats work in 1.4.2 thank you !
but please can you put the link for 1.3.2 ?
thank you <3

#12

Arcami
    Arcami

    Out of the Water

  • Members
  • 5 posts

Posted 31 October 2012 - 09:21 AM

Thanks. Works fine! Posted Image

#13

TP33
    TP33

    Newly Spawned

  • Members
  • 1 posts

Posted 02 November 2012 - 03:19 PM

Im newbie, i understood that i should paste this in minecraft.jar, i did this and nothing happened. Im joining server im not host, should host do this or people that r joining? Thanks for help.

#14

mdlukas
    mdlukas

    Tree Puncher

  • Members
  • 14 posts

Posted 04 November 2012 - 03:43 AM

THANKS , it worked <3
[Diamond] Posted Image [Diamond]

The pigs fear when they hear my name.... MDLUKAS THE ARGENTINIAN MINER.....

dun dun dun...

#15

MC4Pros
    MC4Pros

    Carpenter

  • Members
  • 41 posts
  • Minecraft: MrPros

Posted 04 November 2012 - 04:10 AM

Thank you my good sir!!! YOU ARE A LIFE SAVER! You don't know how long i've been annoyed with this. Thank you so much!

#16

cubim1
    cubim1

    Newly Spawned

  • Members
  • 1 posts

Posted 04 November 2012 - 06:00 AM

Wow. I play minecraft everyday for hours, and I've had this problem for a month two now. I never realized how easy it was to fix this. Thanks a lot for you help!

#17

themarathonseason

Posted 06 November 2012 - 12:47 PM

Wow, I've been playing minecraft with this annoyance since 1.3. Finally, in 1.4.2, I decided to search the web and found this fix. Worked for me! thank you !!

#18

pr4xt3r
    pr4xt3r

    Tree Puncher

  • Members
  • 27 posts
  • Location: Canada
  • Minecraft: pr4xt3roy

Posted 06 November 2012 - 07:40 PM

I wish I could say it helped me.  When I put the axf.class inside the minecraft.jar (the one in .minecraft/bin) I get Security Exception error and it crashes when I try joining a server.  :(
-- Pr3xt3roy    [ Survival, Claim Land, Build, Make friends. 100% Anti-Grief! ]
Posted Image

#19

pqqqqq
    pqqqqq

    Tree Puncher

  • Curse Premium
  • Curse Premium
  • 22 posts

Posted 06 November 2012 - 08:47 PM

For all those that it isn't working for, make sure you're deleting the META-INF or minecraft WILL crash on you. Also, make sure you're using the right version of the fix for the right version of minecraft. Aside from that, I don't know why it wouldn't work.

#20

Biiim
    Biiim

    Gold Miner

  • Members
  • 400 posts

Posted 07 November 2012 - 05:31 PM

Nice fix ! +1 for you, pal.
"Love as a principle and order as the basis; progress as the goal"