modestimpala / OdinOnDemand

A mediaplayer mod for Valheim using SoundcloudExplode and YoutubeExplode
https://valheim.thunderstore.io/package/ValMedia/OdinOnDemand/
GNU Affero General Public License v3.0
1 stars 0 forks source link

Error when Linking Speakers sometimes #23

Closed modestimpala closed 8 months ago

modestimpala commented 8 months ago

From @smoothuk #22

[Error : Unity Log] NullReferenceException Stack trace: OdinOnDemand.Components.SpeakerHelper.CompressSpeakerList (System.Collections.Generic.HashSet`1[T] speakers) (at <90dd2a6afabd45f9a325b894a78fa5d7>:0) OdinOnDemand.MPlayer.BasePlayer.SaveZDO (System.Boolean saveTime) (at <90dd2a6afabd45f9a325b894a78fa5d7>:0) OdinOnDemand.Components.MediaPlayerComponent.SaveZDO (System.Boolean saveTime) (at <90dd2a6afabd45f9a325b894a78fa5d7>:0) OdinOnDemand.MPlayer.BasePlayer.AddSpeaker (OdinOnDemand.Components.SpeakerComponent sp) (at <90dd2a6afabd45f9a325b894a78fa5d7>:0) OdinOnDemand.Components.RemoteControlItem.ProcessRaycast () (at <90dd2a6afabd45f9a325b894a78fa5d7>:0) OdinOnDemand.Components.RemoteControlItem.Update () (at <90dd2a6afabd45f9a325b894a78fa5d7>:0)

modestimpala commented 8 months ago

More info from @smoothuk

All I can say about the speaker thing is, it happened when I tried to link a speaker to the theater screen. Instead of saying "Speaker linked", no message was displayed in game but instead the error message appeared in console. I also couldn't reproduce this on a new world, and had trouble getting the error consistently on the world I sent you.