Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ErrorCZE/b7bb2fc3eab6e66d918a86650889b4ce to your computer and use it in GitHub Desktop.

Select an option

Save ErrorCZE/b7bb2fc3eab6e66d918a86650889b4ce to your computer and use it in GitHub Desktop.
Updated map extraction w/ scripts
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