[Mod] Simple Skins [0.7] [simple_skins]

User avatar
FreeGamers
Member
 
Posts: 334
Joined: Sat May 25, 2019 00:15
Location: United States
GitHub: is proprietary I use NotABug

Re: [Mod] Simple Skins [0.7] [simple_skins]

by FreeGamers » Fri Nov 29, 2019 08:31

bosapara wrote:I discovered some good thing, preview can be generated even without preview images:


Nice! Exactly what I was looking for. SkinsDB is inefficient with preview images. Simple_skins could use this dynamic image preview generation function, Oh but its not added... it also has a lot of unused space!

I used the code that bospara shared to create a version that looks a bit nicer and I rearranged allthe SFINV elements and added back some meta data that was cut from the simple_skins version. I didn't think the back of the skin was as important as the front so I removed that element. I ended up with a version like this:

Here is the source, so your skins interface can look as beautiful as mine:
https://www.notabug.org/FreeGamers/Saras_Simple_Survival_Server/src/master/lib_player/simple_skins/init.lua

I only use sfinv because I think its the easiest for anyone to understand, so I did not test this with any other inventory mod.

Image
Attachments
Screenshot_2019-11-28_22-43-19.png
(56.11 KiB) Not downloaded yet
 

User avatar
bosapara
Member
 
Posts: 531
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara

Re: [Mod] Simple Skins [0.7] [simple_skins]

by bosapara » Fri Nov 29, 2019 09:52

FreeGamers wrote:I only use sfinv because I think its the easiest for anyone to understand, so I did not test this with any other inventory mod.



Looks good too. I prefer this version of GUI:

Image
 

User avatar
FreeGamers
Member
 
Posts: 334
Joined: Sat May 25, 2019 00:15
Location: United States
GitHub: is proprietary I use NotABug

Re: [Mod] Simple Skins [0.7] [simple_skins]

by FreeGamers » Fri Nov 29, 2019 10:17

bosapara wrote:re:

Bosapara, one thing I noticed was that the right leg texture doesn't get flipped so we end up with two leg's that are both the same texture orientation. Its not a big deal but its something I noticed. Is it something simple to fix?
 

User avatar
bosapara
Member
 
Posts: 531
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara

Re: [Mod] Simple Skins [0.7] [simple_skins]

by bosapara » Fri Nov 29, 2019 11:10

FreeGamers wrote:Bosapara, one thing I noticed was that the right leg texture doesn't get flipped so we end up with two leg's that are both the same texture orientation. Its not a big deal but its something I noticed. Is it something simple to fix?


Of course, its possible to fix. Use the code below.

Image

Code: Select all
local head = "[combine:8x8:-8,-8="..skins.skins[name]..".png"
local body = "[combine:8x12:-20,-20="..skins.skins[name]..".png"
local left_leg = "[combine:4x12:-4,-20="..skins.skins[name]..".png"
local right_leg = "[combine:4x12:-4,-20="..skins.skins[name]..".png^[transformFX"

local left_hand = "[combine:4x12:-44,-20="..skins.skins[name]..".png"
local right_hand = "[combine:4x12:-44,-20="..skins.skins[name]..".png^[transformFX"

local back_head = "[combine:8x8:-24,-8="..skins.skins[name]..".png"
local body_back = "[combine:8x12:-32,-20="..skins.skins[name]..".png"
local legs_back = "[combine:4x12:-12,-20="..skins.skins[name]..".png"

local left_leg_back = "[combine:4x12:-12,-20="..skins.skins[name]..".png"
local right_leg_back = "[combine:4x12:-12,-20="..skins.skins[name]..".png^[transformFX"


local left_hand_back = "[combine:4x12:-52,-20="..skins.skins[name]..".png"
local right_hand_back = "[combine:4x12:-52,-20="..skins.skins[name]..".png^[transformFX"

image[3,1;2,2;".. head .. "] image[3,2.75;2,3;".. body .. "] image[3,5.35;1,3;".. left_leg .. "] image[3.82,5.35;1,3;".. right_leg .. "] image[2.2,2.75;1,3;".. left_hand .. "] image[4.63,2.75;1,3;".. right_hand .. "] image[7,1;2,2;".. back_head .. "] image[7,2.75;2,3;".. body_back .. "] image[7,5.35;1,3;".. left_leg_back .. "] image[7.82,5.35;1,3;".. right_leg_back .. "] image[6.2,2.75;1,3;".. left_hand_back .. "] image[8.63,2.75;1,3;".. right_hand_back .. "]

 

User avatar
FreeGamers
Member
 
Posts: 334
Joined: Sat May 25, 2019 00:15
Location: United States
GitHub: is proprietary I use NotABug
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: Bing [Bot] and 5 guests