risk-of-thunder / R2API

A modding API for Risk of Rain 2
https://thunderstore.io/package/tristanmcpherson/R2API/
MIT License
136 stars 55 forks source link

Startup failure when not in own folder in plugins #95

Closed harbingerofme closed 4 years ago

harbingerofme commented 4 years ago

When r2api is sitting at the root of the plugins folder, it can't startup correctly. Workaround: move the r2api plugins files into their own R2API folder.

[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
R2API.Utils.APISubmoduleHandler.<LoadRequested>g__getAssemblies|4_0 () (at <9ef6563d9c7248e786c3a8e22e040bec>:0)
R2API.Utils.APISubmoduleHandler.LoadRequested () (at <9ef6563d9c7248e786c3a8e22e040bec>:0)
R2API.R2API..ctor () (at <9ef6563d9c7248e786c3a8e22e040bec>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
RoR2.CharacterSpawnCard:Awake()
xiaoxiao921 commented 4 years ago

That one is my fault. I'll fix it