dsda-doom_doom_improved.sh 889 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}/nolimit/*/*.wad \
  11. "$game_dir"/wads/${game}/boom/*/*.wad \
  12. -ls | sort -rn | awk '{print $11}' | shuf -n 1)
  13. set -x
  14. eval dsda-doom -config "${game_dir}"/config/dsda-doom/dsda-doom_vanilla.cfg \
  15. -vidmode gl \
  16. -complevel 17 \
  17. -width 1920 -height 1080 \
  18. -fullscreen \
  19. -geom 640x360f -aspect 16:9 \
  20. -iwad "$game_dir"/wads/iwads/${game}.wad \
  21. -file "$pwad_file" "$mod_files" \
  22. -save ~/games/doom/savegames/${game}/ \
  23. -skill 3 \
  24. -warp 1 1 \
  25. > /tmp/dsda-doom.log
  26. set +x