[Mod] Skins for unified_inventory [u_skins]

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

[Mod] Skins for unified_inventory [u_skins]

by Krock » Wed Jul 23, 2014 12:17

Unified Skins
This is an updated fork of dmonty's u_skins mod.

Image
Image
Image
BRAIIINS! -- turn into a monster whenever you want!

Some changes:
  • Removed 2D-skins
  • Code cleanups/rewrites
  • A .NET updater for Winblows users (source code also avalable)
  • Save the last visited page (already existed before, didn't work how it should)
  • Jump from last page to first and back - faster skin switch
  • Remove the skin preview generator, download them instead
  • Fixed some bugs when special letters were used in the meta
  • Eliminated minetest.deserialize() from the code (bad decision)

License: LGPLv2
Depends: unified_inventory, default
Download: GitHub master *.zip
View source: GitHub
Last edited by Krock on Fri Nov 18, 2016 17:56, edited 1 time in total.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Skins for unified_inventory [u_skins]

by Inocudom » Wed Jul 23, 2014 16:46

Many nasty errors do I have to report:
12:30:58: ERROR[main]: ServerError: ...est_release\bin\..\games\carbone\mods\3d_armor/armor.lua:365: attempt to call field 'get_type' (a nil value)
12:30:59: ERROR[main]: stack traceback:
12:30:59: ERROR[main]: ...est_release\bin\..\games\carbone\mods\3d_armor/armor.lua:365: in function <...est_release\bin\..\games\carbone\mods\3d_armor/armor.lua:293>
12:45:37: ERROR[main]: Error loading mod "win32.NET": modname does not follow naming conventions: Only chararacters [a-z0-9_] are allowed.
12:45:37: ERROR[main]: Server: Failed to load and run C:\gsmapper_minetest_release\bin\..\mods\u_skinsdb\win32.NET\init.lua
12:45:38: ERROR[main]: ModError: ModError: Failed to load and run C:\gsmapper_minetest_release\bin\..\mods\u_skinsdb\win32.NET\init.lua
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Wed Jul 23, 2014 17:02

Inocudom wrote:C:\gsmapper_minetest_release\bin\..\mods\u_skinsdb\win32.NET\init.lua
12:45:38: ERROR[main]: ModError: ModError: Failed to load and run C:\gsmapper_minetest_release\bin\..\mods\u_skinsdb\win32.NET\init.lua

Okay.
Fixed them.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Skins for unified_inventory [u_skins]

by Inocudom » Wed Jul 23, 2014 18:01

You were successful in fixing the errors, but I don't know how to get the extra skins.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Wed Jul 23, 2014 18:19

Inocudom wrote:You were successful in fixing the errors, but I don't know how to get the extra skins.


The README, you did not read wrote:To download the latest skins you need to run:
"./update_from_db.py" OR
the win32.NET client
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Skins for unified_inventory [u_skins]

by Inocudom » Tue Aug 05, 2014 14:18

Calinou wrote:
Inocudom wrote:It looks like a new glitch has appeared concerning skins. When I change the skin that I am using ingame, the player model becomes a solid color and stays that way until the next play session. The mods I used are below:
https://github.com/minetest-technic/datastorage-datastorage
https://forum.minetest.net/viewtopic.php?f=11&t=3933-unified_inventory
https://forum.minetest.net/viewtopic.php?f=11&t=9807-u_skins
Yes, player_textures was removed from Carbone at the time.


3d_armor and wieldview probably don't support your skins mod.

Looks like there are mod conflicts here.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Skins for unified_inventory [u_skins]

by Inocudom » Thu Oct 02, 2014 20:44

Krock, would you be able to post this mod in the forums of Freeminer? If you do, you will have to post a link to the unified_inventory mod.
 

mgl
Member
 
Posts: 35
Joined: Wed Sep 10, 2014 16:13
GitHub: mgl512

Re: [Mod] Skins for unified_inventory [u_skins]

by mgl » Sun Oct 05, 2014 10:24

Minetestforfun's post in the old u_skins thread made me remember about this fix in the script "update_from_db.py": the base64 functions need bytes, not strings.
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
diff --git a/update_from_db.py b/update_from_db.py
index 123b200..2aefcf7 100755
--- a/update_from_db.py
+++ b/update_from_db.py
@@ -31,7 +31,7 @@ def addpage(page):
    pages = int(l["pages"])
    for s in l["skins"]:
       f = open(skinsdir + "character_" + str(i) + ".png", "wb")
-      f.write(base64.b64decode(s["img"]))
+      f.write(base64.b64decode(bytes(s["img"], 'utf-8')))
       f.close()
       f = open(metadir + "character_" + str(i) + ".txt", "w")
       f.write(str(s["name"]) + '\n')
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Sun Oct 05, 2014 16:29

mgl wrote:Minetestforfun's post in the old u_skins thread made me remember about this fix in the script "update_from_db.py": the base64 functions need bytes, not strings.

Thank you!
Fix error in update script [untested]
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Fritigern
Member
 
Posts: 43
Joined: Mon Sep 29, 2014 11:01
In-game: Fritigern

Re: [Mod] Skins for unified_inventory [u_skins]

by Fritigern » Tue Oct 07, 2014 23:51

You REALLY need to replace StandardError with something else, like Exception.
From http://www.diveintopython3.net/porting- ... ndarderror (but there are many many other sources for this) :
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
In Python 2, StandardError was the base class for all built-in exceptions other than StopIteration, GeneratorExit, KeyboardInterrupt, and SystemExit. In Python 3, StandardError has been eliminated; use Exception instead.


However, even with that fix applied, I keep getting the following error at random moments in the download process:
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
Traceback (most recent call last):
  File "./update_from_db.py", line 58, in <module>
    addpage(p+2)
  File "./update_from_db.py", line 25, in addpage
    data = r.read().decode()
AttributeError: 'int' object has no attribute 'read'

I have never succesfully downloaded all the skins, it has ALWAYS exited with an error. Did nobody ever catch this?
--
This is NOT a sig.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Wed Oct 08, 2014 10:23

Fritigern wrote:<snip>

I have never succesfully downloaded all the skins, it has ALWAYS exited with an error. Did nobody ever catch this?

I never got this error when I tested it. (two months ago)
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
      except Exception:
         if r != 0:
            if r.status != 200:
               print("Error", r.status)
               exit(r.status)
      data = r.read()

Seems like r is 0 because all other would result in an error message.
I tried to fix it but can't test it right now.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Fritigern
Member
 
Posts: 43
Joined: Mon Sep 29, 2014 11:01
In-game: Fritigern

Re: [Mod] Skins for unified_inventory [u_skins]

by Fritigern » Tue Oct 14, 2014 08:16

This persistent failure to successfully download the skins has led to me writing a bash script of my own. And that one works flawlessly for me.
You have already added my script on Github, so if anyone has a similar issue, they should either update the mod, or download the archive and re-install. :-)
--
This is NOT a sig.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Sun Nov 23, 2014 18:57

Added tooltips

Image
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: [Mod] Skins for unified_inventory [u_skins]

by ExeterDad » Sun Nov 23, 2014 19:37

+100!
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Skins for unified_inventory [u_skins]

by Minetestforfun » Sun Nov 23, 2014 21:45

good update, thank you !
 

User avatar
mtmodder148
Member
 
Posts: 131
Joined: Wed May 14, 2014 13:44
GitHub: MT-Modder
In-game: mtmodder148

Re: [Mod] Skins for unified_inventory [u_skins]

by mtmodder148 » Sun Nov 23, 2014 23:10

Cool thank you very much. I wasn't sure how difficult it would be but bam! done the next day simply awesome :)
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Skins for unified_inventory [u_skins]

by Minetestforfun » Sun Dec 14, 2014 23:49

Hi,

I am looking for christmas skins for my players...
Please, somebody can share his christmas/santa skins with us ? :D

(For the moment, you don't have christmas/santa skins in the DB of u_skins...)
 

darkninja
Member
 
Posts: 13
Joined: Sun Mar 16, 2014 11:01

Re: [Mod] Skins for unified_inventory [u_skins]

by darkninja » Fri Jan 02, 2015 19:28

Ive have tried to run it but it says folder meta not found. "Meta" Is very much there. please help.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Sat Jan 03, 2015 17:57

darkninja wrote:Ive have tried to run it but it says folder meta not found. "Meta" Is very much there. please help.

That directory must be called "meta", not "Meta". Windows can handle those but not Linux.
If renaming the directory does not solve the problem:
- Do you have the newest u_skins version?
- Which updater are you using?
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Lukester
Member
 
Posts: 16
Joined: Thu Nov 06, 2014 23:53
In-game: Lukester

Re: [Mod] Skins for unified_inventory [u_skins]

by Lukester » Fri Jan 09, 2015 16:39

 

User avatar
mahmutelmas06
Member
 
Posts: 355
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: [Mod] Skins for unified_inventory [u_skins]

by mahmutelmas06 » Mon Mar 02, 2015 15:27

Could be nice if we could use the mod with blockmen's caracter hand mod
viewtopic.php?f=9&t=7286
My Mods:

Beverage
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Mon Mar 02, 2015 18:50

mahmutelmas06 wrote:Could be nice if we could use the mod with blockmen's caracter hand mod
viewtopic.php?f=9&t=7286

BlockMen wrote:Notice: This only works for singleplayer, because you cant change the hand for each player...

Well I can't change that. A better soulation is using the model directly as hand.
Currently, it's just a texture which looks like a "hand".
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Skins for unified_inventory [u_skins]

by Minetestforfun » Sat Apr 11, 2015 12:42

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=9100

Thank you in advance for your answers !
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Sat Apr 11, 2015 13:31

Minetestforfun wrote:I tried "simple_skins" with "u_skins" with <snip>

Sorry but I can't do more than this:
https://github.com/SmallJoker/minetest- ... ommit/e762

There might be texture name conflicts, I can not solve them without renaming all player textures.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Skins for unified_inventory [u_skins]

by Minetestforfun » Sat Apr 11, 2015 20:30

Thank you Krock, i think it will be a great solution, we are trying this solution right now.

For the name conflicts, don't worry, our "simple_skins" mod is empty because we fill it with players creation skins

(EDIT : Finally we code our own solution wich need only the mod "u_skins" https://github.com/Ombridride/minetest- ... 70786d298e it's an early release, so it's not over but, we are in the good way)
 

Gon_17
Member
 
Posts: 26
Joined: Mon May 25, 2015 22:26
In-game: Goon

Re: [Mod] Skins for unified_inventory [u_skins]

by Gon_17 » Fri May 29, 2015 02:00

Nice Mod
 

Gon_17
Member
 
Posts: 26
Joined: Mon May 25, 2015 22:26
In-game: Goon

Re: [Mod] Skins for unified_inventory [u_skins]

by Gon_17 » Fri May 29, 2015 22:08

How to istall?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Sat May 30, 2015 09:55

Gon_17 wrote:How to istall?

Image

See also: Helpful videos
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Minetest_Neko_
New member
 
Posts: 9
Joined: Thu Nov 17, 2016 01:26
GitHub: GitMee
IRC: Roc
In-game: Neko_

Re: [Mod] Skins for unified_inventory [u_skins]

by Minetest_Neko_ » Thu Nov 17, 2016 04:23

Hpw to i get the inventory you have? i ahve default inventory
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Skins for unified_inventory [u_skins]

by Krock » Fri Nov 18, 2016 17:50

Minetest_Neko_ wrote:Hpw to i get the inventory you have? i ahve default inventory

It's called unified_inventory, which can be found here. By the way, that mod is required to be installed and activated to make u_skins work.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: Google [Bot] and 20 guests

cron