GithubHelp home page GithubHelp logo

minetest-u_skinsdb's People

Contributors

dmonty2 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

minetest-u_skinsdb's Issues

missing jq in readme

I miss a hint that generate_previews.sh needs jq to be installed.

for ubuntu it would be sudo apt-get install jq

Support for "Numeric author" in skindb

There are some "numeric" authors in skindb that produces the error

Page: 58
Traceback (most recent call last):
  File "update_from_db2.py", line 43, in <module>
    addpage(p+2)
  File "update_from_db2.py", line 35, in addpage
    f.write('name = "'+s["name"]+'",\n')
TypeError: Can't convert 'int' object to str implicitly

So we need the change like the next one

--- a/update_from_db2.py
+++ b/update_from_db2.py
@@ -32,9 +32,9 @@ def addpage(page):
                f.write(base64.b64decode(s["img"]))
                f.close()
                f = open(metadir+"character_"+str(i)+".txt",'w')
-               f.write('name = "'+s["name"]+'",\n')
-               f.write('author = "'+s["author"]+'",\n')
-               f.write('comment = "'+s["license"]+'",\n')
+               f.write('name = "'+str(s["name"])+'",\n')
+               f.write('author = "'+str(s["author"])+'",\n')
+               f.write('comment = "'+str(s["license"])+'",\n')
                f.close()
                i = i + 1
 addpage(1)

The second change that was needed is to change the path in the ".previews/skin_previews.blend" from "../skins/textures" to "../u_skins/textures"

By the way, please update the textures folder in git. Not everyone has python and blender installed. After running the update scripts I get up to 773 skins (previous it was 139 from git). So it will be nice to get all the skins directly after mod installation.

PS: thank you for the great work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.