Forum

Broken Sword (GoG)

Episodes I, II and III

Författare Svar
petch Monday 6 February 2012 at 22:53
petch

Bonsoir à tous,
Après avoir passé environ une semaine à traduire la documentation du scripteur en anglais, me voilà de retour dans l'écriture de scripts...

Je sais bien qu'un script pour Broken Sword 1 (by GoG) existait déjà, mais je voulais écrire un ensemble de scripts cohérent pour toute la série des Broken Sword, alors j'ai aussi écrit un script pour le premier épisode.
Malheureusement, je me suis aperçu que le quatrième épisode ne marche pas (encore, j'espère) sous Wine, alors je ne peux fournir que 3 scripts...
Bon jeu !

Broken Sword 1 (Director's Cut):
https://raw.github.com/petchema/playonlinux/dev/brokensword1dc-gog
#!/bin/bash
# Date : (2012-01-29 17-31)
# Last revision : (2012-02-02 23-35)
# Wine version used : 1.4-rc2
# 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_broken_sword_directors_cut.exe 1217398155 "27b2f01bfd65ea1a20054c73aee8d4db"

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="BrokenSword1DC_gog"
WORKING_WINE_VERSION="1.4-rc2"
INSTALLBIN="setup_broken_sword_directors_cut.exe"

TITLE="$(eval_gettext 'Broken Sword: Shadow of the Templars (DC) (GoG release)')"
URL="http://www.gog.com/en/gamecard/broken_sword_directors_cut"
SHORTCUT_NAME="Broken Sword 1: Shadow of the Templars"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Revolution Software" "$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"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "bs1dc.exe" "$SHORTCUT_NAME"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Broken Sword - Director's Cut/manual.pdf"

POL_SetupWindow_Close

exit
petch Monday 6 February 2012 at 22:53
petch

Broken Sword 2 (Director's Cut):
https://raw.github.com/petchema/playonlinux/dev/brokensword2dc-gog
#!/bin/bash
# Date : (2012-01-29 18-29)
# Last revision : (2012-02-02 23-35)
# Wine version used : 1.4-rc2
# 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_broken_sword_2_dc.exe 1296672811 "4cfe3858334e36c85cb6954362afc4a5"

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="BrokenSword2DC_gog"
WORKING_WINE_VERSION="1.4-rc2"
INSTALLBIN="setup_broken_sword_2_dc.exe"

TITLE="$(eval_gettext 'Broken Sword II: The Smoking Mirror (DC) (GoG release)')"
URL="http://www.gog.com/en/gamecard/broken_sword_2__the_smoking_mirror"
SHORTCUT_NAME="Broken Sword 2: The Smoking Mirror"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Revolution Software" "$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 "128"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "BrokenSword2.exe" "$SHORTCUT_NAME"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Broken Sword II - The Smoking Mirror Directors Cut/manual.pdf"
# C:\\Program Files\\GOG.com\\Broken Sword II - The Smoking Mirror Directors Cut\\Readme.txt

POL_SetupWindow_Close

exit
petch Monday 6 February 2012 at 22:54
petch

Broken Sword 3:
https://raw.github.com/petchema/playonlinux/dev/brokensword3-gog
#!/bin/bash
# Date : (2012-02-03 21-27)
# Last revision : (2012-02-03 23-36)
# Wine version used : 1.4-rc2
# 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_broken_sword_3.exe 1086022553 "09b2c88aab14000ae56461d84bef3407"

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="BrokenSword3_gog"
WORKING_WINE_VERSION="1.4-rc2"
INSTALLBIN="setup_broken_sword_3.exe"

TITLE="$(eval_gettext 'Broken Sword III: The Sleeping Dragon (GoG release)')"
URL="http://www.gog.com/en/gamecard/broken_sword_3__the_sleeping_dragon"
SHORTCUT_NAME="Broken Sword3: The Sleeping Dragon"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Revolution Software" "$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"

# http://www.gog.com/en/forum/broken_sword_the_smoking_mirror/broken_sword_the_sleeping_dragon_freezes_on_startup
#cat <<'_EOFINI_' > "$POL_USER_ROOT/tmp/refresh60hz.reg"
#REGEDIT4
#
#[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\DirectDraw]
#"ForceRefreshRate"=dword:0000003c
#_EOFINI_
#POL_Wine regedit "$POL_USER_ROOT/tmp/refresh60hz.reg"
#rm "$POL_USER_ROOT/tmp/refresh60hz.reg"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "BSTSD.exe" "$SHORTCUT_NAME"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Broken Sword - The Sleeping Dragon/Readme.html"

POL_SetupWindow_Close

exit
Sckizo Monday 12 October 2015 at 10:32
Sckizo

Bonjour,

Je viens d'essayé d'installer Broken Sword 4 sur ma machine, mais le rendu est absolument affreux. ça rame dès l'intro et après la cinématique ça saccade tellement qu'on en peut rien faire à part sortir du jeu.

 

J'ai essayé de mettre WINE en mode Windows 7, ça n'a rien changé

J'ai essayé de mettre la dernière version de WINE : ça a planté le PC en mode écran noir. :/

 

Je me demandais si les scripts n'étaient pas obsolète avec la dernière mise à jours sur GOG et l'apparition de Win10 ? :)

 

J'utilise Ubuntu 14.04 et ma carte mère est une Asus P5KPL-AM dont j'utilise la carte graphique intégrée.


Avant j'étais schizophrène ! Maintenant nous allons mieux !
"Je sais que j'plais pas à tout le monde ! Mais quand je vois à qui j'plais pas, j'me demande si ça me dérange vraiment." *Dikkenek*