Not workingFixed

It doesn't work anymore with the latest update.

(14:48:16) | Failed to call hook 'AttachCarSirens' on plugin 'Sirens v1.1.1' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.Sirens+SirenController.get_EntityPrefabs () [0x00012] in <85a97f98ae304fe49e124bdefe082a98>:0

at Oxide.Plugins.Sirens.DetachCarSirens (ModularCar aCar) [0x00024] in <85a97f98ae304fe49e124bdefe082a98>:0

at Oxide.Plugins.Sirens.AttachCarSirens (ModularCar aCar, Oxide.Plugins.Sirens+Siren aSiren, BasePlayer aPlayer) [0x00000] in <85a97f98ae304fe49e124bdefe082a98>:0

at Oxide.Plugins.Sirens.AttachCarSirens (BasePlayer aPlayer, System.String aCommand, System.String[] someArgs) [0x00075] in <85a97f98ae304fe49e124bdefe082a98>:0

at Oxide.Plugins.Sirens.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001c8] in <85a97f98ae304fe49e124bdefe082a98>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

Hi there,

Thank you for using my plugin and the report.
Hmm unsure how this error happens. Do you have some custom sirens and can you share your config file with me?

Will definetly look into this.
Best regards
ZockiRR

No custom sirens, It was a fresh install so default config. I rolled back to previous version and it works with that one.

Okay. I tried to replicate that error on my side but was unable to do so. I will add some more validation in a future update to prevent such errors in general, but this doesn't change the fact that it shouldn't happen in your case.

For now I can just ask you if your install really was a fresh one and you double checked that. Maybe you could try to delete all Sirens relevant files which are "oxide/plugins/Sirens.cs", "oxide/config/Sirens.json" and eventually "oxide/data/Sirens.json" and see if it helps in any way. This really looks like the plugin is trying to load a siren config which is completely missing the "Modules" attribute for the siren it's trying to load.

Hi there,
I published an update (v1.2.0) for the plugin. I didn't find any further hints for the issue, but I fixed some general flaws and issues. Maybe this fixes the issue. Let me know if this is the case.

Best regards
ZockiRR

Locked automatically