NullReferenceException
Failed to call hook 'OnServerInitialized' on plugin 'CompoundOptions v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
at NPCVendingMachine.InstallFromVendingOrders () [0x00043] in <97fbffe92d804b8ca64976ff5d40dec3>:0

at Oxide.Plugins.CompoundOptions.UpdateVending (NPCVendingMachine vending) [0x0005c] in <e65e238ba2ca41f6a961a3f99daff92d>:0

at Oxide.Plugins.CompoundOptions.OnServerInitialized () [0x00042] in <e65e238ba2ca41f6a961a3f99daff92d>:0

at Oxide.Plugins.CompoundOptions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00275] in <e65e238ba2ca41f6a961a3f99daff92d>:0

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

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

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

Same issue here

Same issue:

  • Modified data file for vending machines no longer modifies vending machine outputs.
  • NPCs still cannot be removed from either compound.

same here. also for some reason it ignores the "CompoundOptions_default.json" and now fishing villages are selling like 30 diving tanks for 35 scrap and other things are simular also never set them like that as well.

CompoundOptions_default.json

CompoundOptions.json

This is happening because the data files have the rising torpedo item id (-239306133) in vending machine orders, and that item was removed from the game. The plugin isn't safely handling the case that an item id is invalid.

For anyone experiencing this issue, remove any entries from the CompoundOptions.json data file that refer to the -239306133 item. Alternatively, you can back up your data file, delete it and reload the plugin to generate a new one, then add your custom orders back in.

e3cmR5rWXDkjGKq.jpg WhiteThunder

This is happening because the data files have the rising torpedo item id (-239306133) in vending machine orders, and that item was removed from the game. The plugin isn't safely handling the case that an item id is invalid.

For anyone experiencing this issue, remove any entries from the CompoundOptions.json data file that refer to the -239306133 item. Alternatively, you can back up your data file, delete it and reload the plugin to generate a new one, then add your custom orders back in.

yeap that worked! totally forgot that they were removed wish i thought of that earlier. also you will want to do it to CompoundOptions_default.json as it uses that when unloading the plugin and will get the issue if not on unload.