Important
Sigma Rebase is in development.
Sigma Rebase is a rewrite of the Sigma Remap project. Since the authors of Sigma Remap used the "Generate Mappings" function of Recaf (which is destructive, even for non-obfuscated names!), which overrides every name in the jar with a generated name (e.g. Class123, field123, method123, var123). This is okay if it was filtered to just the obfuscated names, but it wasn't. There are many classes that are from Minecraft yet have the generated name. Sigma Rebase solves this by starting from MCP 1.16.4 and up, and its goal is to have all modules from Sigma Remap and not include any other classes than Sigma's.
- Clone this repo and open it in IntelliJ IDEA
- Set up the project (libraries, natives)
- Open Project Structure with CTRL + Alt + Shift + S, we need to mark some directories
- Find the "Modules" tab and click
SigmaRebase
(this project's name) - Open the "Sources" tab within the
SigmaRebase
module - Expand the "src" directory
- Expand the "main" directory
- Mark the
java
directory asSources
(you need to mark so IntelliJ knows where to look and what to compile). - Mark the
res
directory asResources
(you need to mark this so IntelliJ includes this and Minecraft won't crash when trying to look for assets).
Note
You don't need to do this, since commit 295ffb83759f4163d04b40c5894941dc060a5a17
introduced a run configuration in .run/Sigma Rebase.run.xml
- Press CTRL + SHIFT + A to open the Actions menu.
- Search for "Edit configurations" and press enter / click on the result in the "Run" category
- Press INSERT or click "Add new..."
- Find "Application" and press ENTER or click it
- Set the main class to "Start" in the default class
- OPTIONAL: Give the application a name (e.g. "Sigma Rebase" / "Start Client")
- OPTIONAL: Enable or disable "Store as project file"
- OPTIONAL: make some other tweaks if you want to.
- Now that you've configured the Application, you can run it.
- Shift + F9 for debugging (if you want hot reload)
- Shift + F10 for running (no hot reload)
Important
This seems to be broken for now. Hopefully I can fix it later.
- Open the project structure with Ctrl + Alt + Shift + S;
- Find and click on the Artifacts tab;
- Press + -> JAR -> Empty;
- In the Available Elements tab, right-click on Libraries -> Extract into Output Root;
- In the same tab, right-click on your compile output icon -> Put into Output Root
- Give your artifact a name (optional);
- Close the project structure window and find the Build tab -> Build artifacts and double-click on your created artifact; This jar will be then compiled in your project's directory/out/artifacts/artifact name/artifact name.jar