Placeholder-Software / Dissonance

Unity Voice Chat Asset
69 stars 5 forks source link

[bug] InvalidOperationException: Nullable object must have a value #284

Open ximael opened 3 months ago

ximael commented 3 months ago

InvalidOperationException: Nullable object must have a value. at System.Nullable`1[T].get_Value () [0x00008] in :0 at Dissonance.Integrations.FMOD_Playback.FMODVoicePlayback.Update () [0x00070] in F:\Git\TavernCoop\Assets\Packages\Dissonance\Integrations\FMOD_Playback\FMODVoicePlayback.cs:141

Unity 2022.3.7f1 LTS Netcode for gameobjects Facepunch transport Dissonance with fmod playback and recording

martindevans commented 3 months ago

Can you provide any more context about this error message. For example: Does it happen consistently, just sometimes, or only when you do specific things?

ximael commented 3 months ago

Unfortunately, no. The first dissonance test with several players. Two ppl had this error. The voice continued to work, despite the error.

In players script i change VoiceBroadcastTrigger IsMuted DissonanceSetup VoiceSettings DissonancePlayerName.cs.txt PlayerSound.cs.txt

martindevans commented 3 months ago

The error seems to be coming from Assets/Dissonance/Integrations/FMOD_Playback/FMODVoicePlayback.cs, Line 141. What does that code look like in your copy of that file?

It should look like this:

UpdateOutputBus();
if (LatestPlaybackOptions.HasValue)
    UpdatePositionalPlayback(LatestPlaybackOptions.Value); // <-- Line 141
ximael commented 3 months ago

Yes, UpdatePositionalPlayback(LatestPlaybackOptions.Value); I have not edited any dissonance source file.

I don't need positional sound and don't send players positions to dissonance. "Use positional data" is disabled.