Create Addressable Info File EN - Drova-Modding/Drova-Modding-API GitHub Wiki
A Addressable Information file is useful, to see the guids
and to which object its related too. The Modding API will probably never hold to every Asset a reference.
To create such a file
using MelonLoader;
using Drova_Modding_API.Generation;
namespace ExampleMod
{
public class Core : MelonMod
{
public const string MainScene = "Scene_MainMenu";
public override void OnSceneWasLoaded(int buildIndex, string sceneName)
{
if (sceneName == MainScene) {
AddressableGeneration.CreateAddressableFile(MelonAssembly);
}
}
}
}
This will put your game into freeze, for probably about 10 Minutes, depending on your single core performance and reading performance. But don't worry, you only need to do this once! _There is definitely potential to improve this time. _
After that you should see in Drova/Mods a test.txt, in there you can find line by line the name of the asset with its guid and ObjectType.