Jump to content

Transfer - KeyNotFoundException / FormatException

Fixed 1.0.2 1.0.4

Annunaki
Annunaki

Posted (edited)

Hey man,

I have 2 oddities here for you KeyNotFoundException returned and a new one FormatException not exactly sure what the player inputted as is offline right now.

 

Failed to call hook 'TransferInputCmd' on plugin 'Wallet v1.0.2' (FormatException: Input string was not in a correct format.)
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.Number.ParseDouble (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x0007d] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at System.Double.Parse (System.String s) [0x0001a] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at Oxide.Plugins.Wallet.TransferInputCmd (ConsoleSystem+Arg arg) [0x00086] in <327408a12cda4c329752661a19c7f3b7>:0 
  at Oxide.Plugins.Wallet.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006be] in <327408a12cda4c329752661a19c7f3b7>: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 <d59b507fd76240e5b62228d0eae39b73>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d59b507fd76240e5b62228d0eae39b73>:0 
Failed to call hook 'CommandTransfer' on plugin 'Wallet v1.0.2' (KeyNotFoundException: The given key 'playername[xxxxxxxxxxxxxxxx]' was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0 
  at Oxide.Plugins.Wallet.TransferFunction (BasePlayer player) [0x00058] in <327408a12cda4c329752661a19c7f3b7>:0 
  at Oxide.Plugins.Wallet.CommandTransfer (ConsoleSystem+Arg arg) [0x00023] in <327408a12cda4c329752661a19c7f3b7>:0 
  at Oxide.Plugins.Wallet.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x008a6] in <327408a12cda4c329752661a19c7f3b7>: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 <d59b507fd76240e5b62228d0eae39b73>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d59b507fd76240e5b62228d0eae39b73>:0 

 

Edited by Annunaki
Updated Title
Chris Dg.

Posted

Hi , Thank You I may have an idea , I am going to look into it . It shouldn't be a problem that client would see, I think I forgot to put exceptions when player doesn't fill or fill incorrect values in transfer fields, such as if he puts letters into field which asks for number as a amount. 

That exception should be a default , so fault on my site , sorry. Thank You for letting me know I will update the file .

  • Like 1
Chris Dg.

Posted

Hello , 

the problems were fixed , it is not going to send an error messages if players fill wrong details , the transaction is just not going to happen. Only error message I couldn't fix so far is the message from Economics plugin when it can't find an player to deposit the amount. 

But I will try to fix it too , just wanted to have it working for You without any extra error messages so far .

Thank You.

Chris Dg.

Posted

The last one also fixed in 1.0.4 , hope everything will work fine for You, in any case let me know , and I will implement new functions in newer update soon based on your review. 

Thank You.

Chris Dg.

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.0.4

1.9m

Downloads

Total number of downloads.

9k

Customers

Total customers served.

131.5k

Files Sold

Total number of files sold.

2.7m

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.