NullReferenceException at AddVendingOrdersFixed
Error] Failed to call hook 'OnServerInitialized' on plugin 'CompoundOptions v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CompoundOptions.AddVendingOrders (NPCVendingMachine vending, System.Boolean def) [0x00056] in <ce60a0f0b2ff48fb8daa65115fa202fc>:0
  at Oxide.Plugins.CompoundOptions.OnServerInitialized () [0x0003a] in <ce60a0f0b2ff48fb8daa65115fa202fc>:0
  at Oxide.Plugins.CompoundOptions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00275] in <ce60a0f0b2ff48fb8daa65115fa202fc>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
+1 I have same Error
+1 I have same Error
 
Looking into it trying to figure out whats causing the error as this has only happened since the update.
The problem comes from the addition of "Fishing Villages".

If I remove the "The problem comes from the addition of" Fishing Villages "from my map, I don't have a problem with the plugin.
This issue seems to only be related to Custom Maps, all Procedural Maps the plugin is working as expected. However any Custom Maps with more vending machines seem to not like it.
Yes I have a custom map, but no distributors added. There are only original distributors
Hi there plugin is still working fine but for some reason everytime I reload it this gets spammed.
Failed to call hook 'OnServerInitialized' on plugin 'CompoundOptions v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CompoundOptions.AddVendingOrders (NPCVendingMachine vending, System.Boolean def) [0x00056] in <54fc797a79ae42ac991613f9aa588f2b>:0
at Oxide.Plugins.CompoundOptions.OnServerInitialized () [0x0003a] in <54fc797a79ae42ac991613f9aa588f2b>:0
at Oxide.Plugins.CompoundOptions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00275] in <54fc797a79ae42ac991613f9aa588f2b>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Loaded plugin Compound Options v1.1.2 by FastBurst​
Failed to call hook 'OnServerInitialized' on plugin 'CompoundOptions v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CompoundOptions.AddVendingOrders (NPCVendingMachine vending, System.Boolean def) [0x00056] in <b2fb7044f9214f2c8032e7c224563011>:0
at Oxide.Plugins.CompoundOptions.OnServerInitialized () [0x0003a] in <b2fb7044f9214f2c8032e7c224563011>:0
at Oxide.Plugins.CompoundOptions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00275] in <b2fb7044f9214f2c8032e7c224563011>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
I am using Procedural map the plugin still seems to work but not all vending machine seems I can edit such as the one called general or another one or 2 in there

I can use all the vending machines on a Prodecural Map just fine, keep in mind the new fishing monuments only have 1 type available called BoatVender which all 3 use, not sure why they did that. Thats where you can get the diving equipment from them.

As for Custom Maps, this is a new issue as this has worked for them and now does not. Suspect @k1lly0u may need to look in RustEdit to see if something changed on the NPCVendingMachines on these new ones. Not sure how much they would very being they literally work on Procedural Maps but not on Custom Maps as of the Forced Updates now.

im using a proc map
im usen proc maps and it dont work
Okay, I explain 1-2 things:

- On my main server, I have a custom map, and it works nikel. On this map, I did not put the "Village fishing".
- On my DEV server, I use the same custom map, but I put the "Village Fishing", and there, its not working.

So the problem comes from the "fishing village".

WARNING:
For some, I specify that the plugin does not work when starting the server, and sometimes you have to restart the plugin with this command: oxide.reload CompoundOption.
For me, the plugin does not launch when the server is started, so I use this command with "TimedExecute".

But hey, to come back to the problem, the error message you have in your console is due to the addition of the "Village Fishing", whether on custom map and procedural also apparently.

Updated for Sept 3rd Rust release.

This was a huge pain to get working and troubleshooting on both Procedural & Custom Maps. Problem came down to the new fishing monuments using the same NPCVendingMachine Profile. 

SO in order to get this to work, I had to DISALLOW the Fishing Monuments vending to be changed. Now it works as before. I will contiue to try and find a working solution for the new fishing monuments. I have notified FacePunch Devs (hopefully the request does not fall on deaf ears).

Locked automatically