Jump to content

Plug In Keeps Re-writing the ImportedSkins.json back to default

Pending 2.9.97

alexm561
alexm561

Posted

Hello, I have this json with a ton of skins and when I place it in oxide/data/Skinner/ImportedSkins.json it gets re-written back to default when when loading or reloading the plugin. Please assist. I am new at this.

 

GodlyHydra

Posted

yeah I'm having the same issues 

chilakhsingh

Posted (edited)

Same issue here, but using a list of skin ID's as formatted on the main product page:

"Imported Skins List": {

"861142659": {},

"2617744110": {}

},

It keeps defaulting back I have tried fully deleting the whole plugin/config/data files and it still persists.

Edited by chilakhsingh
Added more info.
GodlyHydra

Posted

16 minutes ago, chilakhsingh said:

Same issue here, but using a list of skin ID's as formatted on the main product page:

"Imported Skins List": {

"861142659": {},

"2617744110": {}

},

It keeps defaulting back I have tried fully deleting the whole plugin/config/data files and it still persists.

I just downloaded the 2.9.98 removed my imported skins and put the file back reloaded the plugin and waited a few mins and they loaded i also changed two things in the config.

  • Like 1
chilakhsingh

Posted

9 minutes ago, GodlyHydra said:

I just downloaded the 2.9.98 removed my imported skins and put the file back reloaded the plugin and waited a few mins and they loaded i also changed two things in the config.

What 2 things did you change???

GodlyHydra

Posted (edited)

dev mode true
auto remove DLC and paid skins from imports false

just for testing and it seem to work but i don't know if allowed to this

 

sorry i didnt reply earlier was working on a different plugin

Edited by GodlyHydra
  • Like 1
  • Curator
Whispers88

Posted

10 hours ago, alexm561 said:

Hello, I have this json with a ton of skins and when I place it in oxide/data/Skinner/ImportedSkins.json it gets re-written back to default when when loading or reloading the plugin. Please assist. I am new at this.

 

Try unloading the plug-in before making changes to the data file

  • Like 1
WarisGG

Posted

Hello, this is an issue that needs to be resolved by the creator of the Workshop Custom Skins Pack for Skinner. I'll create a support ticket there. The problem is that the ImportedSkins.json file has different structures.

 

Old format:

"Imported Skins List": {
    "3531048812": {
      "itemShortname": "jacket",
      "itemDisplayname": "Whiteout Jacket V2"
    },
    "2582710266": {
      "itemShortname": "jacket",
      "itemDisplayname": "Forest Raiders Jacket"
    },
    "2865011686": {
      "itemShortname": "jacket",
      "itemDisplayname": "Desert Raiders | Jacket (Camo)"
    },
}

New format:

{
  "3531048812": {
    "itemShortname": "jacket",
    "itemDisplayname": "Whiteout Jacket V2",
    "permission": "skinner.default"
  },
  "2582710266": {
    "itemShortname": "jacket",
    "itemDisplayname": "Forest Raiders Jacket",
    "permission": "skinner.default"
  },
  "2865011686": {
    "itemShortname": "jacket",
    "itemDisplayname": "Desert Raiders | Jacket (Camo)",
    "permission": "skinner.default"
  },
}

 

chilakhsingh

Posted

3 hours ago, GodlyHydra said:

dev mode true
auto remove DLC and paid skins from imports false

just for testing and it seem to work but i don't know if allowed to this

 

sorry i didnt reply earlier was working on a different plugin

Aw thanks for replying. Didn't work for me. As a test I have exported all workshop AR skin IDs and was trying to import only those that hadn't been approved. For each of the following, I have logged off the server, stopped the plugin, updated the Imported Skins json in the Data folder, updated the config, started the plugin, and logged back on. Here are my results:

Dev Mode: True/Auto Remove: True - Shows me my own skins and PAID skins.

Dev Mode: False/Auto Remove: True - Shows me my own skins and PAID skins.

Dev Mode: True/Auto Remove: True - Shows me my own skins and PAID skins.

Dev Mode: False/Auto Remove: False - Shows me ONLY my own skins.

 

alexm561

Posted

The creator of the Workshop Custom Skins Pack for Skinner updated the json and it is now working properly. Thank you for all the responses. Great community.

  • Like 1
chilakhsingh

Posted

20 minutes ago, chilakhsingh said:

Aw thanks for replying. Didn't work for me. As a test I have exported all workshop AR skin IDs and was trying to import only those that hadn't been approved. For each of the following, I have logged off the server, stopped the plugin, updated the Imported Skins json in the Data folder, updated the config, started the plugin, and logged back on. Here are my results:

Dev Mode: True/Auto Remove: True - Shows me my own skins and PAID skins.

Dev Mode: False/Auto Remove: True - Shows me my own skins and PAID skins.

Dev Mode: True/Auto Remove: True - Shows me my own skins and PAID skins.

Dev Mode: False/Auto Remove: False - Shows me ONLY my own skins.

 

I figured it out. I used Dev Mode False, Auto Remove True. Then I imported a skin using the chat command. Then I unloaded the plugin, and added the skin IDs to the data file without the "Imported Skins List": { part.

Just added the individual IDs like this on each line: 

"861142659": {},

And it seems to be working now. 

GodlyHydra

Posted

awesome good to hear you fixed it.  i gave up on this to fix my rank up plugin.

1.9m

Downloads

Total number of downloads.

9k

Customers

Total customers served.

132.3k

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.