Page 3 of 3

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Sun Mar 22, 2015 10:18
by Krock
DI3HARD139 wrote:When running generate_previews.sh I get Blender and convert not found errors.

You don't need to run that script. It's possible to automatically download the previews from the skin database.

Try this script: https://github.com/SmallJoker/minetest- ... from_db.py
It might be incompatible with this mod version, use the newer one instead.

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Fri Jul 14, 2017 10:37
by turbogus
Hello,

I recently had a problem with this mod ( with the update script and with the generate_preview script ).
Next the change have done to make this great mod work on my server:

In "update_from_db2.py", I just add a "try .. catch" bloc in the last "for... loop" to continu importing skin from the server:

for s in l["skins"]:
try:
f = open(skinsdir+"character_"+str(i)+".png",'wb')
f.write(base64.b64decode(s["img"]))
f.close()
f = open(metadir+"character_"+str(i)+".txt",'w')
f.write('name = "'+s["name"]+'",\n')
f.write('author = "'+s["author"]+'",\n')
f.write('comment = "'+s["license"]+'",\n')
f.close()
except(BaseException):
print("Erreur de traitement!")
i = i + 1

Next, I change de destination directory in the script in "skin_previews.blend" file (this file is in the hidden ".previews" folder of the mod, and you need blender to open it):

import bpy
from os.path import exists
from sys import stderr # for progress output
path = "../u_skins/textures"
c = 1 # We'll find skins as the lua mod does

In the fourth lign, change "skin" by "u_skin" and save the *.blend file.

Now, import skins and previews generation will work.

(Sorry for my very bad English! :/)

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Thu Aug 31, 2017 03:40
by BirgitLachner
Well, a question, if I can should some more time on it or not ...

I like unified inventory with the skin mod and use it on every server and every world I have.
Now I'm using it for an educational purpose and it would be cool to have different skins for students and for teacher so see because of the skin of an other player if he is teacher or a student.

So, I ask myself if it might be possible to have a different set of skins to choose from. For the EDUTest mod the teachers have the right "teacher" to move the students around, teleport them, freeze them and so on. The student have the right "student" so that they don't see the formspec for the teacher and they appear in the list to teleport them arround.

So, do YOU think that it is possible to change the set of skins depending on the right? Where can I change the skins that are shown?

Birgit

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Thu Aug 31, 2017 07:51
by hajo
BirgitLachner wrote:unified inventory with the skin mod
different skins for students and for teacher
EDUTest mod .. right "teacher" ..right "student"
change the set of skins depending on the right?

Rename teacher-skins, eg @teacher01, etc.
(or put them into a separate directory),
and choose different file-selectors based on the rights ?

I.e look at .../u_skins/skinlist.lua where the list of skins is read.

Or in ../u_skins/init.lua, modify the function u_skins.is_skin()
to also check the rights of the player, and return false
for teacher-skins if the player doesn't have teacher-rights.

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Fri Sep 29, 2017 10:41
by BreadSticks
Nice!

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Thu Sep 27, 2018 03:06
by Darkwar
i have updated the skins amd ect now shows there err in the skins and dont show the textures any more in the invetory how do i fix this

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Sun Jun 02, 2019 16:59
by Hume2
The scripts at http://minetest.fensta.bplaced.net seem to be broken. Both upload and download doesn't work.

EDIT: Download works but you have to change:
/api/get.json.php?getlist&page="+str(page)+"&outformat=base64"
to:
/api/v2/get.json.php?getlist&page="+str(page)+"&outformat=base64"

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Sun Aug 18, 2019 21:34
by The_Warfare_Dude
Um, I'm not sure How to use the updater, can someone help me?

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Tue Aug 20, 2019 17:04
by Krock
New updater that only makes use of the Minetest API.
Requires version 5.1-dev (6 Jun) or newer
https://github.com/minetest-mods/skinsd ... pdater.lua


The original scripts might still work, but GPLv3 actually disallows to have them in the project. Good luck.

Re: [Mod] Unified_Inventory Skins [u_skins]

PostPosted: Tue Aug 20, 2019 19:41
by The_Warfare_Dude
Is there a way to get minetest 5.1-dev on linux?