BepInEx / Il2CppInterop

A tool interoperate between CoreCLR and Il2Cpp at runtime
GNU Lesser General Public License v3.0
195 stars 61 forks source link

Il2Cpp NullError in AmongUs with ClassInjection #54

Closed yukieiji closed 1 year ago

yukieiji commented 1 year ago

Null error occurs when using Il2CppInterop.Runtime.Injection.ClassInjector.RegisterTypeInIl2Cpp in some classes(https://github.com/yukieiji/ExtremeRoles/blob/master/ExtremeRoles/Module/CustomMonoBehaviour/AbilityPart.cs, (It worked in be.565))

nullError

js6pak commented 1 year ago

Fixed in 2dfe5b225ae8c0f9b590e62432a936ee8992b51e

karaok1 commented 6 months ago

I have a similar problem but with another game, this is the issue, I want to fix it myself but it is not intuitive for me what causes this problem, can you help me to understand and debug this? @js6pak