Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zip extraction failure when reobfuscating #40

Open
moderatorman opened this issue Apr 30, 2022 · 1 comment
Open

Zip extraction failure when reobfuscating #40

moderatorman opened this issue Apr 30, 2022 · 1 comment

Comments

@moderatorman
Copy link

moderatorman commented Apr 30, 2022

Beta 1.7.3, OpenJDK 1.8.0_312. Error occurred while running reobfuscate.sh on Linux Mint, all updates applied. I'm not sure if this has an easy fix or not, but any help would be greatly appreciated.

I can see that it has something to do with zip extraction and a missing class file. But I checked, and I'm fairly certain it's where it should be.

Edit: Full mcp.log here & mcperr.log here. Traceback below.

Traceback (most recent call last):
  File "runtime/reobfuscate.py", line 51, in <module>
    main(options.config)
  File "runtime/reobfuscate.py", line 30, in main
    commands.unpackreobfclasses(0)
  File "/home/moderator_man/Documents/Projects/MCP-b1.7.3/OSMRewrite-Linux/runtime/commands.py", line 934, in unpackreobfclasses
    zipjar.extract('%s.class' % i, outpathlk[side])
  File "/home/moderator_man/Documents/Projects/MCP-b1.7.3/OSMRewrite-Linux/runtime/bin/python/lib-python/3/zipfile.py", line 1507, in extract
    return self._extract_member(member, path, pwd)
  File "/home/moderator_man/Documents/Projects/MCP-b1.7.3/OSMRewrite-Linux/runtime/bin/python/lib-python/3/zipfile.py", line 1546, in _extract_member
    member = self.getinfo(member)
  File "/home/moderator_man/Documents/Projects/MCP-b1.7.3/OSMRewrite-Linux/runtime/bin/python/lib-python/3/zipfile.py", line 1304, in getinfo
    'There is no item named %r in the archive' % name)
KeyError: "There is no item named 'com/oldschoolminecraft/client/OSM.class' in the archive"
@moderatorman moderatorman changed the title Zip extraction failure when deobfuscating Zip extraction failure when reobfuscating Apr 30, 2022
@Nyvyme
Copy link

Nyvyme commented Aug 17, 2023

Try to run updatemd5.sh before reobfuscate.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants