Forked from DrakiaXYZ/gist:519eb52d011dd8f6b3761f9ba41e82be
Created
April 2, 2025 08:16
-
-
Save ErrorCZE/b7bb2fc3eab6e66d918a86650889b4ce to your computer and use it in GitHub Desktop.
Updated map extraction w/ scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| General steps to extract a map and load it into Unity: | |
| ------------------------ | |
| 1) Use AssetRipper to export all level files for the target map, along with the "Managed" folder (Select all associated files in Explorer, and drag into AssetRipper, all at once) | |
| 2) Move the files from the "level###/ExportedProject" folder to wherever you want your project to live, you can delete the "level###" folder afterwards | |
| 3) Drag the folder you moved the ExportedProject files to onto "SPT-MapCleaner.exe", and wait for it to finish | |
| 4) Extract `MapAssets.7z` into Assets folder | |
| 5) In UnityHub, select the dropdown beside "Open" and choose "Add Project from Disk", select the folder containing your level files | |
| 6) Click the folder in your project list, and wait for Unity to import the map assets (This takes a while) | |
| 7) Access the package manager via Window -> Package Manager | |
| 7a) Add AssetBundles Browser by click the + in the top left, and selecting Add package from git URL: https://github.com/Unity-Technologies/AssetBundles-Browser.git | |
| 8) Select all of the scenes from the "Scenes" folder in the Project panel, and drag them into the Hierarchy panel (This step will take a while) | |
| Getting terrain and objects to show if they are invisible: | |
| ------------------------- | |
| You should have a new "EFTCleaner" menu at the top of the window if you extracted MapAssets.7z | |
| There are three helper functions in the EFTCleaner menu, you should run all of these on first load: | |
| "Setup Layers" - This names all of the layers, and sets them up for use by the other functions | |
| "Show Missing Terrain" - This will unhide terrain, which gets hidden for some reason | |
| "Show Missing Objects" - This will unhide objects, which also get hidden for some reason | |
| Save the project, this step may take a while as it has to save each scene. You may need to re-run the "Show" options the next time you load Unity | |
| Assets available here: https://github.com/DrakiaXYZ/SPT-MapCleaner/releases | |
| Map Level Associations: https://gist.github.com/DrakiaXYZ/0c392b4ad6781f287e3f281bdc79e70e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment