Oxide.Ext.RustEdit icon indicating copy to clipboard operation
Oxide.Ext.RustEdit copied to clipboard

Custom Vending Machines Broken?

Open yetzt opened this issue 3 years ago • 0 comments

Custom npc vending machines appear to be broken. Placed vending machines are empty and when using the rustedit.vending.restockall command, this happens:

Error: rustedit.vending.restockall - Object reference not set to an instance of an object (Assembly-CSharp)

and logfile says:

[RustEdit] - Processing 5 VendingMachines from map file
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

NullReferenceException: Object reference not set to an instance of an object
  at NPCVendingMachine.InstallFromVendingOrders () [0x00043] in <06c3ed458ed74ab184c93743ef4fd28a>:0
  at Oxide.Ext.RustEdit.VendingCore.​‍‌‌‎‍‌‫‍‍ (Oxide.Ext.RustEdit.VendingCore+‬‍‌‍‌‌‌‬‍ ) [0x00320] in <36d7c7a6c5d24b30a76cc2ba8cd42389>:0
  at Oxide.Ext.RustEdit.VendingCore.‍‌ () [0x000ae] in <36d7c7a6c5d24b30a76cc2ba8cd42389>:0
  at Oxide.Ext.RustEdit.VendingCore.ccmdRestockAll (ConsoleSystem+Arg arg) [0x00032] in <36d7c7a6c5d24b30a76cc2ba8cd42389>:0
  at Oxide.Game.Rust.Libraries.Command+ConsoleCommand.HandleCommand (ConsoleSystem+Arg arg) [0x00016] in <4be622ffa10e4b2e97ee73df7ae39dca>:0
  at ConsoleSystem.Internal (ConsoleSystem+Arg arg) [0x0005b] in <6c7511747dad4c81a63ad4a79a9aa84e>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
ConsoleSystem:Internal(Arg)
ConsoleSystem:Run(Option, String, Object[])
ConsoleNetwork:OnClientCommand(Message)
ServerMgr:OnNetworkMessage(Message)
Facepunch.Network.Raknet.Server:ConnectedPacket(Connection)
Facepunch.Network.Raknet.Server:Cycle()
ServerMgr:Update()

Logs get spammed with

NullReferenceException: Object reference not set to an instance of an object
  at NPCVendingMachine.Refill () [0x00074] in <06c3ed458ed74ab184c93743ef4fd28a>:0
  at InvokeHandlerBase`1[T].DoTick () [0x000be] in <52d6b63cedd3407db7b24ee44a109fd5>:0
  at InvokeHandlerBase`1[T].LateUpdate () [0x0000c] in <52d6b63cedd3407db7b24ee44a109fd5>:0

(Filename: <06c3ed458ed74ab184c93743ef4fd28a> Line: 0)

ent.killin the vending machines shuts up the log.

yetzt avatar Oct 24 '22 19:10 yetzt