The u_skins is a mod, not a modpack. Moved u_skins to the root and all updater stuff to the (new) updater directory

This commit is contained in:
Alexander Weber 2016-09-05 21:02:53 +02:00
parent be8fa19b68
commit 8aef2c19ba
23 changed files with 10 additions and 8 deletions

7
README
View File

@ -6,9 +6,10 @@ It downloads the skins from the Minetest skin database. (http://minetest.fensta.
Requires latest unified_inventory from:
https://github.com/minetest-technic/unified_inventory
To download the latest skins you need to run:
"./update_from_db.py" OR
the win32.NET client
To download the latest there are 3 tools available in "updater" folder:
"./update_skins_db.sh" bash and jq required
"./update_from_db.py" python3 required
"MT_skins_updater.exe .." windows or mono required. ".." is the path to u_skins folder
Licenses:
--------

View File

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 783 B

After

Width:  |  Height:  |  Size: 783 B

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

View File

Before

Width:  |  Height:  |  Size: 338 B

After

Width:  |  Height:  |  Size: 338 B

View File

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -10,8 +10,8 @@ def die(message,code=23):
raise SystemExit(code)
server = "minetest.fensta.bplaced.net"
skinsdir = "u_skins/textures/"
metadir = "u_skins/meta/"
skinsdir = "../textures/"
metadir = "../meta/"
curskin = 0
curpage = 1
pages = None

7
update_skins_db.sh → updater/update_skins_db.sh Normal file → Executable file
View File

@ -14,9 +14,10 @@ NUMPAGES="1" # Number of pages. Default is 1 page
PERPAGE="2000" # Number of items per page. Default is 2000.
JSONURL="http://minetest.fensta.bplaced.net/api/get.json.php?getlist&page=$NUMPAGES&outformat=base64&per_page=$PERPAGE" # The URL to the database
PREVIEWURL="http://minetest.fensta.bplaced.net/skins/1/" # The url to the location of the previews.
temp=$PWD/tmp # Where the temp folder will be. Default is $PWD/tmp, which means that the tmp folder will be put in the current folder
METADEST=$PWD/u_skins/meta # This is the folder where the meta data will be saved
TEXTUREDEST=$PWD/u_skins/textures # This is the folder where the skins and the previews will be saved
curpath="$(dirname $0)" # all path are relative to this script place
temp="$curpath"/tmp # Where the temp folder will be. Default is $PWD/tmp, which means that the tmp folder will be put in the current folder
METADEST="$curpath"/../meta # This is the folder where the meta data will be saved
TEXTUREDEST="$curpath"/../textures # This is the folder where the skins and the previews will be saved
# === Make a bunch of folders and download the db ===