Jump to content

Shop Currency & Limits not wiped

Closed 1.1.1 1.1.4

HellHunter
HellHunter

Posted

Hi admin, noticed that for the shop section, my currency did not reset and the wipe buy limit as well did not reset after a server wipe.

 

I had attached the section of the shop's config which was affected.

 

"Lab": {
      "Required Permission": "shoppystock.shop.lab",
      "Icon URL": "",
      "Other Currency Plugin": "",
      "Currency Symbol": "{0} pcs",
      "Can Transfer": false,
      "Can Deposit": true,
      "Count Deposit Item As Currency From Inventory": false,
      "Format Currency Amount": true,
      "Take X Percentage Of Player's Balance On Map Wipe (0 to disable)": 0,
      "Config Generation - Generate With All Default Items": false,
      "Shop Discount Permission (percentage)": {},
      "Deposit Item": {
        "Allow Withdraw": false,
        "Shortname": "researchpaper",
        "Skin": 0,
        "Icon URL (if skin not 0)": "",
        "Value": 1,
        "Display Name": "Research Paper"
      },
      "NPC List (and their categories)": {},
      "Stock Market Configuration": {
        "Enabled": false,
        "Wipe Buy Listings Data On Wipe": true,
        "Wipe Sell Listings Data On Wipe": true,
        "Wipe Bank Data On Wipe": true,
        "Enable All Items Category": true,
        "Enabled Bank": false,
        "Bank Permission": "shoppystock.bank.lab",
        "Enable Favourite Tab": true,
        "Favourite Permission": "",
        "Max Price Per Item (0, to disable)": 0,
        "Server Offer Price Update Interval (in minutes)": 30,
        "Web Price API - Enabled": false,
        "Web Price API - Link": "",
        "Default Selected Category": "",
        "Overwrite Category Order": false,
        "Category Priority Order": [],
        "NPC List": [],
        "Always Run Timer On Hour Minute": [],
        "Blacklisted Category Item Shortnames": [],
        "Multiplier Events": {}
      },
      "Wipe Currency On Wipe": true
    },

 

ThePitereq

Posted

Hey, hmm. Do you get any error on data cleanup after an wipe? I've been testing this feature on this wipe and everything worked smoothly.

HellHunter

Posted

Where can I see this error if it comes? I dont notice anything unusual for the time being and I just wipped the server and the currency data file still not wiped also

 

HellHunter

Posted

I looked through the console log when I wipe the server only managed to find this one error. My VIP shop also supposed to wipe currency on wipes.

Failed to call hook 'OnNewSave' on plugin 'ShoppyStock v1.1.1' (KeyNotFoundException: The given key 'VIPToken' was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <47fc8c70fa834cbf8141d7c1a7589125>:0 
  at Oxide.Plugins.ShoppyStock.SaveData (System.Boolean shopSave, System.String onlyOneSave) [0x000b5] in <31721bbf58c548199c65fa2d2705c359>:0 
  at Oxide.Plugins.ShoppyStock.OnNewSave () [0x00298] in <31721bbf58c548199c65fa2d2705c359>:0 
  at Oxide.Plugins.ShoppyStock.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <31721bbf58c548199c65fa2d2705c359>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0 
Calling 'OnNewSave' on 'ShoppyStock v1.1.1' took 552ms [GARBAGE COLLECT]

ThePitereq

Posted

I think i see the issue. Have you removed/changed the VIPToken name from/in config?

If it's that it will be fixed in next version.

HellHunter

Posted

I dont think I removed nor changed the name, I'll observe for my next wipe and let you know if the issue still happens thank you for the help.

 

HellHunter

Posted (edited)

@ThePitereqAdmin, noticed that once again my Shop currency which was supposed to wipe did not wipe.
2 shops which were supposed to reset are "Lab" & "VIPToken". Lab did not reset on wipe. VIPToken was empty to start with hence I cant tell if it reset.

Same error as before noticed.

image.png.afd99113c9d4d39783355c7801e03a74.png

Edited by HellHunter
ThePitereq

Posted

Okay found the issue now. Will push an update with fix in few days, if you want it faster, please message me on Discord.

  • Like 1
ThePitereq

Posted

Hey! I think it was fixed previously, but there was still another error going on that should be fixed in recent version.

ThePitereq

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.1.4

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.