I'm assuming this has something to do with the newer unity versions? I was not able to find anything like this on the bepinex discord/issues here.
I did try both setting HideManagerGameObject and using an older Script Engine version, but get this same error with both.
Game is playtest on https://store.steampowered.com/app/2707980/PUNK/ (it auto-gives access to the playtest if you request it).
It does work if you include the script's .pdb file in the scripts folder.
Log from trying to load:
[Message: BepInEx] BepInEx 5.4.23.5 - Punk (7/21/2026 8:51:42 PM)
[Info : BepInEx] Running under Unity v6000.3.4.16634808
[Info : BepInEx] CLR runtime version: 4.0.30319.42000
[Info : BepInEx] Supports SRE: True
[Info : BepInEx] System platform: Bits64, Windows
[Message: BepInEx] Preloader started
[Info : BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.23.5]
[Info : BepInEx] 1 patcher plugin loaded
[Info : BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Message: BepInEx] Preloader finished
[Message: BepInEx] Chainloader ready
[Message: BepInEx] Chainloader started
[Info : BepInEx] 1 plugin to load
[Info : BepInEx] Loading [Script Engine 11.1]
[Info :Script Engine] Loading plugins from E:\SteamLibrary\steamapps\common\PUNK Playtest\BepInEx\scripts\TrackResourceUsage.dll
[Error : Unity Log] SymbolsNotFoundException: No symbol found for file: E:\SteamLibrary\steamapps\common\PUNK Playtest\BepInEx\scripts\TrackResourceUsage.dll
Stack trace:
Mono.Cecil.Cil.DefaultSymbolReaderProvider.GetSymbolReader (Mono.Cecil.ModuleDefinition module, System.String fileName) (at <6034b380a22b41a596c9dc29d282c0a9>:0)
Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) (at <6034b380a22b41a596c9dc29d282c0a9>:0)
Mono.Cecil.ModuleReader.CreateModule (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) (at <6034b380a22b41a596c9dc29d282c0a9>:0)
Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable`1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <6034b380a22b41a596c9dc29d282c0a9>:0)
Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <6034b380a22b41a596c9dc29d282c0a9>:0)
Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <6034b380a22b41a596c9dc29d282c0a9>:0)
ScriptEngine.ScriptEngine.LoadDLL (System.String path, UnityEngine.GameObject obj) (at D:/SVN/BepInEx/BepInEx.Debug/src/ScriptEngine/ScriptEngine.cs:125)
ScriptEngine.ScriptEngine.ReloadPlugins () (at D:/SVN/BepInEx/BepInEx.Debug/src/ScriptEngine/ScriptEngine.cs:103)
ScriptEngine.ScriptEngine.Awake () (at D:/SVN/BepInEx/BepInEx.Debug/src/ScriptEngine/ScriptEngine.cs:57)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.InputSystem.InputSystem:.cctor()
[Message: BepInEx] Chainloader startup complete
[Info : Unity Log] Odin Serializer ArchitectureInfo initialization with defaults (all unaligned read/writes disabled).
[Info : Unity Log] Loaded local config from E:\SteamLibrary\steamapps\common\PUNK Playtest\options.json: {}
[Info : Unity Log] Odin Serializer detected whitelisted runtime platform WindowsPlayer and memory read test succeeded; enabling all unaligned memory read/writes.
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
MusicTrackActivator.Awake () (at <8538e4b59d244f9cac9f03f7ad82245a>:0)
I'm assuming this has something to do with the newer unity versions? I was not able to find anything like this on the bepinex discord/issues here.
I did try both setting
HideManagerGameObjectand using an older Script Engine version, but get this same error with both.Game is playtest on https://store.steampowered.com/app/2707980/PUNK/ (it auto-gives access to the playtest if you request it).
It does work if you include the script's
.pdbfile in the scripts folder.Log from trying to load: