Forum

[Script] Killing zombies

Författare Svar
Dadu042 Tuesday 28 May 2019 at 21:40
Dadu042

Impossible for me to make this game playable (read 'Kown issues'). However I release this script.

 

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-28 21-38)
# Last revision : See changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux version used : 4.3.4
#
# Software version used to write this script: 2016
# Software based on: d3dx8, OpenGL, Mono, VC, VR device ?
#
# CHANGELOG
# [Dadu042] (2019-05-28 21-38)
#   Initial writting.
#
# Known issues:
# - Start up to main menu, with wrong resolution (even in a Wine Window), and crash as soon you click try to launch a game.

 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="Killing Zombies"
PREFIX="killing_zombies"
WORKING_WINE_VERSION="4.9"
AUTHOR="Dadu042"
EDITOR="Front Range Software, LLC"
GAME_URL="https://store.steampowered.com/app/534440/Killing_Zombies/"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "amd64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
 
Set_OS "win7"
 
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
# POL_Call POL_Install_d3dx10
# POL_Call POL_Install_d3dx11
 
# Useful when there is 2 GPU on the same computer (ie: Intel HD + Nvidia).
# POL_Call POL_Install_VideoDriver
#
# Asking about memory size of graphic card
# POL_SetupWindow_VMS $GAME_VMS
 
###############
# Go          #
###############

POL_SetupWindow_InstallMethod "LOCAL"

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

    # TARGET_DIR="$WINEPREFIX/drive_c/$PREFIX"
    # mkdir -p "$TARGET_DIR"
    # cd "$TARGET_DIR"
 
    
  # POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
  cd "$WINEPREFIX/drive_c"
  mkdir $PREFIX
  cd $PREFIX
    POL_System_unrar x "$APP_ANSWER"
    POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
    
# elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then

fi

POL_Shortcut "killingzombies.exe" "$TITLE" ""
POL_Shortcut "LAUNCHER.exe" "$TITLE Launcher" ""

# POL_Shortcut_Document "$TITLE" "GENETOS_manual_eng.html"
 
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

 

 

Ändrat av Dadu042