metalx1000

Doom - PrBoom WAD editing

Apr 17th, 2015
809
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.75 KB | None | 0 0
  1. #install wad extractor sound and image editors
  2. sudo aptitude install mhwaveedit gimp imagemagick deutex prboom #doom-wad-editor
  3. sudo aptitude install eureka #level editor
  4.  
  5. #HINT: you might be able to find some doom wads if you look here:
  6. #https://github.com/metalx1000/MyBin/tree/master/games/doom
  7.  
  8. #extract wad
  9. deutex -doom /usr/share/games/doom/doom.wad -xtract
  10.  
  11. #Title Pic
  12. #HINT: best to modify existing images to keep settings the same
  13. #there are scale limitations and deutex will warn you.
  14. gimp graphics/titlepic.ppm
  15. wget "http://tinyurl.com/kal9yuj" -O /tmp/title.jpg && gimp /tmp/title.jpg
  16.  
  17. #get small face image of me
  18. cd graphics
  19. wget http://imgbin.org/images/23381.png -O me.png
  20. #replace all face images with image of me
  21. for i in stf*;do echo "$i";convert me.png $i;done
  22.  
  23. #Edit sound with mhwaveedit to keep all audio settings
  24. cd ../
  25. mhwaveedit sounds/dsitemup.au
  26.  
  27. #or convert files with this
  28. sox /tmp/gb.mp3 -t au -r 11025 -e signed-integer -b 8 -c 1 sounds/dsnoway.au
  29.  
  30. #repack wad and play game -- Don't forget to delete wad or name it different
  31. deutex -make 1.wad
  32. prboom -iwad /usr/share/games/doom/doom.wad -file 1.wad
  33.  
  34. #Make an iwad
  35. deutex -iwad -make mynewgame.wad
  36.  
  37. #to keep size down lets only pack what we need.
  38. #delete all unchanged files then
  39. #we need to remake the wadinfo.txt file.
  40. #use this script and redirect the output into "wadinfo.txt"
  41. [code]
  42. wad_pack(){
  43.  for i in * ; do                                                        
  44.   if [ -d "$i" ]; then
  45.     echo "[$i]"
  46.  
  47.     for f in $i/*;
  48.     do
  49.       basename "$f"|\
  50.       cut -d\. -f1|\
  51.       tr '[:lower:]' '[:upper:]'
  52.     done
  53.   fi
  54.  done
  55. }
  56. [/code]
  57.  
  58. #you can also extract just the files you want
  59. deutex -doom /usr/share/games/doom/doom.wad -graphics -xtract
Add Comment
Please, Sign In to add comment