Similar to #22 - Someone asked me for help about this issue at random and I couldn't replicate it until I wiped both the pluginconfig and pluginsinstalled NotificationMaster folders, essentially removing all configs and installed plugin files ("right click -> Reset plugin data and reload" is not enough, you mut delete the actual plugin from the InstalledPlugins folder).
I restarted my game after and installed NM fresh, and got the NAudio error. It looks like it's failing to load the embedded NAudio DLL on the first run after being downloaded.
Disabling and re-enabling the plugin doesn't fix it, a game restart fixes it from then on. I didn't modify anything in the plugin aside from enabling fish tracking and sounds for fish tracking, then hitting test.
I think it's trying to use reflection to see all the embedded resources in every plugin, as opposed to just yours - Then it hits something it can't parse (even if I disable ChillFrames, the plugin in this example, it fails on other ones) and fails, so the NAudio library doesn't get loaded in the AudioPlayer.cs
17:05:50.958 | VRB | Downloading icon for NotificationMaster from https://raw.githubusercontent.com/goatcorp/PluginDistD17/main/testing-live/NotificationMaster/images/icon.png
17:05:51.001 | VRB | Plugin icon for NotificationMaster loaded
17:05:52.320 | VRB | Downloading image3 for NotificationMaster from https://raw.githubusercontent.com/goatcorp/PluginDistD17/main/testing-live/NotificationMaster/images/image3.png
17:05:52.320 | VRB | Downloading image1 for NotificationMaster from https://raw.githubusercontent.com/goatcorp/PluginDistD17/main/testing-live/NotificationMaster/images/image1.png
17:05:52.320 | VRB | Downloading image2 for NotificationMaster from https://raw.githubusercontent.com/goatcorp/PluginDistD17/main/testing-live/NotificationMaster/images/image2.png
17:05:52.320 | VRB | Downloading image4 for NotificationMaster from https://raw.githubusercontent.com/goatcorp/PluginDistD17/main/testing-live/NotificationMaster/images/image4.png
17:05:52.320 | VRB | Downloading image5 for NotificationMaster from https://raw.githubusercontent.com/goatcorp/PluginDistD17/main/testing-live/NotificationMaster/images/image5.png
17:05:53.404 | DBG | [PluginManager] Installing plugin NotificationMaster (testing=False, version=2.1.1.15, reason=Installer)
17:05:53.406 | INF | [Profile] Removing plugin "NotificationMaster"(238b6c7f-fd41-4213-870a-cb2e9430636a) from profile 00000000-0000-0000-0000-000000000000
17:05:53.420 | VRB | Saving manifest for "NotificationMaster" because "installation"
17:05:53.422 | DBG | [PluginManager] Copying plugin from "C:\Users\REDACTED\AppData\Local\Temp\dalamud_ab050956-3b85-4dcc-9c18-c2374c77efa2" to "C:\Users\REDACTED\AppData\Roaming\XIVLauncher\installedPlugins\NotificationMaster\2.1.1.15"
17:05:53.432 | INF | [PluginManager] Installed plugin "NotificationMaster" (testing=False)
17:05:53.432 | INF | [PluginManager] Loading plugin "NotificationMaster"
17:05:53.432 | VRB | [PluginManager] Starting to load plugin "NotificationMaster" at "C:\Users\REDACTED\AppData\Roaming\XIVLauncher\installedPlugins\NotificationMaster\2.1.1.15\NotificationMaster.dll"
17:05:53.433 | WRN | [ProfileManager] a9d1e9b4-b481-4c33-91c5-39384f2681ad("NotificationMaster") was not in any profile, adding to default with True
17:05:53.433 | INF | [Profile] Adding plugin "NotificationMaster"(a9d1e9b4-b481-4c33-91c5-39384f2681ad) to profile 00000000-0000-0000-0000-000000000000 with state True
17:05:53.433 | INF | [PluginManager] "NotificationMaster" defaultState: True wantedByAnyProfile: True loadPlugin: True
17:05:53.433 | INF | [LocalPlugin] Loading NotificationMaster.dll
17:05:53.692 | VRB | [LocalPlugin] "NotificationMaster" (a9d1e9b4-b481-4c33-91c5-39384f2681ad): Have type
17:05:53.692 | INF | [LocalPlugin] Creating plugin instance for "NotificationMaster" (async=False)
17:05:53.704 | INF | [NotificationMaster] This is ECommons v3.2.0.6 (release build) and NotificationMaster v2.1.1.15. Hello!
17:05:53.706 | INF | [NotificationMaster] Advanced Dalamud reflection module has been requested
17:05:53.709 | INF | [LocalPlugin] Finished loading "NotificationMaster"
17:05:53.715 | VRB | Downloading icon for NotificationMaster from https://raw.githubusercontent.com/goatcorp/PluginDistD17/main/testing-live/NotificationMaster/images/icon.png
17:05:53.734 | INF | [NotificationMaster] Migrating conditions are not met, skipping...
17:05:53.740 | VRB | Plugin icon for NotificationMaster loaded
17:05:53.745 | DBG | [NotificationMaster] ThreadUpdateActivatedState started
17:05:53.746 | VRB | [NotificationMaster] ThreadUpdateActivatedState: application just got activated
17:05:53.748 | ERR | [NotificationMaster] Unable to cast object of type 'ChillFrames.ChillFramesPlugin' to type 'Dalamud.Plugin.IDalamudPlugin'.
at ECommons.Reflection.DalamudReflector.TryGetLocalPlugin(IDalamudPlugin instance, Object& localPlugin, AssemblyLoadContext& context, Type& type)
17:05:53.749 | WRN | [NotificationMaster] Could not find LocalPlugin
17:05:53.760 | DBG | [NotificationMaster] FishBite: Found TugType address: 7FF632398770
17:05:53.761 | INF | [NotificationMaster] Enabling fishBite module
17:05:53.771 | DBG | [NotificationMaster] [EzIPC Subscriber] Attempting to assign IPC method to NotificationMaster.AutoDutyIsStopped with wrapper None
17:05:53.785 | VRB | ["DataShare"] Created new data for [ECommonsPatreonBannerRandomColor] for creator DataCachePluginId { InternalName = NotificationMaster, EffectiveWorkingId = a9d1e9b4-b481-4c33-91c5-39384f2681ad }.
17:05:55.657 | VRB | [NotificationMaster] ThreadUpdateActivatedState: application just got deactivated
17:05:58.770 | VRB | [NotificationMaster] ThreadUpdateActivatedState: application just got activated
17:06:01.214 | INF | [NotificationMaster] Starting audio player thread
17:06:01.216 | INF | [NotificationMaster] Audio player thread begins
17:06:01.217 | DBG | [NotificationMaster] Beginning playing C:\Users\REDACTED\AppData\Roaming\XIVLauncher\pluginConfigs\NotificationMaster\Sounds\Info.wav
17:06:01.217 | ERR | [NotificationMaster] The given key 'NAudio' was not present in the dictionary.
at NotificationMaster.AudioPlayer.<BeginThread>b__5_0() in /work/repo/NotificationMaster/Audio/AudioPlayer.cs:line 67
17:06:01.217 | DBG | [NotificationMaster] Stopping playing C:\Users\REDACTED\AppData\Roaming\XIVLauncher\pluginConfigs\NotificationMaster\Sounds\Info.wav
Similar to #22 - Someone asked me for help about this issue at random and I couldn't replicate it until I wiped both the pluginconfig and pluginsinstalled NotificationMaster folders, essentially removing all configs and installed plugin files ("right click -> Reset plugin data and reload" is not enough, you mut delete the actual plugin from the InstalledPlugins folder).
I restarted my game after and installed NM fresh, and got the NAudio error. It looks like it's failing to load the embedded NAudio DLL on the first run after being downloaded.
Disabling and re-enabling the plugin doesn't fix it, a game restart fixes it from then on. I didn't modify anything in the plugin aside from enabling fish tracking and sounds for fish tracking, then hitting test.
I think it's trying to use reflection to see all the embedded resources in every plugin, as opposed to just yours - Then it hits something it can't parse (even if I disable ChillFrames, the plugin in this example, it fails on other ones) and fails, so the NAudio library doesn't get loaded in the AudioPlayer.cs