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

Suggestion: Include instructions on how to use SpecialSource in the ReadMe file #75

Open
DalekCraft2 opened this issue Nov 14, 2021 · 4 comments

Comments

@DalekCraft2
Copy link

Pretty self-explanatory. I want to include the libraries what Minecraft uses in the classpath of the decompiler so it produces less broken code, but I have no idea of where I learned to use this the first time, and this repository does not have any documentation.

@LoneDev6
Copy link

java -cp $HOME/.m2/repository/net/md-5/SpecialSource/1.11.0/SpecialSource-1.11.0-shaded.jar:$HOME/.m2/repository/org/spigotmc/spigot/1.18-pre5-R0.1-SNAPSHOT/spigot-1.18-pre5-R0.1-SNAPSHOT-remapped-mojang.jar net.md_5.specialsource.SpecialSource --live -i $PLUGIN.jar -o $PLUGIN-obf.jar -m $HOME/.m2/repository/org/spigotmc/minecraft-server/1.18-pre5-R0.1-SNAPSHOT/minecraft-server-1.18-pre5-R0.1-SNAPSHOT-maps-mojang.txt --reverse
java -cp $HOME/.m2/repository/net/md-5/SpecialSource/1.11.0/SpecialSource-1.11.0-shaded.jar:$HOME/.m2/repository/org/spigotmc/spigot/1.18-pre5-R0.1-SNAPSHOT/spigot-1.18-pre5-R0.1-SNAPSHOT-remapped-obf.jar net.md_5.specialsource.SpecialSource --live -i $PLUGIN-obf.jar -o $PLUGIN.jar -m $HOME/.m2/repository/org/spigotmc/minecraft-server/1.18-pre5-R0.1-SNAPSHOT/minecraft-server-1.18-pre5-R0.1-SNAPSHOT-maps-spigot.csrg

https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-pre5.534760/

@DalekCraft2
Copy link
Author

I am actually decompiling the vanilla client jar, not the Spigot server.

@md-5
Copy link
Owner

md-5 commented Nov 22, 2021

--help is reasonably comprehensive. Basics: in, out, map file. You can use --live to include the classpath.

@LoneDev6
Copy link

I am actually decompiling the vanilla client jar, not the Spigot server.

It should work in the same way, you have an input jar + an input map -> an output jar.
In the previous example md_5 runs the tool 2 times with two different maps (first with Mojang maps, then with Spigot maps)

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

3 participants