Fora

Keep Talking and Nobody Explodes - KTANE

Autor Odpowiedzi
rogue-spectre Tuesday 10 January 2017 at 11:48
rogue-spectreAnonymous

Hello,

      Here a littel script to install Keep Talking and Nobody Explodes - The Bomb defusal cooperative game.

OS  : Xubuntu 14.04.5

POL Version : 4.2.10

Infos  :

  • Enable only the installation of the humblebundle.com version for now
  • Do you know how to write a list in text window in order to list the links to the webpages were people can download translations of the Bomb defusal guides.

Script :

#!/bin/bash
# Date : (2017-10-01 00-00)
# Last revision : (2017-10-01 00-00)
# Wine version used : 1.7.30
# Distribution used to test : Xubuntu 14.04.5
# Authors :  rogue-spectre
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

# Configure variables  
PREFIX="KTANE"
WORKING_WINE_VERSION="1.7.30"
EDITOR="Steel Crate Games"
EDITOR_WEBSITE="http://www.keeptalkinggame.com"
PSEUDO="rogue-spectre"  
TITLE="Keep Talking and Nobody Explodes"
SHORTCUT_NAME="ktane"

# Prepare system
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_WEBSITE" "$PSEUDO" "$PREFIX"
POL_SetupWindow_message  "Bomb defusal Manual PDF guides : http://www.bombmanual.com/index.html" "$TITLE"
POL_System_TmpCreate "TMP$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "LOCAL"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Select archive" "File installation"
    INSTALLER="$APP_ANSWER"
fi

# Configure system
Set_OS "win7"
POL_SetupWindow_VMS "256"

# Install dependencies
POL_Call POL_Install_d3dx10

# Extract and Install archive
POL_LoadVar_PROGRAMFILES
cd "$POL_System_TmpDir"
unzip "$APP_ANSWER" -d "$POL_System_TmpDir"
mkdir -p  "$WINEPREFIX/drive_c/$PROGRAMFILES/KTANE"
mv "Keep Talking and Nobody Explodes" "$WINEPREFIX/drive_c/$PROGRAMFILES/KTANE"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "ktane.exe" "$SHORTCUT_NAME" "" "" "Game"

POL_SetupWindow_Close

exit 0