The forum


Author Replies
Berillions Thursday 5 November 2009 at 21:48

You must to do an offline activation before to install this game. The online installation doesn't work at the end of installation. More information in this site :

This script has been create with the DVD Version (not Steam/Digital Version)

Icon Game :

Script :
# Date: (2009-10-03 18-45)
# Distribution used to test: Frugalware Current
# Wine version used: 1.1.32 
# Author: Berillions
# Graphic Card : GeForce GTX275
# Drivers : 185.18.36

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"

if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique?"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_ACT="Si vous avez une version légale de $Title,veuillez suivre les instructions\\nsur cette page :\\n\\n\\n\\nCeci est necessaire pour installer correctement le jeu."
LNG_DVD="Le DVD est necessaire pour jouer à Borderlands"
LNG_MEM="How much memory do your graphic card have got?"
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_ACT="If you are a legal copy of $Title, please follow the instruction in\\nthis page :\\n\\n\\n\\nIt's necessary to install correctly the game."
LNG_DVD="The DVD is necessary to play at this game"

cd "$REPERTOIRE/tmp"
rm *.jpg
wget --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"

POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "$Title" "2K Games" "" "Berillions" "$Prefix"

#Détection du cd-rom
POL_SetupWindow_check_cdrom "Setup.exe"

#Installation de Wine
POL_SetupWindow_install_wine "1.1.32"

select_prefix "$REPERTOIRE/wineprefix/$Prefix"

#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`

POL_SetupWindow_message_image "$LNG_ACT" "$Title Offline activation" "$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_browse "Select file activation : BordelandsOfflineInstaller.exe" "$Title" ""
wine "$APP_ANSWER"

cd "$REPERTOIRE/ressources"
#downloading winetricks
if [ "`sha1sum < winetricks | sed 's/ .*//'`" != "e71457524b2f9a0c81369745ea9018d9278565b2" ]; then
wget --output-document=winetricks

cd "$REPERTOIRE/ressources"
#installing DirectX
POL_SetupWindow_wait_next_signal "Installing DirectX libraries..." "$Title"
bash winetricks d3dx9

#Taille de la mémoire graphique
POL_SetupWindow_menu "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "128"
if [ "$VMS" -lt "128" ]; then
	POL_SetupWindow_message_image "$LNG_VMS_ERROR" "$Title" "$PLAYONLINUX/themes/tango/warning.png"
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
regedit OGL.reg
#Configuration de Wine
Set_OS winxp

wine "$CDROM/Setup.exe"

POL_SetupWindow_message "$LNG_WAIT_END" "$Title"

#Création Icone
convert  "$CDROM/Borderlands.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$Title"
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/2K Games/Gearbox Software/Borderlands/Binaries" "Borderlands.exe" "" "$Title"

Set_WineVersion_Assign "1.1.32" "$Title"

POL_SetupWindow_message "$LNG_DVD" "$Title"

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