Delta Force: Black Hawk Down

Informations

Creator Message
Dadu042
Moderator

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 100
Wine: 3.21

Feedbacks

Description

First-person shooter video game (2003).

Wikipedia. PCGamingWiki. appdb.winehq.org

Screenshots

MiniatureMiniatureMiniature

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-06-01 16-10)
# Last revision : (2019-06-01 16-10)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Media used: CD-ROM V1.2.2.4 (see file VERSION.TXT once installed). May 2003 (in /DFBHD/).
#
# CHANGELOG:
# [Dadu042] (2019-06-01 16-10)
#   Initial script.
#
# KNOWN ISSUES:
# None.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Delta Force: Black Hawk Down"
PREFIX="delta_force_BHD"
WORKING_WINE_VERSION="3.21"
AUTHOR="Dadu042"
EDITOR="NovaLogic"
GAME_URL="https://en.wikipedia.org/wiki/Delta_Force:_Black_Hawk_Down"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

################
# GPU settings #
################

# Really indispensable ? (Dadu042)
POL_SetupWindow_VMS "32"

POL_Call POL_Install_VideoDriver

# Useless ?
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3compiler_43

# Useless because On by default (Set if the window manager will be allowed to manage Wine windows.)
# Set_Managed "On"

# POL_Wine_X11Drv "DXGrab" "Y"
# Was used in 2009:
# Set_DXGrab "On"

###############
# Go          #
###############

POL_SetupWindow_InstallMethod "LOCAL,CD"

POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."


if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else

        POL_SetupWindow_cdrom
      #  POL_SetupWindow_check_cdrom "$CDROM/DFBHD/DFBHDLC.EXE"
        POL_SetupWindow_check_cdrom "AUTOPLAY.BAT"
        POL_Wine start /unix "$CDROM/DFBHD/Setup.exe"
        POL_Wine_WaitExit "Setup.exe"
        cd "$POL_System_TmpDir"
fi

POL_Shortcut "dfbhd.exe" "$TITLE" "" "Game;"
POL_Shortcut_Document "$TITLE" "DFBHDMAN.PDF"

POL_Shortcut "dfbhdlc.exe" "$TITLE - LAN only" "" "Game;"

POL_Shortcut "dfbhdmed.exe" "$TITLE - Mission editor" "" "Game;"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 1 June 2019 at 16:16
Dadu042
Moderator

Information

This update has been approved by the team.

Message

OK.

Differences

@@ -1,4 +1,3 @@
-#!/bin/bash
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-06-01 16-10)
 # Last revision : (2019-06-01 16-10)

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-06-01 16-10)
# Last revision : (2019-06-01 16-10)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Media used: CD-ROM V1.2.2.4 (see file VERSION.TXT once installed). May 2003 (in /DFBHD/).
#
# CHANGELOG:
# [Dadu042] (2019-06-01 16-10)
#   Initial script.
#
# KNOWN ISSUES:
# None.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Delta Force: Black Hawk Down"
PREFIX="delta_force_BHD"
WORKING_WINE_VERSION="3.21"
AUTHOR="Dadu042"
EDITOR="NovaLogic"
GAME_URL="https://en.wikipedia.org/wiki/Delta_Force:_Black_Hawk_Down"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

################
# GPU settings #
################

# Really indispensable ? (Dadu042)
POL_SetupWindow_VMS "32"

POL_Call POL_Install_VideoDriver

# Useless ?
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3compiler_43

# Useless because On by default (Set if the window manager will be allowed to manage Wine windows.)
# Set_Managed "On"

# POL_Wine_X11Drv "DXGrab" "Y"
# Was used in 2009:
# Set_DXGrab "On"

###############
# Go          #
###############

POL_SetupWindow_InstallMethod "LOCAL,CD"

POL_SetupWindow_message "Note: at the end of the installation, DO NOT install DirectX when asked."


if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else

        POL_SetupWindow_cdrom
      #  POL_SetupWindow_check_cdrom "$CDROM/DFBHD/DFBHDLC.EXE"
        POL_SetupWindow_check_cdrom "AUTOPLAY.BAT"
        POL_Wine start /unix "$CDROM/DFBHD/Setup.exe"
        POL_Wine_WaitExit "Setup.exe"
        cd "$POL_System_TmpDir"
fi

POL_Shortcut "dfbhd.exe" "$TITLE" "" "Game;"
POL_Shortcut_Document "$TITLE" "DFBHDMAN.PDF"

POL_Shortcut "dfbhdlc.exe" "$TITLE - LAN only" "" "Game;"

POL_Shortcut "dfbhdmed.exe" "$TITLE - Mission editor" "" "Game;"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042