Jump to content

Custom items wont work to add as BuyOffer.

Pending 2.0.8

Theswingingturtle
Theswingingturtle

Posted

Failed to call hook 'ShoppyStockConsoleCommand' on plugin 'ShoppyStock v2.0.8' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index)
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <f98723dd4586469db5213ec59da723ca>:0 
  at Oxide.Plugins.ShoppyStock.TryAddBuySellRequest (BasePlayer player) [0x0006c] in <b533801c82094c98a0ed8f4ccfa0a681>:0 
  at Oxide.Plugins.ShoppyStock.ShoppyStockConsoleCommand (ConsoleSystem+Arg arg) [0x010d0] in <b533801c82094c98a0ed8f4ccfa0a681>:0 
  at Oxide.Plugins.ShoppyStock.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x04b89] in <b533801c82094c98a0ed8f4ccfa0a681>: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 <112d89ea5d3348c8b949af0ab1a866d2>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <112d89ea5d3348c8b949af0ab1a866d2>:0 

Not sure if it is fixable. Player are happy with buying from sellers, but would be cool if this was fixable aswell 🙂

ThePitereq

Posted

Hey, can you provide your main config and your stock config from data/ShoppyStock/Stockmarkets/Configs/<stockName>.json?
This problem appears when exactly? When you click the button when each field is set up and ready to post new buy offer?

Theswingingturtle

Posted

Yes, when they click on the send button to make buy offer avilable. Instead it turns off the buy totally for both custom and normal items.  Custom items are made with CustomItemDefinitions and CustomizableWeapons and CustomizableProtection. Both create new shortnames that automatically registers to shop, but only works as sell but not buy offer. I have not touched the stock config for this but might be something with main config, idk..
image.png.0fbec38c5a9c8aa210ee34539aded3b8.png

ShoppyStock.json money (1).json

Theswingingturtle

Posted

1 hour ago, Theswingingturtle said:

Yes, when they click on the send button to make buy offer avilable. Instead it turns off the buy totally for both custom and normal items.  Custom items are made with CustomItemDefinitions and CustomizableWeapons and CustomizableProtection. Both create new shortnames that automatically registers to shop, but only works as sell but not buy offer. I have not touched the stock config for this but might be something with main config, idk..
image.png.0fbec38c5a9c8aa210ee34539aded3b8.png

ShoppyStock.json 27.44 kB · 0 downloads money (1).json 3 kB · 0 downloads

I was wrong. People can't sell to buyoffer with custom item and that's where I think the error message comes from. You are able to create buy offer of custom item, but not sell it to buyer. When you click - or +, it just keeps saying 0.

[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock openBuyOffers
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock goBack
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: close
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock chat command: s 
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock listing scrapshot 0
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer new
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer details 0
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer details 0
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer details 0
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer increase
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock goBack
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: close

[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock chat command: s 
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock listing scrapshot 0
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer increase
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer details 0
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer details 0
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer increase
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock buySellOffer increase
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: stock goBack
[ShoppyStock] Player Hema [76561198025175793] has ran ShoppyStock console command with args: close

I told one of my players to sell to my buy offer, and its just kept being 0 when he clicked the + or tried to type in number.

2m

Downloads

Total number of downloads.

9.3k

Customers

Total customers served.

135.4k

Files Sold

Total number of files sold.

2.8m

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.