NullReferenceException at MaintainVanillaStackSizesError
@AnExiledGod I sadly still have some issues - the mod doesn't work for me and I get two errors during startup:

[Oxide] 21:52 [Info] [Stack Size Controller] Ensuring VanillaStackSize integrity.
[Oxide] 21:52 [Error] Failed to call hook 'OnTerrainInitialized' on plugin 'StackSizeController v3.1.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.StackSizeController.MaintainVanillaStackSizes (System.Boolean refreshDataFileOnly) [0x0011e] in <33d4f48ec23d4d5db8cb6f3a7fff5c29>:0
at Oxide.Plugins.StackSizeController.OnTerrainInitialized () [0x00011] in <33d4f48ec23d4d5db8cb6f3a7fff5c29>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001c0] in <33d4f48ec23d4d5db8cb6f3a7fff5c29>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
[Oxide] 21:56 [Error] Failed to call hook 'OnServerInitialized' on plugin 'StackSizeController v3.1.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.StackSizeController.MaintainVanillaStackSizes (System.Boolean refreshDataFileOnly) [0x0011e] in <33d4f48ec23d4d5db8cb6f3a7fff5c29>:0
at Oxide.Plugins.StackSizeController.OnServerInitialized () [0x0002a] in <33d4f48ec23d4d5db8cb6f3a7fff5c29>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00177] in <33d4f48ec23d4d5db8cb6f3a7fff5c29>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <3606d2af539c45e4b5c61658e6a8b307>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

Is the data file StackSizeController_vanilla-defaults.json present in the data folder, are there items listed inside? Just reload the plugin. If reload doesn't work, let me know the status of that data file.

0sg3JJPhBZa21Kx.jpg AnExiledGod

Is the data file StackSizeController_vanilla-defaults.json present in the data folder, are there items listed inside? Just reload the plugin. If reload doesn't work, let me know the status of that data file.

The file does exist, but nothing is listed inside (just {}). On reload I get the OnServerInitialized hook failed. Deleting the file and re-loading the mod creates a new empty file.

Fixed in latest release

13:41 [Error] Failed to call hook 'OnTerrainInitialized' on plugin 'StackSizeController v3.2.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.StackSizeController.MaintainVanillaStackSizes (System.Boolean refreshDataFile) [0x00090] in <1cf0dea90b324f1c9130ed1b8d1e6869>:0

  at Oxide.Plugins.StackSizeController.OnTerrainInitialized () [0x00011] in <1cf0dea90b324f1c9130ed1b8d1e6869>:0

  at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00104] in <1cf0dea90b324f1c9130ed1b8d1e6869>:0

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

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

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

Oxide.Rust Version: 2.0.4955
Protocol: 2293.205.1
Build Date: 04/01/2021 15:03:20
Unity Version: 2019.4.22f1
Changeset: 60267
Branch: release

update oxide

Failed to call hook 'OnTerrainInitialized' on plugin 'StackSizeController v3.2.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.StackSizeController.MaintainVanillaStackSizes (System.Boolean refreshDataFile) [0x00090] in <bba309321f814f68a2d09d982c0ba03f>:0
at Oxide.Plugins.StackSizeController.OnTerrainInitialized () [0x00011] in <bba309321f814f68a2d09d982c0ba03f>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00104] in <bba309321f814f68a2d09d982c0ba03f>: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 <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

Confirm broken after update

what versions you both on?

StackSizeController v3.2.2

oh nvm i was on the old fix last time the update broke stacksize

current update works

somebody found a fix for this ?

still broken. v3.2.2

Goldie

Confirm broken after update

Confirm mine is still working as it was before update, i am using the patch suggested in previous posts

Still running fine on v2.0.4