Brutal Doom installer

Play with your Puppy.
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Brutal Doom installer

#1 Post by sc0ttman »

Brutual Doom

Homepage: https://www.moddb.com/mods/brutal-doom

Image
In development since 2010, the 18th Cacoward winner and Moddb 2012 MOTY Editors Choice of Creativity Award Brütal Doom takes Doom into a whole new level. It makes the game much more violent than before. There's much more blood, plus it adds unique gibs, death animations, dismemberments, headshots, executions, fire and explosion particles, flares, and much more
HOW TO INSTALL:

There is a main script and another script called 'extract' that the installer uses - install both before running the installer.
Then, after adding the 2 scripts, run 'doom' in the terminal.
The first run will download and install stuff you need to ~/.brutaldoom, and run doom for you.

Save the script below as /usr/bin/doom then make executable (chmod +x /usr/bin/doom).

Code: Select all

#!/bin/bash

# Brutal doom installer and loader

# Requires:
#    brutal doom mod  (bd**.pk3)
#    freedm.wad       (the doom game file)
#    zandronum        (the doom engine and .wad loader)

set -a 

doom_dir=/root/.brutaldoom

freedoom_file="freedm-0.11.3.zip"
brutaldoom_file="bd21testApr25.zip"
brutaldoom_wad="bd21testApr25.pk3"
zandronum_file="zandronum3.0-linux-x86_64.tar.bz2"

# get the 32-bit client, if needed
case $(uname -m) in
  i686|i586|i486|i386) zandronum_file="zandronum3.0-linux-x86.tar.bz2"    ;;
esac

mkdir -pv $doom_dir
[ ! -d $doom_dir ] && echo "NO $doom_dir" && exit 1

builtin cd $doom_dir

function dwnld_brutaldoom {
  builtin cd $doom_dir

  echo Downloading $freedoom_file
  wget https://github.com/freedoom/freedoom/releases/download/v0.11.3/$freedoom_file -O "$freedoom_file" 2>/dev/null

  echo Downloading $brutaldoom_file
  wget https://www.moddb.com/downloads/mirror/95667/108/faa37e9cb128f86a92d71ee5db227e89 -O "$brutaldoom_file" 2>/dev/null

  echo Downloading $zandronum_file
  wget https://zandronum.com/downloads/$zandronum_file -O "$zandronum_file" 2>/dev/null
}

function setup_brutaldoom {
  builtin cd $doom_dir

  # extract files
  extract $freedoom_file 
  extract $brutaldoom_file
  extract $zandronum_file

  # move WAD to main dir
  mv freedm-0.11.3/freedm.wad .

  # clean up
  rm -rf freedm-0.11.3/
  rm "bd21 changelog.txt" 
  rm $freedoom_file
  rm $brutaldoom_file
  rm $zandronum_file
}

function brutaldoom {
  builtin cd $doom_dir
  [ ! -f $doom_dir/zandronum  ] && dwnld_brutaldoom && setup_brutaldoom
  [ -f $doom_dir/zandronum  ] && $doom_dir/zandronum "$brutaldoom_wad" 2>/dev/null || echo "Error: 'zandronum' not found! Look in ~/.brutaldoom"
}

brutaldoom 

exit 
Save the below code to /usr/bin/extract .. then do `chmod +x /usr/bin/extract`

Code: Select all

#!/bin/bash

# easier archive file extraction
if [ ! -f "$1" ] ; then
  echo "'$1' is not a valid file!" >&2
  exit 1
fi

NAME="$(dirname "$1")"
mkdir "$NAME" && cd "$NAME"

case "$1" in          
  *.tar.bz2) tar xvjf "$1" ;;
  *.tar.gz) tar xvzf "$1" ;;
  *.tar.xz) tar xvJf "$1" ;;
  *.lzma) unlzma "$1" ;;
  *.bz2) bunzip2 "$1" ;;
  *.rar) unrar x -ad "$1" ;;
  *.gz) gunzip "$1" ;;
  *.tar) tar xvf "$1" ;;
  *.tbz2) tar xvjf "$1" ;;
  *.tgz) tar xvzf "$1" ;;
  *.zip) unzip "$1" ;;
  *.Z) uncompress "$1" ;;
  *.7z) 7z x "$1" ;;
  *.xz) unxz "$1" ;;
  *.exe) cabextract "$1" ;;
  *.deb) pkg unpack "$1" ;;
  *.rpm) pkg unpack "$1" ;;
  *.pet) pkg unpack "$1" ;;
  *.sfs) unsquashfs "$1" ;;
  *) echo "extract: '$1' - unknown archive type" >&2; return 1 ;;
esac

I haven't tested joining real online servers, although deathmatch, single player etc all seem to work fine for me.

(tested on Dpup Stretch 7.5 RC1)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply