Archomeda / csl-ambient-sounds-tuner

Tune your ambient sounds volumes individually
http://steamcommunity.com/sharedfiles/filedetails/?id=455958878
MIT License
9 stars 4 forks source link

NullReferenceException when patching sounds #30

Closed Archomeda closed 9 years ago

Archomeda commented 9 years ago

The following error has been reported on the Steam Workshop:

[Warning] : AudioInfo must be instantiated using the ScriptableObject.CreateInstance method instead of new AudioInfo. ()
[Warning] : [AmbientSoundsTuner] Could not patch sounds: System.NullReferenceException: Object reference not set to an instance of an object
  at AmbientSoundsTuner.SoundPatchers.SoundsPatcher.GetAudioInfo (AmbientSoundsTuner.SoundPatchers.SOundContainer sound) [0x0000] in <filename unknown>:0
  at AmbientSoundsTuner.SoundPatchers.SoundsInstancePatcher`1[T].BackupSound (.T id) [0x0000] in <filename unknown>:0
  at AmbientSoundsTuner.SoundPatchers.SOundInstancePatcher`1[T].BackupAll (System.Func`2 backupFunc) [0x0000] in <filename unknown>:0
  at AmbientSoundsTuner.SoundPatchers.SoundsInstancePatcher`1[T].BackupAllSounds () [0x0000] in <filename unknown>:0
  at AmbientSoundsTuner.Mod.PatchSounds[String] (AmbientSoundsTuner.SoundPatchers.SoundsInstancePatcher`1 patcher, IDictionary`2 newSounds) [0x0000] in <filename unknown>:0
  at AmbientSoundsTuner.Mod.PatchSounds () [0x0000] in <filename unknown>:0