#install wad extractor sound and image editors
sudo aptitude install mhwaveedit gimp imagemagick deutex prboom #doom-wad-editor
sudo aptitude install eureka #level editor
#HINT: you might be able to find some doom wads if you look here:
#https://github.com/metalx1000/MyBin/tree/master/games/doom
#extract wad
deutex -doom /usr/share/games/doom/doom.wad -xtract
#Title Pic
#HINT: best to modify existing images to keep settings the same
#there are scale limitations and deutex will warn you.
gimp graphics/titlepic.ppm
wget "http://tinyurl.com/kal9yuj" -O /tmp/title.jpg && gimp /tmp/title.jpg
#get small face image of me
cd graphics
wget http://imgbin.org/images/23381.png -O me.png
#replace all face images with image of me
for i in stf*;do echo "$i";convert me.png $i;done
#Edit sound with mhwaveedit to keep all audio settings
cd ../
mhwaveedit sounds/dsitemup.au
#or convert files with this
sox /tmp/gb.mp3 -t au -r 11025 -e signed-integer -b 8 -c 1 sounds/dsnoway.au
#repack wad and play game -- Don't forget to delete wad or name it different
deutex -make 1.wad
prboom -iwad /usr/share/games/doom/doom.wad -file 1.wad
#Make an iwad
deutex -iwad -make mynewgame.wad
#to keep size down lets only pack what we need.
#delete all unchanged files then
#we need to remake the wadinfo.txt file.
#use this script and redirect the output into "wadinfo.txt"
[code]
wad_pack(){
for i in * ; do
if [ -d "$i" ]; then
echo "[$i]"
for f in $i/*;
do
basename "$f"|\
cut -d\. -f1|\
tr '[:lower:]' '[:upper:]'
done
fi
done
}
[/code]
#you can also extract just the files you want
deutex -doom /usr/share/games/doom/doom.wad -graphics -xtract