This is a perl script that converts an image, into a *.cfg file which is compatible with cube-art (by SomeDude). I re-created the converter so that i could convert images when using linux/bsd. You only need this script for converting images if you are not running windows.
This perl script is a replacement for the SauerConverter.exe in SomeDude's cube-art mod:
http://quadropolis.us/node/3140
To use this script, from your shell:
$ perl cubeart.pl /path/to/your/image myimage.cfg
And then move the generated cfg file into your cube-art folder. Note that alpha channels seem to be broken with my script and are disabled for the moment.
Here is an example image converted with this script and applied to a map using this cube-art converter, and the original source image, suggesting it works correctly.
Please see attached file cubeart.pl for the script.
Attachment | Size |
---|---|
cubeart04.pl_.txt | 3.12 KB |