FizzyApple12 / BeatSaberPresence

A mod for Beat Saber that adds Discord Rich Presence functionality.
56 stars 9 forks source link

Incompatible with Custom Avatars #7

Closed programmer2514 closed 3 years ago

programmer2514 commented 3 years ago

I installed this mod the other day, but it appears to be incompatible with the Custom Avatars mod. Every time I start the game with the BeatSaberPresence mod installed, the mod does not work correctly and all my avatars fail to load with the following error:

[ERROR @ 17:48:21 | Custom Avatars] [AvatarLoader] Failed to load avatar at 'G:\Program Files (x86)\Steam\steamapps\common\Beat Saber\CustomAvatars\Ambi.avatar'
[ERROR @ 17:48:21 | Custom Avatars] [AvatarLoader] System.NullReferenceException: Object reference not set to an instance of an object
[ERROR @ 17:48:21 | Custom Avatars]   at CustomAvatar.Avatar.SpawnedAvatar.SetChildrenToLayer (System.Int32 layer) [0x0001d] in <07476c94990f4dccaeb5e07ca84b9b6a>:0 
[ERROR @ 17:48:21 | Custom Avatars]   at CustomAvatar.Avatar.SpawnedAvatar.SetFirstPersonVisibility (CustomAvatar.Avatar.FirstPersonVisibility visibility) [0x00031] in <07476c94990f4dccaeb5e07ca84b9b6a>:0 
[ERROR @ 17:48:21 | Custom Avatars]   at CustomAvatar.Player.PlayerAvatarManager.UpdateFirstPersonVisibility () [0x00040] in <07476c94990f4dccaeb5e07ca84b9b6a>:0 
[ERROR @ 17:48:21 | Custom Avatars]   at CustomAvatar.Player.PlayerAvatarManager.SwitchToAvatar (CustomAvatar.Avatar.AvatarPrefab avatar) [0x00185] in <07476c94990f4dccaeb5e07ca84b9b6a>:0 
[ERROR @ 17:48:21 | Custom Avatars]   at CustomAvatar.Avatar.AvatarLoader+LoadHandlers.InvokeSuccess (CustomAvatar.Avatar.AvatarPrefab value) [0x0000a] in <07476c94990f4dccaeb5e07ca84b9b6a>:0 
[ERROR @ 17:48:21 | Custom Avatars]   at CustomAvatar.Avatar.AvatarLoader.HandleSuccess (System.String fullPath, CustomAvatar.Avatar.AvatarPrefab avatarPrefab) [0x00072] in <07476c94990f4dccaeb5e07ca84b9b6a>:0 
[ERROR @ 17:48:21 | Custom Avatars]   at CustomAvatar.Avatar.AvatarLoader+<LoadFromFileAsync>d__6.MoveNext () [0x0025e] in <07476c94990f4dccaeb5e07ca84b9b6a>:0

It seems like this might be caused by Zenject, although I could easily be wrong as I am by no means an experienced Beat Saber modder.

programmer2514 commented 3 years ago

NVM. Ignore my stupidity. I thought I had DiscordCore installed but apparently I didn't. There should probably be something to prevent Zenject from failing to load correctly if DiscordCore is missing or at least some kind of warning though.