On Server Reboot shop reverts back to default
Does it not save any skins you have purchased in a file ???
Losing all Skins on Server RebootFixed
Are you using version 0.2.2? This issue should be fixed in the latest update
yeah i grabbed latest
> o.reload SkinShop
[DEBUG] Plugin compilation is already queued: SkinShop (0.034 ago)
SkinShop and MemoryCache were compiled successfully in 1717ms
[Skin Shop] Saving Skin Data: 0 players
Calling 'Unload' on 'SkinShop v0.2.2' took 152ms
Unloaded plugin Skin Shop v0.2.2 by Rustoholics
Unloaded plugin Memory Cache v1.0.6 by austinv900
[DEBUG] SkinShop plugin is waiting for requirements to be loaded: MemoryCache
Loaded plugin Memory Cache v1.0.6 by austinv900
Duplicate permission registered 'skinshop.admin' (by plugin 'Skin Shop')
[Skin Shop] G:\Rust\oxide\data\SkinShop\Removed_items.json
[Skin Shop] Skin database loaded
Calling 'OnServerInitialized' on 'SkinShop v0.2.2' took 240ms [GARBAGE COLLECT]
Loaded plugin Skin Shop v0.2.2 by Rustoholics
Can you paste the contents of `G:\Rust\oxide\data\SkinShop\Removed_items.json` (this is the file that should be storing your skins), but it has been corrupted some how?)
Invalidate Network Cache took 0.01 seconds
[Economics] Saving balances for players...
Saved 96,531 ents, cache(0.44), write(0.01), disk(0.01).
Saving complete
[Skin Shop] Saving Skin Data: 1 players
its not corrutped i just removed my id
Also it saved now - maybe i never allowed it to save before i rebooted server
Going to retest (but when is the timer for Save as this may be an issue
When does it exactly save - as it does not save alongside save command
Merged post
As u can see above it did save but on rebooting server and loading back in my skins are gone from within the shop
[ { "Title": "Desert Camo Armored Door", "Description": "", "Image": "https://steamuserimages-a.akamaihd.net/ugc/106229389281073494/08CAEA1CCB79BED1F12C8C8137183AC8439B26E5/", "Id": "814064613", "Price": 0.0, "Category": "Armored Door", "Wrapped": true, "Equipped": false, "Shortname": "door.hinged.toptier" }, { "Title": "Ancient Glacier Armored Double Door", "Description": "The serpent - Jormungand devouring its tail symbolizes infinity rebirth cyclicity. In this sense it is very suitable for Rust.br \r\n httpsi.imgur.comUJbJnp0.png ", "Image": "https://steamuserimages-a.akamaihd.net/ugc/1746814578376174140/BC867A63A8C6C6678AF765DA81E7DF8D695E97B0/", "Id": "2511812162", "Price": 0.0, "Category": "Armored Double Door", "Wrapped": true, "Equipped": false, "Shortname": "door.double.hinged.toptier" }, { "Title": "Stone Camo Headwrap", "Description": "My 1st version of stone camo clothing set. If you have any comments or suggestions do let me know at the comments. Your thoughts are highly appreciated. Thanks", "Image": "https://steamuserimages-a.akamaihd.net/ugc/89347862354656616/0685F60D501FDB7CBDE00E7A750F7A57E2A6BA7A/", "Id": "869742075", "Price": 0.0, "Category": "Burlap Headwrap", "Wrapped": true, "Equipped": false, "Shortname": "burlap.headwrap" }, { "Title": "purple AK47 V1", "Description": " httpsi.imgur.comIAxane1.jpg br \r\nbr \r\nPaypal DONATION httpswww.paypal.comdonatehosted_button_idSJYB2TE2XFLMJbr \r\nneed specific skins add me on steams br \r\nbr \r\n", "Image": "https://steamuserimages-a.akamaihd.net/ugc/1697282850184996849/9AB83E646871230B0447F83E959B3A80ACCBFC6F/", "Id": "2593813876", "Price": 0.0, "Category": "AK47", "Wrapped": true, "Equipped": false, "Shortname": "rifle.ak" }, { "Title": "Color Splash", "Description": "", "Image": "https://steamuserimages-a.akamaihd.net/ugc/112983518057452844/18EB23492C469638BDFBAAD455FCF9640A5969E0/", "Id": "808219958", "Price": 0.0, "Category": "Beenie Hat", "Wrapped": true, "Equipped": false, "Shortname": "hat.beenie" }, { "Title": "Chic Boutique Teal Lace Scarf Bandana", "Description": "", "Image": "https://steamuserimages-a.akamaihd.net/ugc/999178043078332709/D981E33DF8F41B75DCF7A5653B4510D5C9F30C31/", "Id": "2037816815", "Price": 0.0, "Category": "Bandana", "Wrapped": true, "Equipped": false, "Shortname": "mask.bandana" } ]
So the json filename matches your steam ID right? But when you go to "My Skins" after reload, it is empty?
on fresh reboot after i know it had saved the file i had 3 skins in the file in Data folder
It never loaded them back into the shop under my skins on Reboot
I just purchased another pack of skins and it gave me 6 - these have now replaced the 3 that were in the data file.
So its saving them - But not loading them in
Rustoholics
So the json filename matches your steam ID right? But when you go to "My Skins" after reload, it is empty?
not empty its does show the skins in the file correctly - the issue seems to be its not loading them back in
Merged post
I would move on Rustoholics as the issue may be on my end - no idea how but lets see if anyone else has the issue
I can't seem to replicate this, as I pasted your json above into my own server, started up and I have those it 6 items in "My Skins"
yeah is weird - i see the skins in the file and on reboot they do not show under myskins in the GUI
Ive no answer :)
I have the same problem. Skins won't load back after plugin or server restart. And when buying new ones, they are only overwritten with new skins and the old ones are erased. From the file \ data \ SkinShop
I've added some additional logging to the loading sequence. Please install version 0.3.1 then paste the contents of your logs here from where the plugin is loaded (or put it in a pastebin if it's too long)
The skins are in the file - the data list is there, but they are not reflected in the purchased scans, but they are overwritten when buying new ones.
D:\Server\steam\steamapps\common\rust_dedicated\oxide\data\SkinShop\STEAM-ID_items.json
(11:12:36) | Saving complete
(11:13:24) | [Skin Shop] Saving Skin Data: 1 players
(11:15:41) | Duplicate permission registered 'skinshop.admin' (by plugin 'Skin Shop')
(11:15:41) | Duplicate permission registered 'skinshop.use' (by plugin 'Skin Shop')
(11:15:41) | [Skin Shop] D:\Server\steam\steamapps\common\rust_dedicated\oxide\data\SkinShop\STEAM-ID_items.json
(11:15:41) | [Skin Shop] Skin database loaded
(11:15:41) | Calling 'OnServerInitialized' on 'SkinShop v0.3.1' took 585ms [GARBAGE COLLECT]
(11:15:41) | Loaded plugin Skin Shop v0.3.1 by Rustoholics
Can you please try this development version (i don't want to keep pushing to the main repo until this issue is actually fixed):
https://umod.org/resource/plugin/skin-shop/patch?version=development
Also can you direct message me with the full filename (including the steam ID that got masked), i think for some reason there is an issue with it detecting the steam ID in the filename....maybe the steam ID is not fully numeric?
Merged post
Wait i think i have the issue...working on it now...i think it's a windows vs linux filename match issue.
Merged post
This should really be solved now in the latest version (0.3.3). It was only affecting Windows servers due to \ in the filepaths instead of /
That fixed it thanks @Rustoholics