Skip to content

Sigma-Skidder-Team/SigmaRebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sigma Rebase

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.

Instructions

Base steps

  1. Clone this repo and open it in IntelliJ IDEA
  2. Set up the project (libraries, natives)
  3. Open Project Structure with CTRL + Alt + Shift + S, we need to mark some directories
  4. Find the "Modules" tab and click SigmaRebase (this project's name)
  5. Open the "Sources" tab within the SigmaRebase module
  6. Expand the "src" directory
  7. Expand the "main" directory
  8. Mark the java directory as Sources (you need to mark so IntelliJ knows where to look and what to compile).
  9. Mark the res directory as Resources (you need to mark this so IntelliJ includes this and Minecraft won't crash when trying to look for assets).

I want to run Sigma Rebase within IntelliJ IDEA

Note

You don't need to do this, since commit 295ffb83759f4163d04b40c5894941dc060a5a17 introduced a run configuration in .run/Sigma Rebase.run.xml

  1. Press CTRL + SHIFT + A to open the Actions menu.
  2. Search for "Edit configurations" and press enter / click on the result in the "Run" category
  3. Press INSERT or click "Add new..."
  4. Find "Application" and press ENTER or click it
  5. Set the main class to "Start" in the default class
  6. OPTIONAL: Give the application a name (e.g. "Sigma Rebase" / "Start Client")
  7. OPTIONAL: Enable or disable "Store as project file"
  8. OPTIONAL: make some other tweaks if you want to.
  9. Now that you've configured the Application, you can run it.
    1. Shift + F9 for debugging (if you want hot reload)
    2. Shift + F10 for running (no hot reload)

I want a runnable JAR for the Minecraft launcher!

Important

This seems to be broken for now. Hopefully I can fix it later.

  1. Open the project structure with Ctrl + Alt + Shift + S;
  2. Find and click on the Artifacts tab;
  3. Press + -> JAR -> Empty;
  4. In the Available Elements tab, right-click on Libraries -> Extract into Output Root;
  5. In the same tab, right-click on your compile output icon -> Put into Output Root
  6. Give your artifact a name (optional);
  7. 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

Contributors