76

Re: Working on: a new skin system for 0.7 or 0.8

And also... how do you handle the shadow o.o

77

Re: Working on: a new skin system for 0.7 or 0.8

I like the idea, but if you could clean up the teeskin a little then Tees would start to look like tees again.

no

78

Re: Working on: a new skin system for 0.7 or 0.8

Lord Kirby [HDP] wrote:

I like the idea, but if you could clean up the teeskin a little then Tees would start to look like tees again.

yeah they look kinda weird

Teeworlds!!!!

79

Re: Working on: a new skin system for 0.7 or 0.8

Add hats!
Sorry for reviving dead thread hmm

80 (edited by android272 2015-08-19 02:14:55)

Re: Working on: a new skin system for 0.7 or 0.8

I have seen youtube and in forms that the new skin system will DESTROY!!!!!!!!!!! TEEWORLDS because all the old skins will no longer work in the new version.  When I first saw this I thought dude its not that bad just crop out your skin into the folders.  Then I thought about how many skins there are for Teeworlds, how some people might just download the skins and not be able to do this, and how lazy we can get.  So I made the script below. 

All you have to do is place this script into the skin folder, make sure it is set as exhaustible and run it.  It will check to see if you have the folders needed for the new system and if you don't will create them for you. Then it will loop through all the .pngs in the skin folder copy them to the various folders, crop, rearrange the skin, save them, and make you a skin.skn file in your skin folder.  The developers will need to help with the skin.skn file as I did not know what to put for _hue, _sat, _lgt, _alp to not mess with the skin.

the only thing you need to do now is modify the eyes.  If your skin does not use the standard eyes then you need to modify them so that both eyes are in the one tile as the new system does not duplicate and flip them. If your skin does use the standard eyes then you will have to modify the skin.skn file and replace the last skin.png with standard.png.

I did write the lines to delete the old skin but I figured some might want to keep the old files for later.  If you want to delete the old skin then take away the '#' from '#deleteSkin

#!/bin/bash
checkEnv () {
    if test ! -d "./body"; then
          mkdir body
    fi

    if test ! -d "./tattoo"; then
          mkdir tattoo
    fi

    if test ! -d "./decoration"; then
          mkdir decoration
    fi   

    if test ! -d "./hands"; then
          mkdir hands
    fi

    if test ! -d "./feet"; then
          mkdir feet
    fi

    if test ! -d "./eyes"; then
          mkdir eyes
    fi   
}

stripBody() {
    cp $f "./body"

    cd "./body"

    convert $f -crop 96x96+0+0 output.png
    convert $f -crop 96x96+96+0 output2.png

    montage -geometry +1+1 output2.png output.png -background none output3.png

    mogrify -extent 384x96+0+0 -background none output3.png
   
    cp output3.png $f

    rm output.png output2.png output3.png

    cd ..
}

stripEyes() {
    cp $f "./eyes"

    cd "./eyes"

    convert $f -crop 576x32+64+96 output.png

    cp output.png $f

    rm output.png

    cd ..
}

stripFeet() {
    cp $f "./feet"

    cd "./feet"

    convert $f -crop 64x64+192+32 output.png

    cp output.png $f

    rm output.png

    cd ..
}

stripHands() {
    cp $f "./hands"

    cd "./hands"

    convert $f -crop 64x32+192+0 output.png

    cp output.png $f

    rm output.png

    cd ..
}

createSkin() {
    name=$(echo $f | cut -f 1 -d '.')
    touch "$name.skn"

    echo "($f, body_hue, body_sat, body_lgt,
        $f, tatto_hue, tattoo_sat, tattoo_lgt, tattoo_alp
        $f, decoration_hue, decoration_sat, decoration_lgt,
        $f, hands_hue, hands_sat, hands_lgt,
        $f, feet_hue, feet_sat, feet_lgt,
        $f, eyes_hue, eyes_sat, eyes_lgt)" >> $name.skn
}

deletSkin() {
    rm $f
}

checkEnv

for f in *.png; do
    stripBody
    stripEyes
    stripFeet
    stripHands
    createSkin
    #deletSkin
done

Jesus is my Lord and Savior. Praise be unto God for giving us a way to live with him.

Check out my DeviantArt for all my TeeWorlds art and ideas for Teeoworlds