It's Mr. Out-of-nowhere patch-for-Minecraft again. If someone hasn't posted it yet, here's a self-serve (you don't have to wait for servers to fix it) client-side fix for the "Invalid server key" error.
If you find the fix useful, please reply with a thanks or something to keep the thread available for others to see! Thanks.
Manual installation:
Replace this file: http://www.sk89q.com/content/2011/11/abp.class
(Don't forget to delete everything inside the META-INF folder of minecraft.jar, except for the MANIFEST.MF file.)
The bug is actually caused by (another attempt...) at fixing this exploit: http://www.minecraftforum.net/topic/636318-181-exploit-fix-login-under-someone-else’s-minecraft-account/
It attempts to check if the server key is valid by attempting to parse the server key as a long, but there's an error that makes this fail (attempt to parse an unsigned long, causing overflow). I've changed this to a simple check to make sure that the server key is a hexadecimal number.
A bunch of moderators told me last time that my last thread kept getting reported, so check out the post I linked above (which I posted). That was moderator-approved. Oh, I also make WorldEdit, WorldGuard, CraftBook, and a few other things.
FREQUENTLY ASKED QUESTIONS
I get "java.lang.SecurityException: SHA-256 digest error for abp.class".
Delete the signature files in META-INF/ (the two files besides MANIFEST.MF). They tell Java to verify that the game files aren't modified, which is exactly what we're doing!
I get "Outdated server" instead after installing this patch.
The server you are joining is still running 1.8.1! You can't do anything about that, except to revert back to 1.8.1 (you did save it, right?).
After installing, I still get this error.
If you didn't mess up, it's because my valid key check is still a bit restrictive. I'll have to look into that if Minecraft doesn't get a fix soon (which it may). For the technical people, the current regex is ^\-?[0-9a-fA-F]+$
Open up the minecraft.jar file with a ZIP program, because .jar files are secretly .zip (on Windows, type %APPDATA%\.minecraft\bin in Windows Explorer to find this file, on Linux, it is in ~/.minecraft/bin, on Mac OS X I have no clue)
Copy the downloaded abp.class file into minecraft.jar and replace the existing file.
Go to the META-INF folder and delete everything except for MANIFEST.MF. The files you delete tell Java to make sure that Minecraft's files have not been modified, but that's what we're doing!
If you don't understand these instructions, don't worry! They're pretty bad. (If someone has a link to a good tutorial, please post it.)
now if you could fix this: i cant break or place blocks on any server and i cant go through doors unless someone else opens them ive gotten very far away from the spawn and tried but it still doesnt work ive also tried deleting the mc folder etc doesnt work
If you find the fix useful, please reply with a thanks or something to keep the thread available for others to see! Thanks.
Manual installation:
Replace this file: http://www.sk89q.com/content/2011/11/abp.class
(Don't forget to delete everything inside the META-INF folder of minecraft.jar, except for the MANIFEST.MF file.)
If you really want to donate to me: http://www.sk89q.com/donate
EXPLANATION
The bug is actually caused by (another attempt...) at fixing this exploit:
http://www.minecraftforum.net/topic/636318-181-exploit-fix-login-under-someone-else’s-minecraft-account/
It attempts to check if the server key is valid by attempting to parse the server key as a long, but there's an error that makes this fail (attempt to parse an unsigned long, causing overflow). I've changed this to a simple check to make sure that the server key is a hexadecimal number.
A bunch of moderators told me last time that my last thread kept getting reported, so check out the post I linked above (which I posted). That was moderator-approved. Oh, I also make WorldEdit, WorldGuard, CraftBook, and a few other things.
FREQUENTLY ASKED QUESTIONS
I get "java.lang.SecurityException: SHA-256 digest error for abp.class".
Delete the signature files in META-INF/ (the two files besides MANIFEST.MF). They tell Java to verify that the game files aren't modified, which is exactly what we're doing!
I get "Outdated server" instead after installing this patch.
The server you are joining is still running 1.8.1! You can't do anything about that, except to revert back to 1.8.1 (you did save it, right?).
After installing, I still get this error.
If you didn't mess up, it's because my valid key check is still a bit restrictive. I'll have to look into that if Minecraft doesn't get a fix soon (which it may). For the technical people, the current regex is ^\-?[0-9a-fA-F]+$
How do I install?
First, if you use Windows, try this installer:
http://www.sk89q.com/content/2011/11/invalid-server-key-fix-mc1.0.exe
Basically, you install it like every other mod:
Check out my Minecraft server.
ayyy
Sounds like you have a different problem :tongue.gif:
Check out my Minecraft server.
I love the forum community... casually following mojang, sweeping up all the errors with neat fixes like these.
what d u do to get it working-step by step intructions plz
RvsB forevar!!!
Notch! Fix the goddamn game!
do you need to downgrade because the server is still on 1.8.1?
Here's a vid: