MirageFix
Fixes a game crash in Mirage 1.5.0: a mimic on the host made its audio clip outside Unity's main thread. Only the host needs it; harmless for everyone.
By ElfDevelop
| Last updated | 9 hours ago |
| Total downloads | 12 |
| Total rating | 0 |
| Categories | Mods Audio Host-Only |
| Dependency string | ElfDevelop-MirageFix-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305cw_qwbarch-Mirage
Every enemy can mimic the voice of any player currently in the game.
Preferred version: 1.5.0README
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.