[Mod] Unified_Inventory Skins [u_skins]

User avatar
Krock
Developer
Posts: 4558
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Unified_Inventory Skins [u_skins]

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
turbogus
Member
Posts: 280
Joined: Sat Apr 07, 2012 16:00
Location: FRANCE

Re: [Mod] Unified_Inventory Skins [u_skins]

by turbogus » Post

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! :/)

User avatar
BirgitLachner
Member
Posts: 383
Joined: Thu May 05, 2016 10:18
In-game: Bibs

Re: [Mod] Unified_Inventory Skins [u_skins]

by BirgitLachner » Post

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

hajo
Member
Posts: 602
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: [Mod] Unified_Inventory Skins [u_skins]

by hajo » Post

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.

User avatar
BreadSticks
New member
Posts: 9
Joined: Wed Sep 27, 2017 14:36
In-game: BreadSticks

Re: [Mod] Unified_Inventory Skins [u_skins]

by BreadSticks » Post

Nice!

Darkwar
Member
Posts: 41
Joined: Fri Aug 17, 2018 18:28
GitHub: Darkwar
IRC: Darkwar
In-game: cooljar10

Re: [Mod] Unified_Inventory Skins [u_skins]

by Darkwar » Post

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

User avatar
Hume2
Member
Posts: 572
Joined: Tue Jun 19, 2018 08:24
GitHub: Hume2
In-game: Hume2
Location: Czech Republic

Re: [Mod] Unified_Inventory Skins [u_skins]

by Hume2 » Post

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"
If you lack the reality, go on a trip or find a job.

User avatar
The_Warfare_Dude
New member
Posts: 3
Joined: Sun Aug 18, 2019 01:20
In-game: The_Warfare_Dude

Re: [Mod] Unified_Inventory Skins [u_skins]

by The_Warfare_Dude » Post

Um, I'm not sure How to use the updater, can someone help me?

User avatar
Krock
Developer
Posts: 4558
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Unified_Inventory Skins [u_skins]

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
The_Warfare_Dude
New member
Posts: 3
Joined: Sun Aug 18, 2019 01:20
In-game: The_Warfare_Dude

Re: [Mod] Unified_Inventory Skins [u_skins]

by The_Warfare_Dude » Post

Is there a way to get minetest 5.1-dev on linux?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests