The forum

BloodRayne (GoG)

Author Replies
petch Tuesday 13 March 2012 at 20:42
petch

Bonjour à tous,
Le support de BloodRayne par Wine ayant été largement amélioré récemment, j'ai décidé d'écrire un script pour ce jeu.
La seule chose que je n'ai pas réussi à faire fonctionner (d'après mes tests rapides, je ne suis pas allé très loin dans le jeu) est l'affichage des vidéos, il a fallu que je les désactivent. Toute aide est bienvenue !


Bon jeu !
https://raw.github.com/petchema/playonlinux/dev/wip/bloodrayne1-gog
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
#!/bin/bash
# Date : (2012-03-12 23-44)
# Last revision : (2012-03-12 23-58)
# Wine version used : 1.4
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
 
# Tested with install archives:
# setup_bloodrayne_1.exe 858704866 "b9925ca60f016cf67cdfafceeb5623e7"
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="BloodRayne1_gog"
WORKING_WINE_VERSION="1.4"
INSTALLBIN="setup_bloodrayne_1.exe"
 
TITLE="BloodRayne (GoG release)"
SHORTCUT_NAME="BloodRayne"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Terminal Reality / Majesco" "$URL" "Pierre Etchemaite" "$PREFIX"
 
POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE"
[ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$INSTALLBIN"
ARCHIVE="$APP_ANSWER"
 
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
 
# Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
POL_Call POL_Function_SetNativeExtension "pdf"
 
POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
 
POL_Wine_WaitExit "$TITLE"
 
 
# GoG work!
Set_OS winxp
 
POL_SetupWindow_VMS "64"
 
POL_Wine_X11Drv "GrabFullScreen" "Y"
 
# Some issues playing this
mv "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/BloodRayne 1/video/Cutscene.exe" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/BloodRayne 1/video/Cutscene.exe.disabled"
 
# Doesn't hurt ;)
POL_Wine_reboot
 
POL_Shortcut "rayne.exe" "$SHORTCUT_NAME"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/BloodRayne 1/manual.pdf"
# C:\\Program Files\\GOG.com\\BloodRayne 1\\readme.txt
 
POL_SetupWindow_Close
 
exit

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