diff options
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | depends.txt (renamed from u_skins/depends.txt) | 0 | ||||
-rw-r--r-- | init.lua (renamed from u_skins/init.lua) | 0 | ||||
-rw-r--r-- | locale/de.txt (renamed from u_skins/locale/de.txt) | 0 | ||||
-rw-r--r-- | locale/template.txt (renamed from u_skins/locale/template.txt) | 0 | ||||
-rw-r--r-- | meta/character_1.txt (renamed from u_skins/meta/character_1.txt) | 0 | ||||
-rw-r--r-- | meta/character_2.txt (renamed from u_skins/meta/character_2.txt) | 0 | ||||
-rw-r--r-- | meta/placeholder.txt (renamed from u_skins/meta/placeholder.txt) | 0 | ||||
-rw-r--r-- | modpack.txt | 0 | ||||
-rw-r--r-- | players.lua (renamed from u_skins/players.lua) | 0 | ||||
-rw-r--r-- | skinlist.lua (renamed from u_skins/skinlist.lua) | 0 | ||||
-rw-r--r-- | textures/character_1.png (renamed from u_skins/textures/character_1.png) | bin | 2055 -> 2055 bytes | |||
-rw-r--r-- | textures/character_1_preview.png (renamed from u_skins/textures/character_1_preview.png) | bin | 783 -> 783 bytes | |||
-rw-r--r-- | textures/character_2.png (renamed from u_skins/textures/character_2.png) | bin | 3223 -> 3223 bytes | |||
-rw-r--r-- | textures/character_2_preview.png (renamed from u_skins/textures/character_2_preview.png) | bin | 1051 -> 1051 bytes | |||
-rw-r--r-- | textures/inventory_plus_skins.png (renamed from u_skins/textures/inventory_plus_skins.png) | bin | 673 -> 673 bytes | |||
-rw-r--r-- | textures/u_skins_button.png (renamed from u_skins/textures/u_skins_button.png) | bin | 338 -> 338 bytes | |||
-rw-r--r-- | textures/ui_misc_form.png (renamed from u_skins/textures/ui_misc_form.png) | bin | 9354 -> 9354 bytes | |||
-rw-r--r-- | updater/MT_skins_updater.cs (renamed from MT_skins_updater.cs) | 0 | ||||
-rw-r--r-- | updater/MT_skins_updater.exe (renamed from MT_skins_updater.exe) | bin | 10752 -> 10752 bytes | |||
-rw-r--r-- | updater/Newtonsoft.Json.dll (renamed from Newtonsoft.Json.dll) | bin | 491008 -> 491008 bytes | |||
-rwxr-xr-x | updater/update_from_db.py (renamed from update_from_db.py) | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | updater/update_skins_db.sh (renamed from update_skins_db.sh) | 7 |
23 files changed, 10 insertions, 8 deletions
@@ -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: -------- diff --git a/u_skins/depends.txt b/depends.txt index d6abd12..d6abd12 100644 --- a/u_skins/depends.txt +++ b/depends.txt diff --git a/u_skins/init.lua b/init.lua index 2d3246c..2d3246c 100644 --- a/u_skins/init.lua +++ b/init.lua diff --git a/u_skins/locale/de.txt b/locale/de.txt index 6ad87f3..6ad87f3 100644 --- a/u_skins/locale/de.txt +++ b/locale/de.txt diff --git a/u_skins/locale/template.txt b/locale/template.txt index 6412b7f..6412b7f 100644 --- a/u_skins/locale/template.txt +++ b/locale/template.txt diff --git a/u_skins/meta/character_1.txt b/meta/character_1.txt index 7211029..7211029 100644 --- a/u_skins/meta/character_1.txt +++ b/meta/character_1.txt diff --git a/u_skins/meta/character_2.txt b/meta/character_2.txt index 0187cab..0187cab 100644 --- a/u_skins/meta/character_2.txt +++ b/meta/character_2.txt diff --git a/u_skins/meta/placeholder.txt b/meta/placeholder.txt index a9e6fce..a9e6fce 100644 --- a/u_skins/meta/placeholder.txt +++ b/meta/placeholder.txt diff --git a/modpack.txt b/modpack.txt deleted file mode 100644 index e69de29..0000000 --- a/modpack.txt +++ /dev/null diff --git a/u_skins/players.lua b/players.lua index 3053530..3053530 100644 --- a/u_skins/players.lua +++ b/players.lua diff --git a/u_skins/skinlist.lua b/skinlist.lua index 718646c..718646c 100644 --- a/u_skins/skinlist.lua +++ b/skinlist.lua diff --git a/u_skins/textures/character_1.png b/textures/character_1.png Binary files differindex 8d0dd99..8d0dd99 100644 --- a/u_skins/textures/character_1.png +++ b/textures/character_1.png diff --git a/u_skins/textures/character_1_preview.png b/textures/character_1_preview.png Binary files differindex 62a9ff2..62a9ff2 100644 --- a/u_skins/textures/character_1_preview.png +++ b/textures/character_1_preview.png diff --git a/u_skins/textures/character_2.png b/textures/character_2.png Binary files differindex d794b87..d794b87 100644 --- a/u_skins/textures/character_2.png +++ b/textures/character_2.png diff --git a/u_skins/textures/character_2_preview.png b/textures/character_2_preview.png Binary files differindex 0736def..0736def 100644 --- a/u_skins/textures/character_2_preview.png +++ b/textures/character_2_preview.png diff --git a/u_skins/textures/inventory_plus_skins.png b/textures/inventory_plus_skins.png Binary files differindex 781b42f..781b42f 100644 --- a/u_skins/textures/inventory_plus_skins.png +++ b/textures/inventory_plus_skins.png diff --git a/u_skins/textures/u_skins_button.png b/textures/u_skins_button.png Binary files differindex cb49531..cb49531 100644 --- a/u_skins/textures/u_skins_button.png +++ b/textures/u_skins_button.png diff --git a/u_skins/textures/ui_misc_form.png b/textures/ui_misc_form.png Binary files differindex d34d326..d34d326 100644 --- a/u_skins/textures/ui_misc_form.png +++ b/textures/ui_misc_form.png diff --git a/MT_skins_updater.cs b/updater/MT_skins_updater.cs index 6d27da0..6d27da0 100644 --- a/MT_skins_updater.cs +++ b/updater/MT_skins_updater.cs diff --git a/MT_skins_updater.exe b/updater/MT_skins_updater.exe Binary files differindex 5b4ee3e..5b4ee3e 100644 --- a/MT_skins_updater.exe +++ b/updater/MT_skins_updater.exe diff --git a/Newtonsoft.Json.dll b/updater/Newtonsoft.Json.dll Binary files differindex 054c933..054c933 100644 --- a/Newtonsoft.Json.dll +++ b/updater/Newtonsoft.Json.dll diff --git a/update_from_db.py b/updater/update_from_db.py index 159acf7..685d1e0 100755 --- a/update_from_db.py +++ b/updater/update_from_db.py @@ -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 diff --git a/update_skins_db.sh b/updater/update_skins_db.sh index 8bf9e1a..8028b42 100644..100755 --- a/update_skins_db.sh +++ b/updater/update_skins_db.sh @@ -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 === |