tool(render-timelapse): optional IWAD_PATH argument Defaults to ~/doom/DOOM2.WAD, but whatever. You can change it if you want. Alright alright, I'll expose this in a config... at some point.
shwarp
Sat, 24 Oct 2026 11:50:00 -0400
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
tools/render-timelapse
→
tools/render-timelapse
@@ -3,9 +3,9 @@
if [[ $# -lt 1 ]] then - echo "Usage: ./render-timelapse <FILE_PATH>" + echo "Usage: ./render-timelapse <FILE_PATH> [IWAD_PATH]" + echo -e "\texample: ./render-images ./FOO.WAD ~/doom/DOOM.WAD" echo -e "\texample: ./render-images ./file_path/FOO.WAD" - echo -e "\texample: ./render-images ./FOO.WAD" exit 1 fi@@ -18,14 +18,14 @@ fi
MAP_FILENAME=$(basename "$1") GIT_DIR=$(echo ${1::-"$((${#MAP_FILENAME} + 1))"}) +IWAD_PATH="${2-"~/doom/DOOM2.WAD"}" + OUTPUT_DIR="${GIT_DIR}/timelapse-output" if [ ! -d "$GIT_DIR/.git" ] || ! git -C "$GIT_DIR" rev-parse 2>/dev/null then echo "'${GIT_DIR}' must be an initialised GIT directory" fi - -IWAD_PATH=~/doom/DOOM2.WAD map_name="map01" shopt -s nocasematch