open MT-Skin Database

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: open MT-Skin Database

by addi » Wed Dec 24, 2014 15:51

srifqi wrote:addi, why not use canvas renderer? AFAIK x3dom supports canvas renderer.

it uses the canvas renderer by default, but if it is not aviable (old grafic-drivers, blacklistet, etc.), it falls back to flash.
so it should display somethin on all browsers, but the flash fallback does not support transparency, so the head is black.
i using the flash falback because its imo better than just show an error message.
Alt. Tester wrote:What are the Requirements to run this off an site?

I have an MySQL already just not sure what else. ans Don't know will work with got.

im not shure if i understand you correctly, but if you want to use your own skin DB on your own server, you require a server with php and MySql.
in 2-3 days may i give you a detailed instruction how to set up, if you need it.

if you only want a page, that displays the skins from this DB, you may need the code in attachment (its an indev not public version maybe buggy), this does only requiere a html browser. just open the index.html file

btw: merry Christmas @ all :-)
Attachments
mt-skin-db-ui.7z
more or less unstable indev version of the skin db user interface
(348.98 KiB) Downloaded 42 times
 

User avatar
TG-MyinaWD
Member
 
Posts: 356
Joined: Thu May 08, 2014 21:22
Location: Far Eden
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: open MT-Skin Database

by TG-MyinaWD » Wed Dec 24, 2014 17:34

Yeah, I can run php no problem.
But I plan host an MT Skin Database just don't know how install it and, don't know if run off a subdomain. Well Like "example.yourdomain.tld" Anyway I to wondering if possible to have like import.*.* as the upload subdomain and have gallery.*.* To see the skins and can search though the MySQL Database.

And, a Marry Christmas to you all to.
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

User avatar
TG-MyinaWD
Member
 
Posts: 356
Joined: Thu May 08, 2014 21:22
Location: Far Eden
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: open MT-Skin Database

by TG-MyinaWD » Sat Apr 11, 2015 01:56

Hey there addi I mange to install it to my website XD now All I need help is on getting the Licences system to work.

And that should be all need I think.
But yeah what me know so as you can, on how get the Licences tab to work since it showing no Licences.
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: open MT-Skin Database

by addi » Sat Apr 11, 2015 04:16

Alt. Tester wrote:Hey there addi I mange to install it to my website XD now All I need help is on getting the Licences system to work.

And that should be all need I think.
But yeah what me know so as you can, on how get the Licences tab to work since it showing no Licences.

oh sorry i totally forgott about it.
the licenses are also in a mysql table contains the id, the name, the link, and the imagelink wich is displayed in the list.
the User Interface gets that table with JSON and inserting it into the dropdown menu.

use the following MySql command to create the table and insert the licenses:
Code: Select all
CREATE TABLE IF NOT EXISTS `mt_skins_licenses` (
  `id` tinyint(4) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `url` varchar(255) DEFAULT NULL,
  `text` text NOT NULL,
  `imgurl` varchar(255) NOT NULL COMMENT 'url of image displayed in the db',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='the list of possible licenses' AUTO_INCREMENT=8 ;

INSERT INTO `mt_skins_licenses` (`id`, `name`, `url`, `text`, `imgurl`) VALUES
(1, 'CC BY-SA 3.0', 'http://creativecommons.org/licenses/by-sa/3.0/', '', 'http://i.creativecommons.org/l/by-sa/3.0/88x31.png'),
(2, 'CC BY-NC-SA 3.0', 'http://creativecommons.org/licenses/by-nc-sa/3.0/', '', 'http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png'),
(3, 'CC BY 3.0', 'http://creativecommons.org/licenses/by/3.0/ ', '', 'http://i.creativecommons.org/l/by/3.0/88x31.png'),
(4, 'CC BY 4.0', 'http://creativecommons.org/licenses/by/4.0/ ', '', 'http://i.creativecommons.org/l/by/4.0/88x31.png'),
(5, 'CC BY-SA 4.0', 'http://creativecommons.org/licenses/by-sa/4.0/', '', 'http://i.creativecommons.org/l/by-sa/4.0/88x31.png'),
(6, 'CC BY-NC-SA 4.0', 'http://creativecommons.org/licenses/by-nc-sa/4.0/', '', 'http://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png'),
(7, 'CC 0 (1.0)', 'http://creativecommons.org/publicdomain/zero/1.0/', '', 'http://i.creativecommons.org/l/zero/1.0/88x31.png');
 

User avatar
TG-MyinaWD
Member
 
Posts: 356
Joined: Thu May 08, 2014 21:22
Location: Far Eden
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: open MT-Skin Database

by TG-MyinaWD » Sat Apr 11, 2015 13:34

+ Quotes


Thanks working fine! now I only have on Question left to ask. where is the max byte size upload, part at? since I can't upload my skin on mine but can on yours. and it is 15kb. so I was wondering where can I change it to 50kb? thanks again too.

Edit: Oh and also am I suppose to set the Engine to something for the MySQL? or do MySQL use InnoDB?
And also I tried to uploading an skin wasn't to big like only 2kb and when I hit the upload button it just sits there and don't upload so idk if due I am missing something or the upload fiction is disable.. but I am using the code from the first post so idk if I suppose or not.
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: open MT-Skin Database

by addi » Sun Apr 12, 2015 06:23

Alt. Tester wrote:Thanks working fine! now I only have on Question left to ask. where is the max byte size upload, part at? since I can't upload my skin on mine but can on yours. and it is 15kb. so I was wondering where can I change it to 50kb? thanks again too.

currently there is no limitation to file-size. the upload.php only checks if it is a valid .png file with a resolution 64x32.
if its not the case, you should get a error message: "ERROR: NOT a valid Skin file." do you get any error message?

Alt. Tester wrote:Edit: Oh and also am I suppose to set the Engine to something for the MySQL? or do MySQL use InnoDB?

InnoDB is a MySql Storage engine like MyIsam. InnoDB is a bit faster for fetching entries than myIsam so i choosed this one. but normaly it should not care.

difficult to say where the error is.Does javascript call the upload funktion? Does the browser sent it to server? Does the server get the file? does the server insert entries to the MySql Database?
 

User avatar
ADFENO
New member
 
Posts: 9
Joined: Wed Jan 02, 2013 14:58
Location: Santa Catarina, Brazil
IRC: adfeno
In-game: adfeno

Re: open MT-Skin Database

by ADFENO » Fri Jun 12, 2015 20:14

Not sure if you'll pay attention to this post, but since I'm one of the various free software activists, I also consider JavaScript to be software at some point, specially for client-side/browser execution. And I have noticed that a user currently can't use that site without non-free JavaScript. I'm not telling to remove it entirely, just to release it as free software in a way that the machine can read.

We could address this in two ways:

Method 1:

Based on: https://www.gnu.org/philosophy/javascript-trap.html

- Try to remove nontrivial JavaScript, that is, those which: 1. Make AJAX requests, or are loaded along scripts which do such things. 2. Load external scripts dynamically or are loaded with scripts that do so. 3. Define functions or methods and either load an external script (from HTML) or are loaded as such. 4. Use dynamic JavaScript constructs that are difficult to analyze without interpreting the program, or are loaded along with scripts that use such constructs. These include the eval function, calling methods with the square bracket notation, and any other construct than a string literal with methods like Obj.write and Obj.createElement.

- Insert data which tells the user (and non-free JavaScript detection software like GNU LibreJS) the license of the JavaScript being executed, as well as where to get the source code for the current script. Like using the multiline comments "// @source" and "@licstart The following is the entire license notice for the JavaScript code in this page. ... License goes here ... @licend The above is the entire license notice for the JavaScript code in this page." .

- If possible, we could embed the script in the HTML pages through server-side includes, this allows us to make it available through a single line, in all HTML pages, and focus on the JavaScript development, and still load it in all pages, but we must talk to the site host to enable SSI. It's better than rellying on PHP and JavaScript includes.

Method 2 (more drastic):

- Could make the site use only CSS, basic HTML and PHP, without javascript or images for menus or other important buttons. The user could of course have a button to load the HTML5 version of the site.
 

User avatar
rubenwardy
Moderator
 
Posts: 5801
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: open MT-Skin Database

by rubenwardy » Fri Jun 12, 2015 20:31

What non free js are you talking about?

addi wrote:The code is aviable as git repo and the licence is lgpl v3
 

User avatar
ADFENO
New member
 
Posts: 9
Joined: Wed Jan 02, 2013 14:58
Location: Santa Catarina, Brazil
IRC: adfeno
In-game: adfeno

Re: open MT-Skin Database

by ADFENO » Fri Jun 12, 2015 21:00

Hm.... So it seems we just need to add the license and source code in a machine-readable manner.

Respectufully, Adonay.
Have a nice day.
 

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: open MT-Skin Database

by addi » Sat Jun 13, 2015 10:07

I added now the information "// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later" to the website.
I hope your machine can read it. (I can not read it :-) ) Im using x3dom libwich is dual licensed under the MIT and GPL licenses. I cannot change their behaviour, may you have to add it to your whitelist.
 

User avatar
ADFENO
New member
 
Posts: 9
Joined: Wed Jan 02, 2013 14:58
Location: Santa Catarina, Brazil
IRC: adfeno
In-game: adfeno

Re: open MT-Skin Database

by ADFENO » Sun Jun 14, 2015 18:40

Well... Perhaps a direct approach (since JavaScript itself is it's own source), where any JavaScript is executed, we could do:

Code: Select all
/*
 @licstart  The following is the entire license notice for the
 JavaScript code in this page.

 Copyright (C) YYYY  Developer

 The JavaScript code in this page is free software: you can
 redistribute it and/or modify it under the terms of the GNU
 General Public License (GNU GPL) as published by the Free Software
 Foundation, either version 3 of the License, or (at your option)
 any later version.  The code is distributed WITHOUT ANY WARRANTY;
 without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.

 As additional permission under GNU GPL version 3 section 7, you
 may distribute non-source (e.g., minimized or compacted) forms of
 that code without the copy of the GNU GPL normally required by
 section 4, provided you include this license notice and a URL
 through which recipients can access the Corresponding Source.

 @licend  The above is the entire license notice
 for the JavaScript code in this page.
*/


Note: The forum probably broke the text indentation.

Respectfully, Adonay.
Have a nice day.
 

User avatar
cd2
Member
 
Posts: 562
Joined: Mon Jun 01, 2015 06:30
Location: Linux
GitHub: cdqwertz
In-game: cd cd2
 

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

User avatar
benrob0329
Member
 
Posts: 1301
Joined: Thu Aug 06, 2015 22:39
Location: Michigan
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03

Re: open MT-Skin Database

by benrob0329 » Fri Aug 07, 2015 00:52

Maybe its a problem with the u_skinsdb mod, but some skins uploaded by a friend don't show up in the sync...
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA
 

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: open MT-Skin Database

by addi » Sun Aug 09, 2015 14:49

are that skins visible on the online webpage?
witch program do you use to sync, the python script (.py) the .exe file or the .sh script?
 

User avatar
benrob0329
Member
 
Posts: 1301
Joined: Thu Aug 06, 2015 22:39
Location: Michigan
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03

Re: open MT-Skin Database

by benrob0329 » Sun Aug 09, 2015 23:12

The .py script, it syncs everything else. Just not bropower57's skins...
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA
 

User avatar
benrob0329
Member
 
Posts: 1301
Joined: Thu Aug 06, 2015 22:39
Location: Michigan
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03

Re: open MT-Skin Database

by benrob0329 » Sun Nov 15, 2015 15:51

Anyone know of an MT compatible skin creator? Last time I checked Miners Need Cool Shoes was giving weirdly formated textures...
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA
 

User avatar
rubenwardy
Moderator
 
Posts: 5801
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: open MT-Skin Database

by rubenwardy » Sun Nov 15, 2015 16:34

You need a skin editor which can edit older than MC 1.8 skins. Maybe an old version of the editor you mention.
 

bbaez
Member
 
Posts: 51
Joined: Wed Jul 09, 2014 15:24

Re: open MT-Skin Database

by bbaez » Wed Nov 25, 2015 23:17

Just started creating skins and ran into the issue I think was last reported. So MT uses the first 64x32 and not what the new MC skins editors are creating that are 64x64? This was racking my brain since found no mention of it after searching the web.

Thanks
Attachments
Hinata.png
(1.49 KiB) Not downloaded yet
 

bbaez
Member
 
Posts: 51
Joined: Wed Jul 09, 2014 15:24

Re: open MT-Skin Database

by bbaez » Wed Nov 25, 2015 23:23

Of course, once I post I find a helpful page. This explains the differences between the different Minecraft skin formats.

http://minecraft.gamepedia.com/Skin
 

User avatar
Hybrid Dog
Member
 
Posts: 2718
Joined: Thu Nov 01, 2012 12:46

Re: open MT-Skin Database

by Hybrid Dog » Fri Nov 27, 2015 18:31

Using imagemagick, you could make a mc→mt skin converter.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

User avatar
TG-MyinaWD
Member
 
Posts: 356
Joined: Thu May 08, 2014 21:22
Location: Far Eden
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: open MT-Skin Database

by TG-MyinaWD » Wed Mar 30, 2016 21:43

Can you make this into a .zip trying add to my site and can't open .7z atm.
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: open MT-Skin Database

by addi » Sun Apr 03, 2016 04:16

Sorry for my late response.
Here is he actual SkinDB is as .zip in attachment
Attachments
SkinDB.zip
(1022.05 KiB) Downloaded 31 times
 

User avatar
prof-turbo
Member
 
Posts: 518
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

Re: open MT-Skin Database

by prof-turbo » Sun Apr 10, 2016 13:10

This database is really cool, but the problem is it contains too much garbarge. It's a problem since mods like u_skins don't check what skins it contains and just use them all (well ok that's more like u_skins problem)
 

User avatar
addi
Member
 
Posts: 658
Joined: Thu Sep 20, 2012 03:16
Location: Black-Forest, Germany
GitHub: adrido

Re: open MT-Skin Database

by addi » Sun Apr 10, 2016 15:54

Yes, thats sadly true. I tried to solve that issue with the tags-system. My plan was to add tags like "Human", "Animal", "Mob", "withCape", "fromMinecraft", "Medival", ...
Then the fetching tool could only fetch "Human" skins, or "Human or Animal" but I had not the time to finisch it.
If somebody could finish it for me I would be very grateful.
 

PreviousNext

Return to Minetest-related projects



Who is online

Users browsing this forum: No registered users and 7 guests