[Mod] Different textures for players [player_textures]

User avatar
moli
New member
Posts: 2
Joined: Fri Dec 06, 2013 21:35

by moli » Post

Dear all. I can not fine any guide for the layout of the texture in the player_<name>.png bitmap. Please help me by pointing me to some guide or documentation. Thanks!

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

moli wrote:Dear all. I can not fine any guide for the layout of the texture in the player_<name>.png bitmap. Please help me by pointing me to some guide or documentation. Thanks!
Its the same as Minecraft's format, Im sure youll find information about that.

User avatar
moli
New member
Posts: 2
Joined: Fri Dec 06, 2013 21:35

by moli » Post

PilzAdam wrote:
moli wrote:Dear all. I can not fine any guide for the layout of the texture in the player_<name>.png bitmap. Please help me by pointing me to some guide or documentation. Thanks!
Its the same as Minecraft's format, Im sure youll find information about that.
Thank you! Sorry that it did not occur to me to check that out. Thanks for the reply and for the mod.

User avatar
ZachyGames
Member
Posts: 144
Joined: Sat Mar 22, 2014 12:14
Location: Youtube
Contact:

by ZachyGames » Post

I cant load the mod!!!!!!!!!!!

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

ZachyGames wrote:I cant load the mod!!!!!!!!!!!
What is the error? In debug.txt.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

I suggest using skins mod instead of this one. That one is up-to-date for 0.4.8 -> now at least.

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

4aiman wrote:I suggest using skins mod instead of this one. That one is up-to-date for 0.4.8 -> now at least.
Eh, my mod is totally up to date.

4aiman
Member
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Post

Eh.. your mod has no GUI ;p
Last edited by 4aiman on Thu Mar 27, 2014 18:13, edited 1 time in total.

User avatar
xcrow
New member
Posts: 6
Joined: Sat Apr 12, 2014 14:43

by xcrow » Post

The mod works fine!
Is exactly what I want to show for playing with my kids, they will love it!

Only an observation: there are certain entities of "MobF" that don´t show a texture ("Unknown"), you know what I can do for solve this? ('LuaEntity name: "mob_archer:archer" not defined' says one of the messages)

But... obviusly, my kids will choose the skins over the entities!!

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

xcrow wrote:Only an observation: there are certain entities of "MobF" that don´t show a texture ("Unknown"), you know what I can do for solve this? ('LuaEntity name: "mob_archer:archer" not defined' says one of the messages)
This is completly unrelated to this mod. Maybe ask in the mobf topic how to fix that.

User avatar
rommiekerova
Member
Posts: 93
Joined: Thu Nov 21, 2013 10:59
In-game: Andromeda
Location: United Kingdom

by rommiekerova » Post

4aiman wrote:I suggest using skins mod instead of this one. That one is up-to-date for 0.4.8 -> now at least.
This mod works for 4.8 and should work for anything higher so long as the character model and mapping stays constant.

If either of those changes, I'm sure PilzAdam will create a new version which works for it.
4aiman wrote:Eh.. your mod has no GUI ;p
It doesn't need one. Its not the skins mod. This one adds custom textures for each player. Not a database of them.
Last edited by rommiekerova on Tue Apr 15, 2014 15:50, edited 1 time in total.
My Mods: Kerova - viewtopic.php?id=8054
My Server: Kalisae - viewtopic.php?id=9040 <--CLOSED UNTIL FURTHER NOTICE!

User avatar
ak399g
Member
Posts: 160
Joined: Tue Jul 30, 2013 02:36
In-game: SAFR
Contact:

Re: [Mod] Different textures for players [player_textures]

by ak399g » Post

Could this be rewritten as a chat command (perhaps "/personal_texture") that applies the skin later?
I'm trying to allow specific skins for certain players while incorporating Zeg9's database.

gumangel
Member
Posts: 23
Joined: Thu Jan 01, 2015 21:44
In-game: LaA

Re: [Mod] Different textures for players [player_textures]

by gumangel » Post

23:02:09: ERROR[main]: ServerError: ...test\minetest-0.4.10-64bit\bin\..\mods\textures\init.lua:2: attempt to concatenate a nil value
23:02:09: ERROR[main]: stack traceback:
23:02:09: ERROR[main]: ...test\minetest-0.4.10-64bit\bin\..\mods\textures\init.lua:2: in function <...test\minetest-0.4.10-64bit\bin\..\mods\textures\init.lua:1>
23:02:09: ERROR[main]: ...t\minetest-0.4.10-64bit\bin\..\builtin\game\register.lua:348: in function <...t\minetest-0.4.10-64bit\bin\..\builtin\game\register.lua:336>
can anyone help me?

User avatar
Napiophelios
Member
Posts: 1020
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Different textures for players [player_textures]

by Napiophelios » Post

rename the mod's folder to: player_textures

gumangel
Member
Posts: 23
Joined: Thu Jan 01, 2015 21:44
In-game: LaA

Re: [Mod] Different textures for players [player_textures]

by gumangel » Post

Napiophelios wrote:rename the mod's folder to: player_textures
thank you really much!

User avatar
pinkysnow
Member
Posts: 91
Joined: Sat Sep 26, 2015 01:58
GitHub: pinkysnowman

Re: [Mod] Different textures for players [player_textures]

by pinkysnow » Post

I have patched the code to accept new format of mc skins!

Patch here

User avatar
Samson1
Member
Posts: 94
Joined: Wed Apr 01, 2015 19:41
IRC: Samson1
In-game: Samson1

Re: [Mod] Different textures for players [player_textures]

by Samson1 » Post

This mod works a treat!


It's just a pity Minetest does not support MC version 1.8+ skins :\

rgh
Member
Posts: 46
Joined: Fri Oct 07, 2016 13:32

Re: [Mod] Different textures for players [player_textures]

by rgh » Post

Could anyone direct me to some image files I could try out for this mod? The example
player_PilzAdam.png
doesn't correctly display for me. I've also tried taking a copy of
minetest\games\minetest_game\mods\default\models\character.png
changing it slightly & suitably renaming. That doesn't work either.

I'm using minetest 0.4.14. Is the image file that version uses still compatible with this mod?

In fact, the server is giving an error:
ERROR[Main]: generateImage(): Could not load image "player_personX.png" while building texture.

rgh
Member
Posts: 46
Joined: Fri Oct 07, 2016 13:32

Re: [Mod] Different textures for players [player_textures]

by rgh » Post

Problem solved: server needed a restart

User avatar
Lone_Wolf
Member
Posts: 2412
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Different textures for players [player_textures]

by Lone_Wolf » Post

Awesome!

holli
Member
Posts: 15
Joined: Sat Mar 31, 2018 20:04
In-game: holli
Location: Lower Saxony, Germany
Contact:

Re: [Mod] Different textures for players [player_textures]

by holli » Post

Hi there,

this is my first post in this forum, yay! \o/ ...and I'm starting with a boon question: >.>

I read that somewhere exists a database for custom user skins for minetest in the internet. Mentioned here:
viewtopic.php?id=4497

The thread talks about this site: http://minetest.fensta.bplaced.net. I wonder that I cannot find any line in the "init.lua" script of this mod, that shows me that this mod search a player skin file on this site. It only search the local folder. Is it possible to provide all these player skins on a ftp site, maybe like "ftp://ftp.minetest.net/player_textures/player_<player name>.png" so the script can easily find them and cache this file in the local dir of this mod?
On the other hand, there are many minecraft skin/wallpaper editor websites witch are able to load all the player skins from the minecraft database. Could it be possible that this lua script also search the minecraft database, so someone, who usually plays minecraft (eg my son *hehe*) gets his skin in minetest. That would blow his mind! XD

It's easy for you to see that I'm a boon in lua programming, because I don't know if it's possible to access (and download) some internet content. But if it's possible, why do not use the database mentioned above to automatically search, download and store the custom skins?

Sorry for my poor english.

Greetz,

Holli

dawgdoc
Member
Posts: 253
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: [Mod] Different textures for players [player_textures]

by dawgdoc » Post

holli wrote:...so someone, who usually plays minecraft (eg my son *hehe*) gets his skin in minetest. That would blow his mind! XD
You can use the converter tool at The Pixel Shadow to make a Minecraft skin usable in Minetest.

EDIT: You can use this in singleplayer worlds. Rename the skin to character.png and place it in

Code: Select all

/usr/share/minetest/games/minetest_game/mods/default/models
At least that is where you place the file in LinuxMint along with Ubuntu and other distros based on it.
To use it in servers you would need to contact the server admin.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.

holli
Member
Posts: 15
Joined: Sat Mar 31, 2018 20:04
In-game: holli
Location: Lower Saxony, Germany
Contact:

Re: [Mod] Different textures for players [player_textures]

by holli » Post

Hi dawgdoc,

thanks for your answer. I am using already a tool to convert MC skins to MT skins called "the gimp" and I am the admin of my own server. ;-) And yes, it runs on lubuntu 16.04.4 amdx64 LTS. :-D

But my question is, it is possible to extend the mod so that it automatically search the database on the site mentioned above (http://minetest.fensta.bplaced.net), download the skin file automatically and use it as custom player skin.
The thing with the ftp server was only an idea for easy file access...

Greetz,

Holli

EDIT: Using a MC2MT cmdline skin converter tool is a fine Idea to access and use MC skins in MT! ;-D

User avatar
Lone_Wolf
Member
Posts: 2412
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Mod] Different textures for players [player_textures]

by Lone_Wolf » Post

Fastest way to convert a skin to or from MT: https://godly.github.io/minetest-skin-converter/

holli
Member
Posts: 15
Joined: Sat Mar 31, 2018 20:04
In-game: holli
Location: Lower Saxony, Germany
Contact:

Re: [Mod] Different textures for players [player_textures]

by holli » Post

Hi Lone_Wolf,

the online skin converter works fine. Many thanks for that. Do you know any cmd line program or script ([ba]sh/python/whatever) to this job in a "mc2mt_convrt -i mc_player_xyz.png -o player_xyz.png" way?

Thanks,

Holli

Post Reply

Who is online

Users browsing this forum: isaiah658 and 6 guests