|
Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
October 1998: [Freeciv-Dev] Extract pixmaps to single files (and reverse) |
|
[Freeciv-Dev] Extract pixmaps to single files (and reverse)[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi all,
I have attached two small shell scripts: one to extract tiles.xpm,
units.xpm and small.xpm to single pixmap files, and one to re-pack
the single files into the files required by the current freeciv client.
They are based on ideas in the "civ2freecivUnits" script and require
the netpbm tools (which should be available for any unix).
To use the scripts: create a empty directory and put the two scripts
in it, copy tiles.xpm, units.xpm and small.xpm from $FREECIV_DATADIR
here. Run explode_tiles.sh. Directories tiles/ units/ smalls/ contain
the extracted pixmaps. View or edit the files as you like. To pack up
a new tileset run implode_tiles.sh. New tilesets are saved as
tiles-new.xpm, units-new.xpm and small-new.xpm (all needed files have to
be in the above directories, no checking for errors and the file names are
ugly; sorry, this is just a quick hack).
- Stefan Gronemeier
Note: The transparent color is not the first color with these scripts.
I am not sure if this is a problem ...
|