Jump to content

Errors when all items in ignore list of category

Work in Progress 1.0.3 Next Version

VENIQQ
VENIQQ

Posted

Plugin throws error when you add all category items to the "ignored item list". E.g. I removed all items from "Traps" category and expected it to hide the "Traps category" when adding new product to the market

However instead "Traps" category is visible and on click throws an error in console.

* As mentioned in other ticket it would be great to have a possibility to remove certain item categories from being selected or traded from Market Station

* It would be great if we could remove whole categories instead adding each and every item shortnames

This is the error from console:
 

07/17 01:42:19 | Failed to call hook 'CmdConsolePicker' on plugin 'MarketStation v1.0.3' (KeyNotFoundException: The given key 'Traps' was not present in the dictionary.)
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e3aa8db986d7457ca73f10110f1283f5>:0
at Oxide.Plugins.MarketStation.ShowItems (BasePlayer player, System.String category, System.String action) [0x003e0] in <494c376729cd4095b0fb748687f17dcc>:0
at Oxide.Plugins.MarketStation.CmdConsolePicker (ConsoleSystem+Arg arg) [0x000f3] in <494c376729cd4095b0fb748687f17dcc>:0
at Oxide.Plugins.MarketStation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0059d] in <494c376729cd4095b0fb748687f17dcc>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

 

Here is my config:

{
  "Settings of the category items.": {
    "All_Products": [
      "Custom",
      "Resources"
    ]
  },
  "The list of ignored items": [
    "Construction",
    "Items",
    "Weapon",
    "Tool",
    "Ammunition",
    "Component",
    "Attire",
    "Traps",
    "Medical",
    "Food",
    "Misc",
    "Electrical",
    "Fun",
    "hq.metal.ore",
    "sulfur.ore",
    "metal.ore",
    "wood",
    "trap.landmine",
    "guntrap",
    "trap.bear",
    "fishtrap.small",
    "electric.teslacoil",
    "samsite",
    "flameturret",
    "autoturret",
    "spikes.floor"
  ],
  "Items for a custom category.": {
    "paper": [
      3274813004,
      3274812859,
      3275439880,
      3275440082,
      3275439568,
      3275439689,
      3274813131,
      3222718274,
      3222717727,
      3222717399,
      3222717132,
      3152671158
    ],
    "blood": [
      3152984497
    ],
    "glue": [
      3197986663
    ],
    "coal": [
      3152212223
    ],
    "battery.small": [
      3152211797
    ],
    "map": [
      3152671921
    ],
    "researchpaper": [
      3152672115
    ],
    "ducttape": [
      3152670900
    ],
    "geiger.counter": [
      3152671488
    ],
    "electric.simplelight": [
      3152213561
    ],
    "bleach": [
      3152213075
    ],
    "bottle.vodka": [
      3152213300
    ]
  }
}

 

CASHR

Posted

Yes, I will add ignoring categories to the config

CASHR

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

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.