[mod] fetching all skins from skin db [skindb][0.1 alpha]

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

[mod] fetching all skins from skin db [skindb][0.1 alpha]

by addi » Thu Apr 17, 2014 13:33

WARNING: THIS IS CURRENTLY REALY UNSTABLE!

INFO: THIS MOD ADDS NO MECHANICS TO CHANGE THE PLAYERSKIN.

ok the most impartant stuff is sayed.

ive written now a mod wich fetches all skins from the SkinDB and writes that down to hdd (or SSD) :-P.
it should work on linux (tested with ubuntu)
but it does not work on Windows (currently).

it does not generate any (2d) preview of the skin.


How it works:

on each server start it connects to the skinDb an loads all skins into a luatable.

than it does delete the old skins.
after that it writes the new skins to the /textures folder.


here is the source code: https://bitbucket.org/kingarthursteam/skindb
Last edited by addi on Fri Aug 15, 2014 15:44, edited 1 time in total.
 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

by philipbenr » Thu Apr 17, 2014 14:16

Sounds really cool! I will test it this weekend.
"The Foot is down!"
 

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

by Krock » Thu Apr 17, 2014 14:32

addi wrote:but it does not work on Windows (currently).

Hmm why are you using lua?
It works fine under windows with phyton -> https://github.com/SmallJoker/minetest-u_skinsdb/blob/master/update_from_db_hacky.py
Most of that script isn't made by me. No idea about license and stuff...
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
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

by addi » Thu Apr 17, 2014 17:17

Krock wrote:
addi wrote:but it does not work on Windows (currently).

Hmm why are you using lua?
It works fine under windows with phyton -> https://github.com/SmallJoker/minetest-u_skinsdb/blob/master/update_from_db_hacky.py
Most of that script isn't made by me. No idea about license and stuff...


because I want to do it automatical, so that it could act like a mod where other mod can depend on it.
and that some people - wich dont know what they are doing - can easy use it.
([DE:] so dass es ein DAU - Dümmster anzunehmender user - auch hinbekommt) :-P

also another reason (also my goal) is, that it doese not have other requirements eg. install python, install blender,install something other,... etc.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

by Sokomine » Fri Apr 18, 2014 12:19

Sounds like a good idea. That way, players can find their skins ready to use once they connect. The only problem might be that there might be too many skins around.
A list of my mods can be found here.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 23 guests

cron