Jump to content

error?

Can't Reproduce 1.0.1

NEXT
NEXT

Posted

Failed to call hook 'OpenBuyUI' on plugin 'TradeMachine v1.0.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TradeMachine+<>c__DisplayClass90_1.b__3 (Oxide.Plugins.TradeMachine+BlackList blacklist) [0x00006] in <683e24ab3791455da7105ef86a9b177f>:0 at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002c] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at Oxide.Plugins.TradeMachine+<>c__DisplayClass90_0.b__1 (Oxide.Plugins.TradeMachine+TradeItem item) [0x0001d] in <683e24ab3791455da7105ef86a9b177f>:0 at System.Linq.Utilities+<>c__DisplayClass1_0`1[TSource].b__0 (TSource x) [0x0000e] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.Enumerable+WhereListIterator`1[TSource].ToArray () [0x00023] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.OrderedEnumerable`1[TElement].ToList () [0x00000] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at Oxide.Plugins.TradeMachine.BuyItemsUI (BasePlayer player, System.String category) [0x00710] in <683e24ab3791455da7105ef86a9b177f>:0 at Oxide.Plugins.TradeMachine.OpenBuyUI (ConsoleSystem+Arg arg) [0x00075] in <683e24ab3791455da7105ef86a9b177f>:0 at Oxide.Plugins.TradeMachine.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x014e1] in <683e24ab3791455da7105ef86a9b177f>: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 :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

copcopekcro

Posted (edited)

Hey...
You cant just send error , you need to tell when you got that ? did you get it before ? 
Was you adding items in config in your blacklist items ?
On first i think your config is corupted , yours :
"BlacklistedItems": [
    {
      "ItemId": 550753330,
      "SkinId": 0
    }
  ],
Send me your config 

Edited by copcopekcro
NEXT

Posted

my config

  ],
  "CustomItems": [
    {
      "ItemId": -1707425764,
      "SkinId": 3122790562,
      "DisplayName": ""
    }
  ],
  "BlacklistedItems": [
    {
      "ItemId": 550753330,
      "SkinId": 0
    }
  ],
  "Version": {
    "Major": 1,
    "Minor": 0,
    "Patch": 1
  }
}

I don't know what happened, but it showed up in the Rcon logs.

copcopekcro

Posted (edited)

OK ..so you didnt change your config ..
You didnt change anything in code of plugin? 
That OpenBuyUI shoud open buy panel list ... 
Just try to press that button again ,and say do you get again that error 
Screenshot_4.png.91936777a618694458e7c57c1c2e3a3a.png

Edited by copcopekcro
NEXT

Posted

I haven't changed any plugins either.


Every time I press the Buy button, the following error message appears:


Failed to call hook 'OpenBuyUI' on plugin 'TradeMachine v1.0.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TradeMachine+<>c__DisplayClass90_1.b__3 (Oxide.Plugins.TradeMachine+BlackList blacklist) [0x00006] in <683e24ab3791455da7105ef86a9b177f>:0 at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002c] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at Oxide.Plugins.TradeMachine+<>c__DisplayClass90_0.b__1 (Oxide.Plugins.TradeMachine+TradeItem item) [0x0001d] in <683e24ab3791455da7105ef86a9b177f>:0 at System.Linq.Utilities+<>c__DisplayClass1_0`1[TSource].b__0 (TSource x) [0x0000e] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.Enumerable+WhereListIterator`1[TSource].ToArray () [0x00023] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.OrderedEnumerable`1[TElement].ToList () [0x00000] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 at Oxide.Plugins.TradeMachine.BuyItemsUI (BasePlayer player, System.String category) [0x00710] in <683e24ab3791455da7105ef86a9b177f>:0 at Oxide.Plugins.TradeMachine.OpenBuyUI (ConsoleSystem+Arg arg) [0x00075] in <683e24ab3791455da7105ef86a9b177f>:0 at Oxide.Plugins.TradeMachine.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x014e1] in <683e24ab3791455da7105ef86a9b177f>: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 :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

copcopekcro

Posted

Oke... 
When you press that buy button does it open buy panel ?
Did you try to reload plugin ?

NEXT

Posted

The purchase panel does not open.
Reloading the plugin returned it to normal.

copcopekcro

Posted (edited)

ok ...
I tryed to reproduce that error now on many ways ..didnt get it at all ..
So not sure why did you get it ...
So after reload all working fine ? 

Edited by copcopekcro
NEXT

Posted

Everything works fine.
I'm trying to reproduce it here but it doesn't work.

copcopekcro

Posted

OK Great then !
Iam felling like config file didnt load up correcty , maybe of unloading reloading something , wiping , restarting ... Dont know ..

1.8m

Downloads

Total number of downloads.

8.2k

Customers

Total customers served.

123.7k

Files Sold

Total number of files sold.

2.6m

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.