Skip to content

Instantly share code, notes, and snippets.

@serg06
Last active February 7, 2025 03:46
Show Gist options
  • Select an option

  • Save serg06/95b6ba947d94fe1a736eb75e094542da to your computer and use it in GitHub Desktop.

Select an option

Save serg06/95b6ba947d94fe1a736eb75e094542da to your computer and use it in GitHub Desktop.
Miscellaneous solutions
Attempting to decompile older versions of Minecraft using
[ModCoderPack](https://minecraft.gamepedia.com/Programs_and_editors/Mod_Coder_Pack)
results in the following error:
Traceback (most recent call last):
File "C:/<the path>/mcp44/main.py", line 4, in <module>
decompile.main2()
File "C:\<the path>\mcp44\runtime\decompile.py", line 118, in main2
main(options.config, options.force_jad)
File "C:\<the path>\mcp44\runtime\decompile.py", line 16, in main
commands.checkupdates()
File "C:\<the path>\mcp44\runtime\commands.py", line 503, in checkupdates
md5srvdict[entry.split()[0]] = (entry.split()[1], float(entry.split()[2]), entry.split()[3])
IndexError: list index out of range
That's because it tries to get some info from a dead URL:
http://mcp.ocean-labs.de/files/mcprolling/mcp.md5
To fix it,
1. Comment out the broken line
In my case it was this:
#HINT: Each remote entry is of the form dict[filename]=(md5,modificationtime)
for entry in md5srvlist:
md5srvdict[entry.split()[0]] = (entry.split()[1], float(entry.split()[2]), entry.split()[3])
2. Make sure you've launched the correct version of Minecraft at least once.
E.g. if using mcp44 to decompile Minecraft beta 1.8.1, make sure you've launched beta 1.8.1.
3. Navigate to %appdata%\.minecraft\versions\, find the right version, find the Minecraft jar
(sometimes it's nested inside of another Minecraft jar), and move it to <mcp_base_folder>/jars/bin/.
4. Run decompile.bat like normally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment