Resources for Mod Developers
Unity Explorer
Unity Explorer is a tool that allows you to dig into the internal structure of the game while it’s running.
Thunderstore Version
UnityExplorer IL2CPP at Thunderstore
Building from source
Unity Explorer can be built from source and installed manually:
Prerequisites
- Install BepInEx in VRising
- Install the .NET 6 SDK via manual download or winget (winget install Microsoft.DotNet.SDK.6)
Build Instructions
- Clone https://github.com/kremnev8/UnityExplorer
- In a terminal in the
UnityExplorer
directory, rundotnet build -c BIE_Cpp_CoreCLR .\src\UnityExplorer.csproj
. This will build the plugin. - Copy all of the files in the
Release\Release\UnityExplorer.BepInEx.IL2CPP.CoreCLR
subdirectory to the BepInEx plugin directory at<steamapps>\common\VRising\BepInEx\plugins
. - The next time you run the game with BepInEx, the Unity Explorer UI will be overlayed in the game. See https://github.com/kremnev8/UnityExplorer for more information about how to use it.
Debugging with using Visual Studio (untested)
- Install Visual Studio Tools for Unity using Visual Studio Installer. You can find the component behind Individual components tab.
- Edit doorstop_config.ini (either in VRising or VRising_Server folder, depending on what you are modding) and change debugEnabled to true.
- Launch the game (or server) with the plugin.
- In Visual Studio goto Debug / Attach Unity Debugger, click to Input IP, enter 127.0.0.1:10000
Cpp2IL Decompiled Method Dumps
Download Cpp2IL-2022.0.5-Windows.exe into an empty folder, then open a command prompt / powershell / etc. in that folder and run this command:
Cpp2IL-2022.0.5-Windows.exe --analysis-level=4 --game-path="{PATH\TO\YOUR\GAME\FOLDER}" --exe-name="Vrising" --analyze-all --parallel
(change {PATH\TO\YOUR\GAME\FOLDER} to the full path of your game folder).