How to extract the Unity project - TheModderWasReplaced/AgriCore GitHub Wiki
If you want to add custom features like models, SFXs and UIs, it's useful to be able to simply modify the game like it was your project.
In this page, I will go over how to achieve such thing.
(This is more of a starting point, not a complete answer)
How to Obtain the game
Of course, you need the game itself in order to extract the project. You can simply buy the game on Steam or obtain it through other ways. I'm not encouraging piracy. All you need to know is that you need the executable.
How to Extract the Project
Here are every step needed to get the Unity project from the executable:
- Download the Unity
2021.3.45f1
The game's version could change in the future. An easy way to check the Unity version is to launch BepInEx. It should be written in the first few lines.
- Download AssetRipper
- Launch the program
If you have all the needed dependencies, a web page should open up.
- Click
File
>Open Folder
- Select the
*_Data
folder - Click
Export
>Export All Files
- Click
Select Folder
and select an empty folder - Click
Export Unity Project
This created two folders: AuxiliaryFiles
and ExportedProject
.
- With Unity, open the folder
ExportedProject
- Open the new project
Just a head's up: this can take a while. Normally, only the first time should take as long (due to downloading missing libraries and stuff).
- Enjoy the project
Now that you have the Unity project, you can start using the game's assets or build your owns.
Fixing the Project
When opening the project for the first time, you might came across errors with the project. Decompiling does not tend to make the most functional projects. However, it is possible to fix the project in order to make it work. In this section, we will go over each possible error and how to fix it.
Make sure to fix errors before fixing warnings
Broken DLLs
If an issue like Unloading broken assembly 'AnyDLLFile', this assembly can cause crashes in the runtime
comes up, here is how you fix it:
- Select the broken DLL
- In the Inspector, change the OS in the Editor Settings to
Windows
- Click
Apply
Black Scene
If you can't see anything in the Scene
window, make sure the following files have their OS set to Windows
:
Unity.RenderPipelines.Universal.Runtime.dll
Unity.RenderPipelines.Core.Runtime.dll
Missing Behaviors
If an issue like The referenced script (ClassName) on this Behaviour is missing!
came up, here is how you fix it:
- Go to
Windows
thenPackage Manager
- Select
Unity Registry
- Install
Unity UI
andTextMeshPro
- Go to
Windows
,TextMeshPro
thenImport TMP Examples and Extras
- Click
Import
- Go to
Assets/Plugins
- Select
Core.dll
- In the Inspector, change the OS to
Any OS
- Click
Apply
- Repeat steps 2 to 4 with
Utils.dll
andUnity.TextMeshPro.dll
- Go to
Windows
thenPackage Manager
- Remove
TextMeshPro
cat: