Content Warning
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
22
Likes
0
Size
8.7KB
Dependants

MirageFix

Fixes a game crash caused by Mirage 1.5.0. In the crash log it looks like this:

UnityEngine.AudioClip:CreateUserSound_Injected
UnityEngine.AudioClip:Create
Mirage.Core.Audio.Format:convertToAudioClip
Mirage.Unity.AudioStream/clo@109-14:Invoke
...
System.Threading.ThreadPoolWorkQueue:Dispatch

What goes wrong

When a mimic on the host speaks with the host's own voice, Mirage reads the recording on a background thread and creates the Unity audio clip on that same thread. Unity only allows this on its main thread. Sometimes it works anyway, and sometimes the game crashes with no error message. The crash always happens on the host.

What the mod does

Mirage still reads the recording on the background thread. Only creating the clip moves to the main thread, and the background thread waits for it. The sound and the timing are the same.

Only the host needs it, but it's harmless to install for everyone. No settings.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.