The forum

[Script] Stubbs the Zombie in Rebel Without a Pulse

Author Replies
Dadu042 Monday 8 July 2019 at 9:44
Dadu042

I use the retail DVD-ROM.

Very bad result, impossible to play. Read the top of the script.

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#!/bin/bash
#!/usr/bin/env playonlinux-bash
# Date : (2019-07-02)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested version : DVD-ROM, french, files date: november 2005.
#
# Game based on: DirectX 9, Bink, OpenAL, Starforce DRM.
#
#
# CHANGELOG
# [Dadu042] (2019-07-01)
#   Initial writting.
#
# KNOW ISSUES
# - Installation seems OK (even if no graphics display), but does never end after coyping files. There are ':err:' in the install log file.
# - Virtual desktop does open but nothing more. Log: ":err:seh:setup_exception_record stack overflow 920 bytes ..."
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="Stubbs the Zombie in Rebel Without a Pulse"
PREFIX="stubbs-zombie-rebel"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR="Aspyr"
     
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_Wine_PrefixCreate
POL_System_TmpCreate "$TITLE"
    
Set_OS "winxp"
  
# Useless ?
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3compiler_43
 
# Without that, on a 1280x1024 5/4 screen I (Dadu042) get a wrong resolution and frequency (as soon as the game start).
# (this issue is targeted in patch v1.0.2 of the game).
#######################################
# Create a 'virtual desktop' (window) #
#######################################
  
POL_SetupWindow_menu_list "$(eval_gettext "Choose the resolution of the game window.")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
 
resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
  
Set_Desktop "On" "$WIDTH" "$HEIGHT"
 
#######################################
# Game installation                   #
#######################################
 
POL_SetupWindow_InstallMethod "LOCAL,STEAM,DVD"
  
POL_SetupWindow_message "Note: at the end of the installation, please do not run the game, and do not install DirectX 9." "$TITLE"
  
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
#        POL_Call POL_Install_steam
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
             
elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/7800
        POL_Wine_WaitBefore "$TITLE"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Stubbs The Zombie.msi"
        POL_Wine start /unix "$CDROM/setup.exe"
#        POL_Wine_WaitExit "Stubbs The Zombie - InstallShield Wizard"
        POL_Wine_WaitExit "setup"
        cd "$POL_System_TmpDir"
fi
  
  
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/7800"
else
        # Restore screen resolution (game's default is ?)
        POL_Shortcut_InsertBeforeWine "$SHORTCUT" "trap 'xrandr -s 0' EXIT"
 
# Workaround the fail to start issue (see KNOWN ISSUES).
# I've only tested Intel GPU.
#
POL_SetupWindow_menu "Select a GPU (fix for this game):" "$TITLE" "Intel|Nvidia|AMD|Pass" "|"
if [ "$APP_ANSWER" = "Intel" ]
        POL_Shortcut_InsertBeforeWine "$SHORTCUT" "MESA_EXTENSION_MAX_YEAR=2010 force_s3tc_enable=true"
elif [ "$APP_ANSWER" = "Nvidia" ]
        POL_Shortcut_InsertBeforeWine "$SHORTCUT" "__GL_ExtensionStringVersion=17700"
elif [ "$APP_ANSWER" = "AMD" ]
        POL_Shortcut_InsertBeforeWine "$SHORTCUT" "MESA_EXTENSION_MAX_YEAR=2004 %command%"
fi
          
        POL_Shortcut "stubbs.exe" "$TITLE" "" "Game;ActionGame;"
        POL_Shortcut_Document "$TITLE" "Stubbs Read Me.rtf"
fi
 
################
# Patch update #
################
  
POL_SetupWindow_menu "$(eval_gettext 'Do you want to 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 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

Edited by Dadu042

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@playonlinux.com