Bug#404826: prboom.wad contains material from doom and wolfenstein 3d

Jon Dowland bugs at alcopop.org
Sun Dec 31 16:14:49 CET 2006


On Sun, Dec 31, 2006 at 02:27:19PM +0000, Jon Dowland wrote:
> I've attached "output.txt" which identifies which graphics are 
> problematic. first column is graphic lump (+.gif suffix); second column 
> is lump width; third is lump height; fourth is the text of the lump.
> 
> I'm now going to try and generate alternatives.

The attached script generates lumps that are nearly good enough to 
substitute in: I just have to make sure the palette indexes don't get 
mangled.
-------------- next part --------------
#!/bin/sh

while read line; do
    set -- $line
    file="$1"
    width="$2"
    height="$3"
    shift
    shift
    shift
    text="$*"
    text=$(echo "$text" | tr a-z A-Z)

    TMP1=$(mktemp)
    mv "$TMP1" "$TMP1.png"
    TMP1="$TMP1.png"

    convert \
      -resize "${width}x${height}!" \
      base.png "$TMP1"

    convert -fill red -font Helvetica-Bold    \
      -pointsize 16                \
        -gravity west         \
          -draw "text 0,0 '$text'"  \
        "$TMP1" "$file"
done < output.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: base.png
Type: image/png
Size: 568 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20061231/882702c6/base.png


More information about the Pkg-games-devel mailing list