dsda-doom_doom_improved.sh 937 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. game=doom
  3. game_dir="$HOME/games/doom"
  4. mod_files="$game_dir/mods/vanilla/pk_doom_sfx/pk_doom_sfx_20120224.wad \
  5. $game_dir/mods/vanilla/dimm_pal/doom-pal.wad \
  6. $game_dir/mods/vanilla/vbright/vbright.wad \
  7. $game_dir/mods/vanilla/softfx/softfx.wad \
  8. $game_dir/mods/vanilla/smoothed/smoothed.wad"
  9. pwad_file=$(find "${game_dir}"/wads/${game}/vanilla/*/*.wad \
  10. "$game_dir"/wads/${game}/vanilla_cds/*/*.wad \
  11. "$game_dir"/wads/${game}/nolimit/*/*.wad \
  12. "$game_dir"/wads/${game}/boom/*/*.wad \
  13. -ls | sort -rn | awk '{print $11}' | shuf -n 1)
  14. set -x
  15. eval dsda-doom -config "${game_dir}"/config/dsda-doom/dsda-doom_vanilla.cfg \
  16. -vidmode gl \
  17. -complevel 17 \
  18. -width 1920 -height 1080 \
  19. -fullscreen \
  20. -geom 640x360f -aspect 16:9 \
  21. -iwad "$game_dir"/wads/iwads/${game}.wad \
  22. -file "$pwad_file" "$mod_files" \
  23. -save ~/games/doom/savegames/${game}/ \
  24. -skill 3 \
  25. -warp 1 1 \
  26. > /tmp/dsda-doom.log
  27. set +x