all repos — shwarp-tools @ 8ce357638261510cfce15141b7480b0b2aa58493

Tools and scripts

tool(render-timelapse): use variable for map name

Still only works if the map you're rendering is the first map in the
WAD, but that's my use case---rendering "autocommited" changes for a
single map that has been developed solo.
shwarp
Sat, 24 Oct 2026 09:56:06 -0400
commit

8ce357638261510cfce15141b7480b0b2aa58493

parent

c40655f12ab2c7e47d214ad09ab259a0f006ea41

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M tools/render-timelapse → tools/render-timelapse

@@ -27,6 +27,14 @@ fi

IWAD_PATH=~/doom/DOOM2.WAD +map_name="map01" +shopt -s nocasematch +if [[ "$IWAD_PATH" =~ doom\.wad$ ]] +then + map_name="e1m1" +fi +shopt -u nocasematch + mkdir -p "$OUTPUT_DIR" echo -n "Collecting up map versions "

@@ -56,7 +64,7 @@ do

echo -n . wad2image $file -c yadex -i "$IWAD_PATH" -o "$OUTPUT_DIR" --thing-scale 2 --scale 0.1 --thickness 2 --width 640 --height 480 - mv "$OUTPUT_DIR/map01.png" -- "${file}.png" + mv "$OUTPUT_DIR/${map_name}.png" -- "${file}.png" ((count++)) done