NullReferenceException at OnItemRemovedFromContainer
Anytime I try to use the key binding option it never works...
Is there a way you could add a command to the plugin?

Also with the new items added in rust, I'm pretty sure these errors came along with them.
Failed to call hook 'OnItemRemovedFromContainer' on plugin 'AbsolutMarket v1.8.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AbsolutMarket.OnItemRemovedFromContainer (ItemContainer cont, Item item) [0x00000] in <8126d942151b4bb38910874874e77125>:0 
  at Oxide.Plugins.AbsolutMarket.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003dc] in <8126d942151b4bb38910874874e77125>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
(13:26:01) | Failed to call hook 'OnItemRemovedFromContainer' on plugin 'AbsolutMarket v1.8.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AbsolutMarket.OnItemRemovedFromContainer (ItemContainer cont, Item item) [0x00000] in <8126d942151b4bb38910874874e77125>:0 
  at Oxide.Plugins.AbsolutMarket.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003dc] in <8126d942151b4bb38910874874e77125>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​

I also get this one everytime the plugin loads>

 Image failed to download! Error: Cannot resolve destination host - Image Name: first_2118 - Image URL: http://cdn.mysitemyway.com/etc-mysitemyway/icons/legacy-previews/icons/simple-black-square-icons-arrows/126517-simple-black-square-icon-arrows-double-arrowhead-left.png
(13:29:56) | Image failed to download! Error: Cannot resolve destination host - Image Name: last_2118 - Image URL: http://cdn.mysitemyway.com/etc-mysitemyway/icons/legacy-previews/icons/matte-white-square-icons-arrows/124577-matte-white-square-icon-arrows-double-arrowhead-right.png

The only thing i changed in the json file was to this.  am i setting the keybind wrong? if i am how do i do it right

"Economics": true,
"ForceSimpleUI": false,
"InfoInterval": 15,
"MarketMenuKeyBinding": "y",
"ServerRewards": false,
"UseUniqueNames": true


even resetting to default config it spams

I have fixed this mod, and I will upload the working version soon.

However, there are some errors that I don't understand. They don't seem to have any effect, since everything works.
If anyone can tell me how to fix those errors, it will be working cool. I still need to upload all the images to another host than my own too. (I used wayback machine to grab all the images he used)

(22:08:00) | Failed to call hook 'OnItemRemovedFromContainer' on plugin 'AbsolutMarket v1.8.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AbsolutMarket.OnItemRemovedFromContainer (ItemContainer cont, Item item) [0x00000] in <0b27f1d79c5e47e3888c622e2d291bcd>:0 
  at Oxide.Plugins.AbsolutMarket.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003dc] in <0b27f1d79c5e47e3888c622e2d291bcd>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0


Merged post

I have fixed the NullReferenceExecption.
It's because the hook was being called before the plugin was initialized.

So the "cont" param was null. hence the problems. :)

Also the Economics "Deposit and Withdraw", were set to int. Although on the economics page it was supposed to be double. So you wouldn't withdraw/deposit money when buying/selling stuff.



Merged post

There are still a lot of kinks that needs to be fixed beside this.
Like people have to be online for it to work.

For some reason

                    if (UIInfo.ContainsKey(seller))
                    {
                        sellerbox = UIInfo[seller].box;
                        //GetSendMSG(player, "Contains Key");
                    }

returns nil if the seller is not online. I will try figure out why this is happening.
If someone else has any ideas, please let me know.

To those who have posted about setting a keybind in the plugin. This is blocked by rust. Players have to set their own.

@YoShIWoZ I look forward to your release. I miss this one. I wish I had some input to help with your roadblock. But best I can do with a plugin is translate or change a command lol.

hope you get this working :)
5d0f0d96cf33a.png dabuhho
hope you get this working :)

It's already working perfectly.
However, unfortunately I am not allowed to share it, unless I completely rewrite it, which I don't have the time for. Sorry. :)

YoShIWoZ

It's already working perfectly.
However, unfortunately I am not allowed to share it, unless I completely rewrite it, which I don't have the time for. Sorry. :)

That was one of two options; you were also given the option to contribute your own plugin first before asking to maintain someone else's work. I mentioned that you could submit it for review an comparison as well.

would be nice if the plugin would get an update again ^^