Jump to content

OnServerSave IndexOutOfRange

Pending 2.10.2

monsterqueen
monsterqueen

Posted

After deleting the Staticlootables_data file like instructed in discussion, i am still getting this error. 

Failed to call hook 'OnServerSave' on plugin 'StaticLootables v2.10.2' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at ProtoBuf.ItemContainer.Serialize (BufferStream stream, ProtoBuf.ItemContainer instance) [0x00016] in <698281a7d4534a2b9ff00ecced87ac33>:0 
  at Oxide.Plugins.StaticLootables.SaveContainer () [0x0003a] in <d9581d0196d940f68faa7ec634a0cffe>:0 
  at Oxide.Plugins.StaticLootables.OnServerSave () [0x00000] in <d9581d0196d940f68faa7ec634a0cffe>:0 
  at Oxide.Plugins.StaticLootables.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002c1] in <d9581d0196d940f68faa7ec634a0cffe>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0

monsterqueen

Posted (edited)

Seems like theres no defensive check for when your populating loot to a container that you aren't trying to add more than the contain is set for in the config. A dev of mine has applied the fix to our copy.

Edited by monsterqueen
1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.5k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.