Page 1 of 2
[Mod] Simple Skins [0.4] [simple_skins]

Posted:
Thu Apr 17, 2014 16:33
by TenPlus1
Simple Skins is a mod that's so easy to use you'll wonder why it hasn't been done before...
Based on Zeg9's Skins mod and with some help from PilzAdam...
Download is at the bottom of this post.Dependencies: can use Inventory Plus or Inventory ++ but not required:
https://forum.minetest.net/viewtopic.php?id=6204License: MIT

To add NEW skins download your Minecraft skin into the textures folder and name it accordingly e.g "character_31.png" or "character_32.png" (whichever is the next number available)... also... pop into the meta directory and make a new "character_31.txt" file with this text inside it:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
name = "Your Skin Name",
author = "Your nick or name here",
Source:
https://github.com/tenplus1/simple_skins
- 0.4 - Added /skin command to set player skin, no longer dependent on Inventory+, also /setskin command for server admin to set personal skins for players.
- 0.3 - Now works with Minetest 0.4.10+
- 0.2 - Added 3D-Armor mod compatibility
- 0.1 - Added addi's changes to highlight selected skin on list (thanks)
- 0.0 - Initial release

Posted:
Thu Apr 17, 2014 16:39
by Krock
How about grabbing all skins from the skins database?

Posted:
Thu Apr 17, 2014 16:40
by rubenwardy
Krock wrote:How about grabbing all skins from the skins database?
That defeats the purpose of being easy to use.

Posted:
Thu Apr 17, 2014 17:21
by addi
that would maybe work good with the
skindb driver mod because it does not need a 2d preview.

Posted:
Thu Apr 17, 2014 17:54
by Krock
addi wrote:that would maybe work good with the
skindb driver mod because it does not need a 2d preview.
Uh, somehow I got a Dejà vu.. see 3 posts above.

Posted:
Fri Apr 18, 2014 07:46
by addi
Krock wrote:addi wrote:that would maybe work good with the
skindb driver mod because it does not need a 2d preview.
Uh, somehow I got a Dejà vu.. see 3 posts above.
Krock: hmm, but what about reading the skins from skin db? :-P XD
11: im just looked into the source and modified it a bit, so it does now highlight the actual skin in the list.

Posted:
Fri Apr 18, 2014 09:19
by TenPlus1
Thanks addi for adding the selected skin highlight :)
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Thu Sep 18, 2014 06:19
by ken
When I set my skin, people see it fine. If I log out of the server, and then log back in, my skin is back to Sam.
In the menu, the skin I chose previously is still selected, but to other clients I look like normal Sam until I re-click the skin in the menu.
Is this normal?
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Thu Sep 18, 2014 07:18
by TenPlus1
Tested and cannot replicate the bug you mention, any skin selected remains after logging out of server and back in again... Which server are you connecting to ?
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Sun Sep 21, 2014 04:21
by ken
TenPlus1 wrote:Tested and cannot replicate the bug you mention, any skin selected remains after logging out of server and back in again... Which server are you connecting to ?
It is a private linux 0.4.10-dev server. After a little bit of testing, I think it must be a mod conflict. The server I'm having problems on is one that has many mods running. I created a vanilla server with only inventory++ and simple skins, and the mod worked just fine, no problems.
So, I'll need to do more testing to try and determine which other mod is causing the conflict.
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Wed Jan 28, 2015 07:11
by Carmarenton
Hey,
This is probably a bit of an odd question, but is there any way of restricting one skin to people with a certain privilege? I'm trying to make an admin skin. I only grant give to admins, for instance, is there any way of restricting a skin to people with give?
Thanks!
Carm
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Wed Jan 28, 2015 09:30
by TenPlus1
Carmarenton: Place the skin for admin inside the textures directory and name it character_901.png so that it will not appear in the list (the meta file is not needed for this), then during game type: /setskin <username> 901 to set their private skin and next time they sign on it will take effect...
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Wed Jan 28, 2015 17:32
by Carmarenton
TenPlus1 wrote:Carmarenton: Place the skin for admin inside the textures directory and name it character_901.png so that it will not appear in the list (the meta file is not needed for this), then during game type: /setskin <username> 901 to set their private skin and next time they sign on it will take effect...
/setskin isn't working for me o,O Nothing at all happens when I execute the command.
EDIT: Me idiot. Me no read your full message about NEXT TIME THEY SIGN ON. Sorry! It worked :D
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Sat Mar 07, 2015 11:43
by erwin.maximilian
Here is as simple patch to use unified inventory.
unzip with gunzip <file.gz> and apply with path -i <file>
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Wed Apr 01, 2015 22:52
by Minetestforfun
erwin.maximilian wrote:Here is as simple patch to use unified inventory.
unzip with gunzip <file.gz> and apply with path -i <file>
Hi, im interresting with this mod because i want to add players skins the more simple way possible.
This mod works with unified inventory and u_skins ? This patch allow this ? If yes, maybe merge this on master github branch can be a good idea ?
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Mon Apr 06, 2015 14:05
by Gerald
You said the mod depends on Inventory Plus or Inventory ++.
But there is a command to change skins.
Do you really need the inventory?
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Mon Apr 06, 2015 14:24
by TenPlus1
The mod needs inventory_plus mod installed to run, even with command in place...
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Sat Apr 11, 2015 12:42
by Minetestforfun
I tried "simple_skins" with "u_skins" with and without the "erwin.maximilian => simple_skin-unified_invetory.patch.gz" but it doesn't work at all...
Somebody has already coded a compatibility code ? or a merged mod of this two mods ? or maybe can code it ?
In my server we need both mods because "u_skins" is a pretty good skin database but, it's a very bad mod if you want to add skins from players creation, the "u_skins" mod need many precautions and modifications to make this possible... (it's long and not very made for that, i supposed)
While, the "simple_skins" mod is just perfect for this weak point of "u_skins", with this mod we can easily add mods from players creation without touch the "u_skins" mod wich means we can update the "u_skins" without fear :)
"u_skins" mod link :
viewtopic.php?t=9807"simple_skins" mod link :
viewtopic.php?f=11&t=9100Thank you in advance for your answers !
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Sun Jul 05, 2015 12:35
by TenPlus1
Server admin can now change a players skin by using this command:
/setskin <player> <skin number>
... personal skins can be used as well, simply number the personal skins from 900 and above so that they do not appear on the list and use the above command to set a players private skin.
/setskin TenPlus1 901
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Thu Jul 23, 2015 04:40
by amadin
Then i press button "skins" in inventory ++ i see only list of skins, but i don't see skins preview on a player, does this normal? If it'i normal, may after presing button "skins" camera will switch to a third-person (F7) for preview?
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Thu Jul 23, 2015 19:36
by TenPlus1
That's right, Simple Skins is only a list of skins with name and author information displayed when a skin is selected... To view the skin press F7 to see yourself and then change skin :)
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Fri Jul 24, 2015 07:04
by amadin
TenPlus1 wrote:That's right, Simple Skins is only a list of skins with name and author information displayed when a skin is selected... To view the skin press F7 to see yourself and then change skin :)
Does mods can make camera view from a third-person? I mean then i press buton "skins" camera view will change to a third-person and i will see skins without press F7, then i will press button "back" or "esc" camera view will change to firs-person view. Many players play on tablets and smartphones and they not have F7 button.
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Fri Jul 24, 2015 07:21
by TenPlus1
Sadly no it doesn't change the camera view of the player while selecting the skin... I did try but it was so buggy that I left it out...
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Fri Jul 24, 2015 10:59
by amadin
Then it may be wiser to add generating script from the zeg9's skins and add the option to turn on/off display generated skins in game, that is, if the server owner wants then he can generate pictures, if he not want then he uses a list of skins in the game without pictures, for me it will be cool. I think if server owner can run start, stop and restart scripts, he can run script for picture generate.
Re: [Mod] Simple Skins [0.3] [simple_skins]

Posted:
Fri Jul 24, 2015 11:11
by TenPlus1
If you want skin previews then you can install zeg's skins mod, my simple skins mod is meant to be light for server use and so that you do not have to generate previews with every new skin added...
Re: [Mod] Simple Skins [0.4] [simple_skins]

Posted:
Thu Aug 13, 2015 09:50
by TenPlus1
Today's 0.4 release no longer requires Inventory Plus mod to work but will use it if available, instead the /skin command can be used to select your player texture :)
Also server admin can set custom skins by using the /setskin <player> <skin number> command. Note: custom skins are typically numbered 900 and above so the GUI does not see them for normal players to choose from...
Re: [Mod] Simple Skins [0.4] [simple_skins]

Posted:
Thu Aug 20, 2015 12:16
by Samson1
do you think you could make this mod compatible with this mod(
http://forum.minetest.net/viewtopic.p...)?
It's just that I have had to re make the buttons to hide them, It would be so good if you could! Nice mod
Re: [Mod] Simple Skins [0.4] [simple_skins]

Posted:
Thu Aug 20, 2015 12:33
by TenPlus1
samson1: the address you pasted doesnt lead anywhere, could you repost it...
Re: [Mod] Simple Skins [0.4] [simple_skins]

Posted:
Sun Aug 23, 2015 19:35
by GunshipPenguin
I believe I've found a crash bug.
To replicate, use the /skin command to open the skin selection formspec then hold down either the up arrow or down arrow key to quickly move through all the available skins. The game crashes for me with this output.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
2015-08-23 12:29:17: ACTION[main]: .__ __ __
2015-08-23 12:29:17: ACTION[main]: _____ |__| ____ _____/ |_ ____ _______/ |_
2015-08-23 12:29:17: ACTION[main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
2015-08-23 12:29:17: ACTION[main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
2015-08-23 12:29:17: ACTION[main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
2015-08-23 12:29:17: ACTION[main]: \/ \/ \/ \/ \/
2015-08-23 12:29:17: ACTION[main]: World at [/home/rhys/Desktop/minetest-0.4.13/bin/../worlds/asdfewf]
2015-08-23 12:29:17: ACTION[main]: Server for gameid="minetest" listening on 0.0.0.0:54598.
2015-08-23 12:29:18: ACTION[ServerThread]: singleplayer [127.0.0.1] joins game.
2015-08-23 12:29:18: ACTION[ServerThread]: singleplayer joins game. List of players: singleplayer
2015-08-23 12:29:18: ACTION[main]: Irrlicht: Could not open file of texture: character.png
2015-08-23 12:29:18: ACTION[main]: Irrlicht: Could not open file of texture: character.png
2015-08-23 12:29:32: ERROR[main]: ServerError: Runtime error from mod 'simple_skins' in callback environment_Step(): ...esktop/minetest-0.4.13/bin/../mods/simple_skins/init.lua:118: attempt to concatenate a nil value
2015-08-23 12:29:32: ERROR[main]: stack traceback:
2015-08-23 12:29:32: ERROR[main]: ...esktop/minetest-0.4.13/bin/../mods/simple_skins/init.lua:118: in function 'update_player_skin'
2015-08-23 12:29:32: ERROR[main]: ...esktop/minetest-0.4.13/bin/../mods/simple_skins/init.lua:167: in function 'func'
2015-08-23 12:29:32: ERROR[main]: ...hys/Desktop/minetest-0.4.13/bin/../builtin/game/misc.lua:18: in function 'update_timers'
2015-08-23 12:29:32: ERROR[main]: ...hys/Desktop/minetest-0.4.13/bin/../builtin/game/misc.lua:50: in function <...hys/Desktop/minetest-0.4.13/bin/../builtin/game/misc.lua:38>
2015-08-23 12:29:32: ERROR[main]: ...Desktop/minetest-0.4.13/bin/../builtin/game/register.lua:355: in function <...Desktop/minetest-0.4.13/bin/../builtin/game/register.lua:335>
2015-08-23 12:29:32: ACTION[ServerThread]: singleplayer leaves game. List of players:
I was using minetest 0.4.13 stable and the 0.4.13 tag of minetest_game. No other mods besides simple_skins and the ones in minetest_game were installed when this bug occurred.
Re: [Mod] Simple Skins [0.4] [simple_skins]

Posted:
Mon Aug 24, 2015 07:30
by TenPlus1
GunshipPenguin: Bug has been fixed :) thanks for reporting it...