Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 27 Jan 2020, 02:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Brutal Doom installer
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message

Joined: 16 Sep 2009
Posts: 2798
Location: UK

PostPosted: Sun 07 Oct 2018, 06:36    Post subject:  Brutal Doom installer
Subject description: Brutal Doom is Doom2 with added gore and gameplay features

Brutual Doom

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

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


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).


# 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



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

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"



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


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

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 ;;

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)

Pkg, mdsh, Woofy, Akita, VLC-GTK, Search
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0294s ][ Queries: 11 (0.0035s) ][ GZIP on ]