Forums

[script] Shepard Fairey VR - DAMAGED

Auteur Réponses
Dadu042 Dimanche 7 Juillet 2019 à 8:13
Dadu042

I wrote this script, the app does launch (with Wine 3.0.5 only, not with 3.0.3 nor 4.0.1) but the app is impossible to use (with a mouse) without a VR device (ie: Occulus Rift).

 

#!/bin/bash
#!/usr/bin/env playonlinux-bash
# Date : (2019-07-07)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested version :
#
# Game based on: DirectX 11, Unity engine. Does not work without a VR device.
#
#
# CHANGELOG
# [Dadu042] (2019-07-07)
#   Initial writting.
#
# KNOWN ISSUES
# - Wine 3.0.3: the software windows start to load but stays black.
# - Wine 4.0.1: the software loader appear (with a gauge), but then Wine crashes.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="Shepard Fairey VR - DAMAGED"
PREFIX="Shepard-Fairey-VR-DAMAGED"
WORKING_WINE_VERSION="3.0.5"
AUTHOR="Dadu042"
EDITOR="VRt Ventures"
GAME_URL="https://www.vrtventures.art/"

POL_SetupWindow_Init
POL_Debug_Init

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

POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "amd64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# POL_Wine_PrefixCreate
POL_System_TmpCreate "$TITLE"

Set_OS "win7"

# Useless
# POL_Call POL_Install_mfc42
# POL_Call POL_Install_msxml4

# Useless ?
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3compiler_43

# This game was not released on CD/DVD.
POL_SetupWindow_InstallMethod "LOCAL,STEAM"
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the ZIP file')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        # POL_Wine start /unix "$SETUP_EXE"
        # POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
     
        POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
        POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
             
elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/871290
        POL_Wine_WaitBefore "$TITLE"
else
    POL_SetupWindow_message "Warning: the installation from CDs might fail when CD #2 inserted.\n\n Workaround: copy the CDs #2,3 into a folder of your HDD, the last to copy is the #1. Then you will have to make the installation from LOCAL." "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "pidgen.dll"
        POL_Wine start /unix "$CDROM/install.exe"
        POL_Wine_WaitExit "install.exe"
        cd "$POL_System_TmpDir"
fi
 
 
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/871290"
else
        POL_Shortcut "DAMAGED_64.exe" "$TITLE" "" "Amusement;"
        # POL_Shortcut_Document "$TITLE" "readme.txt"
fi

################
# Patch update #
################
 
# POL_SetupWindow_menu "$(eval_gettext 'Install a official patch-update ? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
 
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

 

 

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com