Jump to content

OnServerSave IndexOutOfRange

Fixed 2.10.2 2.10.3

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
  • Administrator
Raul-Sorin Sorban

Posted

Fixed! I apologize for the time it took.

  • Administrator
Raul-Sorin Sorban

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 2.10.3

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.9k
Customers served
Files Sold
156.6k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.