Jump to content

Console Error - possible Economics bug

Closed 1.8.3 1.9.1

Somescrub
Somescrub

Posted

First time I saw the below console errors. At the same time a player's economics balance exploded to something like a quintillion dollars - not sure if it is related or not (first time that has happened as well).

 

13:54 [Error] Failed to run a 1.00 timer in 'BagOfHolding v1.8.3' (OverflowException: Value was either too large or too small for an Int32.)
  at System.Convert.ToInt32 (System.Double value) [0x0007a] in <47fc8c70fa834cbf8141d7c1a7589125>:0
  at System.Double.System.IConvertible.ToInt32 (System.IFormatProvider provider) [0x00000] in <47fc8c70fa834cbf8141d7c1a7589125>:0
  at System.Convert.ToInt32 (System.Object value) [0x00003] in <47fc8c70fa834cbf8141d7c1a7589125>:0
  at Oxide.Plugins.BagOfHolding+EconomicsPaymentProvider.GetBalance (BasePlayer player) [0x00033] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+ContainerUIRenderer.AddUpgradeInfo (Oxide.Plugins.BagOfHolding plugin, Oxide.Plugins.BagOfHolding+UIBuilder builder, BasePlayer player, Oxide.Plugins.BagOfHolding+BagInfo bagInfo) [0x00581] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+ContainerUIRenderer.RenderContainerUI (Oxide.Plugins.BagOfHolding plugin, BasePlayer player, Oxide.Plugins.BagOfHolding+BagInfo bagInfo, System.Boolean showUpgradeInfo) [0x002a5] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+BagInfo.CreateUI (Oxide.Plugins.BagOfHolding plugin, BasePlayer player) [0x0001c] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+BagInfo.RefreshUI (Oxide.Plugins.BagOfHolding plugin) [0x0001d] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+ContainerSupervisor.RefreshBagUIs () [0x0001b] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+UIUpdateManager.ProcessQueue () [0x0001c] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <18d4f19bbc844191b11ed9e69284d09b>:0
13:54 [Error] Failed to call hook 'CommandUIUpgrade' on plugin 'BagOfHolding v1.8.3' (OverflowException: Value was either too large or too small for an Int32.)
  at System.Convert.ToInt32 (System.Double value) [0x0007a] in <47fc8c70fa834cbf8141d7c1a7589125>:0
  at System.Double.System.IConvertible.ToInt32 (System.IFormatProvider provider) [0x00000] in <47fc8c70fa834cbf8141d7c1a7589125>:0
  at System.Convert.ToInt32 (System.Object value) [0x00003] in <47fc8c70fa834cbf8141d7c1a7589125>:0
  at Oxide.Plugins.BagOfHolding+EconomicsPaymentProvider.GetBalance (BasePlayer player) [0x00033] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+ContainerUIRenderer.AddUpgradeInfo (Oxide.Plugins.BagOfHolding plugin, Oxide.Plugins.BagOfHolding+UIBuilder builder, BasePlayer player, Oxide.Plugins.BagOfHolding+BagInfo bagInfo) [0x00581] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+ContainerUIRenderer.RenderContainerUI (Oxide.Plugins.BagOfHolding plugin, BasePlayer player, Oxide.Plugins.BagOfHolding+BagInfo bagInfo, System.Boolean showUpgradeInfo) [0x002a5] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+BagInfo.CreateUI (Oxide.Plugins.BagOfHolding plugin, BasePlayer player) [0x0001c] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding+BagInfo.ToggleUpgradeViewer (Oxide.Plugins.BagOfHolding plugin, BasePlayer player) [0x00031] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding.CommandUIUpgrade (Oxide.Core.Libraries.Covalence.IPlayer player, System.String cmd, System.String[] args) [0x000e6] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.BagOfHolding.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x018dd] in <2d911834eaa048dc9f9cd43a334ea312>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0

BlackLightning

Posted

This error means the plugin failed to display the player's Economics balance on the bag upgrade screen because it was too large for a 32-bit integer to hold. I can fix this, but it wouldn't be the cause of their balance being so high.

When a number jumps really high, one possibility is that it under flowed and wrapped around to the max value. I suggest you check any config that subtracts Economics balance to see if you might be withdrawing a negative amount somewhere.

Somescrub

Posted

I found the source of the economics issue - was not related to this plugin. I think what you said about the integer value makes sense though. Thank you for responding quickly!

BlackLightning

Posted

Great! I'm glad you resolved the issue. I'll go ahead and close this since it would be unexpected to encounter this issue under normal conditions, but I'll aim to resolve it in the next version nevertheless.

BlackLightning

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.