Complete.Org: Mailing Lists: Archives: freeciv-dev: October 1998:
[Freeciv-Dev] Extract pixmaps to single files (and reverse)
Home

[Freeciv-Dev] Extract pixmaps to single files (and reverse)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Extract pixmaps to single files (and reverse)
From: Stefan Gronemeier <stefan@xxxxxxxxxxxxxxxx>
Date: Tue, 27 Oct 1998 03:30:43 +0100 (MET)

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 ...

Attachment: explode_tiles.sh.gz
Description: extract_tiles.sh.gz

Attachment: implode_tiles.sh.gz
Description: implode_tiles.sh.gz


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Extract pixmaps to single files (and reverse), Stefan Gronemeier <=