PlayerSkins

PlayerSkins 3.0.9

Changed Economics Hooks to match update.

If you haven't updated Economics please do so before installing this version.

If you have any issues let me know.
PLEASE DOWNLOAD THE NEWEST IMAGELIBRARY SO THE NEW CONFIG OPTION WILL WORK!

Fixed Token Purchase window freezing on screen.

Added Config option: RequireWebImages. Setting this to true will force ImageLibrary to return the URL of the image instead of the PNG. This is a lower quality image and MIGHT slow the RAM consumption. The only other suggestion for RAM usage is to type gc.unload in console periodically to clear ram usage. This has been very helpful on a server group I work with; so perhaps it will help you all as well.

Added a Show Skins button to each Permission entry (admin view). Pressing this will filter the selected skins for that item. If you switch items this permission will still be shown until you deselect the permission. This should help admins determine what permissions have what skins.. :)

f4deb77d34300e3272b7ea80a78cc054.png

8b1a232d790713cfbcc6fa3d55562417.jpg
Fix for duplicate skins show if you have multiple permissions for the same skin (Bug shown in my Permission Overview Video - Posted in Overview).

I also fixed if a player owns a skin but no longer has permission it was showing for them in "Owned Only" View. Now if they own it but don't have permission it is hidden in regular view and "Owned Only" View.

Let me know if anyone finds any other bugs, I hope you enjoy the new flexibility of the permission system! It was a pain in the ass to implement :)
  • Like
Reactions: VinylFresh
***MAJOR CHANGE***
THIS UPDATE REQUIRES A NEW DATA FILE AND CONFIG FILE.

I recommend you save your old Config and Data Files just in case you must revert to the prior version. I have done a ton of testing but I don't always catch everything!

PlayerSkins.vip (bypasses cost of skin) is now changed to PlayerSkins.free

I have revamped the Ban System to act as a Permission system instead. In doing so I moved the Banned Item and Skin Permissions to the Data file instead of keeping it in the config file. I recommend you make no manual changes to the Data file.

Ban Item still works the same. So you can ban an entire item from showing in the menu for all players.

Instead of Banning Skins you now will assign permissions to determine who can and cannot see it. Therefore, if you want to just hid skins from all players use a permission no one has!

Skin Permissions:
Now in the config file is a List of strings called 'permissions'. Any string you put into this list will be available as a permission within the game. On load of PlayerSkins all strings in this list will register as a permission. Therefore, if you put "test" as a permission on load it would register PlayerSkins.test.

Config shown in image below:
"permissions": [
"vip1",
"vip2",
"vip3",
"test1",
"test2",
"test3",
"test4",
"test5",
"test6",
"test7",
"test8",
"test9",
"test10"
],

Each of these permissions will automatically show as a permission option when you click a skin within admin mode. Each permission will provide (4) options: Assign, Deny, Assign All, Deny All.

Before I explain the permission options understand that if a skin has no permissions assigned to it then it is visible to everyone. If a skin has at-least one permission assigned then the player will need to have that permission or any other valid permission for that skin to see or use it! A skin can have as many or as few permissions as you want.

Assign: Allows Players with that permission to see that skin.
Deny: Removes that permission from the skin.
Assign All: Allows Players with that permission to see all skins within that item!
Deny All: Removes that permission from all skins within that item!

The follow views are only available in Admin Mode:
9f80c251e84c55e43b792b5848e720cf.jpg

664a280cc55c73e519ea97d38a0e1169.jpg
  • Like
Reactions: VinylFresh
Added a button to toggle only unlocked skins.
Added Buy Token Buttons to the main UI and removed them from the inspector panel (look and feel seemed much better).

I fixed some logic in ImageLibrary which appears to have fixed bad skins. I think some of the issue existed for awhile while other issues popped up recently perhaps from some FP changes.

Anyway, it all seems to be running well. Let me know!
  • Like
Reactions: VinylFresh
New Functionality Demo:

BACKUP DATA AND CONFIG FILE PRIOR TO INSTALLING!

I made some changes to the data structure (only additions) and to the config. In both cases you should not have to delete your old files but back them up just in case!

I added an option to force the compact (original UI mode)
I added an Admin button to Ban All skins of a particular item type. This is so you can ban all and then unban the few you want.

DefaultSkins:
The major change was the addition of a new function called Skinning. This functionality allows players to set a "Default" skin for each item that will automatically be applied to items when they are picked up or moved around your inventory. This setting can be disabled in the config.

Players can also toggle skinning on/off from within the UI.

Watch the video! Thanks all!
  • Like
Reactions: KBow
How does the saying go? 99 Fixes but a B*tch aint one.

Anyway, found a small bug with items not all showing on the Large Newer UI. That is resolved.

Sorry for all the patches; hoping this calms down again :)
  • Like
Reactions: OuTSMoKE and KBow
Fix for: Failed to call hook 'cmdUI_ItemPanelChanges' on plugin 'PlayerSkins v1.1.4'

Also fixed homepage image issue.
Added permission: PlayerSkins.vip
If a player has this permission it will bypass purchasing.
Requested by someone...
Tweaked new ui elements. Failed to align SR Money and Tokens which shifted everything a bit.

the Home logic was also broken..

All looks good now PLEASE LET ME KNOW.

Thanks!

3eed9f534967d3c3e659d38b1de29e77.jpg

https://gyazo.com/3eed9f534967d3c3e659d38b1de29e77