[Web/Skin] AwesomeSkins v1.1/1.2 - Awesome 2D skin representation (Nya Mine)

Discussion in 'Bukkit Tools' started by tyzoid, Apr 5, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    tyzoid

    Inspired by nya mine:
    http://forums.bukkit.org/threads/web-nya-mine-3-v0-1.122226/

    Tagging interested people: frozone2008 xGhOsTkiLLeRx Intern0

    __________________________________________
    AwesomeSkins v1.1 : [​IMG]
    Source released under the TPL: https://github.com/tyzoid/AwesomeSkins/blob/master/README.md#license

    I've recreated this, as there appears to be no progress towards releasing the source or any updates.

    I've included error checking: the username must be a minecraft username. The background is transparent - not white- and it has caching built-in, to improve loading times.

    I'm running the script on my koding server, feel free to use this URL. The source is also availble.

    Front-end generator: http://mctools.tyzoid.com/skins/

    Url: http://s.mclist.me/tyzoid.png
    gives:
    [​IMG]
    (new style, as people were complaining about missing parts of the skin):
    Url: http://s.mclist.me/new/tyzoid.png
    [​IMG]
    (with hats):
    Url: http://s.mclist.me/hat/tyzoid.png
    [​IMG]

    (Square):
    Url: http://s.mclist.me/square/hat/tyzoid.png
    [​IMG]

    USAGE:
    http://s.mclist.me/square/new/hat/tyzoid.png?update

    Have fun and enjoy!

    Todo:
    • API request for smaller images
    • Thinner Stroke by request. (with /thin/ option)
    • Open to suggestions for additional features.

    SkinCacheCheck:
    Check if and what styles your skin has been cached for.

    Here is the full cache list, containing a list of all the skins requested and what is cached.
    http://mctools.tyzoid.com/skins/skins/skinlist.php

    To check a specific user, append ?user=<username> to the end of the URL. i.e.
    http://mctools.tyzoid.com/skins/skinlist.php?user=tyzoid

    Currently, the script only returns text, but it will soon show the cached images.

    Api Access:
    If you want to implement an automatic script that parses this result, add the flag "api" to any request. i.e.
    http://mctools.tyzoid.com/skins/skinlist.php?user=tyzoid&api
    or
    http://mctools.tyzoid.com/skins/skinlist.php?api

    This will guarantee that you get a machine readable text result.

    Format: (instead of four spaces, it is separated by tabs.)
    Code:
    username
        New Style
        Classic Style
    otherusername
        Classic Style
    someguy
        New Style
    
    Error Codes:
    Applies for both AwesomeSkins and SkinCacheCheck

    Script Errors:
    • 100: Invalid Username
      • Returned if the username is an invalid format.
    • 101: Access denied or skin doesn't exist
      • Returned if the skin cannot be accessed.
      • "notch" is an example of one such username (in this case, it must be capitalized: Notch).
      • Remeber: usernames are case-sensitive here.
    • 102: user not cached (SkinCacheCheck only)
      • Returned if the user is not cached when trying quering SkinCacheCheck
    Changelog:

    (red changlog features indicate that this only applies to the web interface I run, not the downloadable script)
    1.2 (Still in-dev, should be out soon)
    • Hat support
    • Easier to use image URLs (usable everywhere, as they now have a .png extension)
    • Improved caching.
    • Transparency works better now. (needed to refresh the cache for everyone).
    • Square images (append /square/ to the url - see above for ex.)
    • More/better admin scripts (for myself)
    1.1
    • More strict input checking.
    • Skin validation
    • Fixed mismatch with classic style
    1.0
    • Created Script

    Updated SkinCacheCheck (skinlist) to version 1.0. Api is on version 1. AwesomeSkins is now on version 1.1.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
    Skyost, Lemz0, aeronetwork and 13 others like this.
  2. Offline

    jorisk322

    It's amazing!
     
  3. Offline

    tyzoid

    Thanks!

    IMPORTANT:
    The url has been changed. This should not need to be changed again.

    If you used the old url in your scripts, make sure you change to the new URL.

    old: http://tyzoid.koding.com/mcb/skin.php?user=tyzoid
    new: http://tyzoid.koding.com/skins/skin.php?user=tyzoid

    The old URLs will stop working in one week, when I will take away the redirect.
    Sorry for any inconvenience.

    Added front-end: http://tyzoid.koding.com/skins/

    Enjoy!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  4. Offline

    xGhOsTkiLLeRx

    Looks really good :)
    I'll tell you when I break it :D
     
    tyzoid likes this.
  5. Offline

    tyzoid

    Be sure to!
     
  6. Offline

    DrAgonmoray

    I like it, but not a huge fan of the thick black stroke

    but they are soooooo cute
     
  7. Offline

    tyzoid

    Thanks! I quite like the stroke myself, though.
     
  8. Offline

    WolfGangSen

    Add a flag to use the over layer aswell.

    For instance my friends skin looks really silly without the outer head layer because he adds hair with that layer

    so take the normal face and then put the next layer over it and just ignore anything with alpha
     
  9. Offline

    tyzoid

    Sure. I was thinking about that, but I think the transparencies don't quite match up. I'll double check.

    WolfGangSen
    _______________
    Added hat support and easier-to-use URLs.

    URL: http://tyzoid.koding.com/skins/image/hat/tyzoid.pn
    [​IMG]

    I've found out that koding blocks all requests to png's from outside of their site. Rename "png" to "pn" to get the images to work for now.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  10. Offline

    WolfGangSen

    [​IMG][​IMG][​IMG]
    Okay
    It seems there is something wrong with the third skin.
    hmm... or maybe not. Can't remember what its supposed to look like >.<

    apart from that these are awesome
     
    tyzoid likes this.
  11. Offline

    Hoolean

    Loving it :D

    [​IMG]
     
    tyzoid likes this.
  12. Offline

    tyzoid

  13. Offline

    DrAgonmoray

  14. Offline

    Deleted user

    Skins are down.
     
  15. Offline

    tyzoid

    Works fine from here...
     
  16. Offline

    Deleted user

  17. Offline

    MysteryManX

    Gayness, activate!

    OMFG THESE ARE SO CUTE! :D :D :D


    MysteryManX93.png
     
    tyzoid likes this.
  18. Offline

    np98765

    [​IMG]

    I could just stare at myself all day.
     
    tyzoid likes this.
  19. Offline

    TNTUP

    Awesome :D Working on my webserver (skin.php) =D EXAMPLE

    Seems the SkinCacheCheck and the Frontend isn't released. And "hat" argument isn't included XD

    Love this thing, Thanks!
     
  20. Offline

    tyzoid

    Hats are enabled in 1.2, which isn't released yet.

    Edit: although, feel free to use my service. It is designed to operate like minotar does.
     
  21. Offline

    TNTUP

    Oh XD ya thanks :)

    EDIT: lol im getting access denied because the player doesn't have a skin... Can it load the default steve skin?
     
  22. Offline

    tyzoid

    TNTUP
    Unfortunately, there is no "steve" character, however minotar has a method of doing this (which I could implement easily).

    The only issue is that this would only happen if the player doesn't have a skin, i.e. in offline mode. If you wish me to implement this, you'd have to give me another valid reason, as I do not support offline mode.
     
  23. I like what I see, i'll check it out! ;D
     
  24. Offline

    tyzoid

    Just a quick poll, would anyone be interested in prints of their character? I'm going to look up prices/see if I can have them shipped directly to you, but I want to see if there is any interest first.
     
  25. maybe ;D
    #poortho
     
  26. Offline

    tyzoid

    It'd probably be ~$5-10 USD, but I didn't really look around that much.
     
  27. Oh, nice ;D
    whats gonna be da cost of shipping tho c;
     
  28. Offline

    tyzoid

    Probably not much, I think that figure includes shipping, though like I said, I haven't looked very much. Different poster sizes/types may be more or less.
     
  29. *cough* give inspectorfacepalm a discount *cough*
     
    tyzoid likes this.
  30. Offline

    marlboromoo

    Awesome !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <3

    [​IMG]
     
    MrBluebear3 and tyzoid like this.
Thread Status:
Not open for further replies.

Share This Page