Forums

Starcraft 2 : Beta

Auteur Réponses
deadalnix Dimanche 28 Mars 2010 à 1:30
deadalnixAnonymous

#!/bin/bash
# Date: (2009-08-21 19-25)
# Distribution used to test: Ubuntu - Karmic
# Wine version used: 1.1.41
# Author: Deadalnix

#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0

#Charger les librairies
source "$PLAYONLINUX/lib/sources"

Title="Starcraft2 : Beta"
Prefix="Starcraft2_Beta"

if [ "$POL_LANG" == "fr" ]; then
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera
terminée sous peine de devoir recommencer l'installation."
else
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation.."
fi

POL_SetupWindow_Init

#Presentation
POL_SetupWindow_presentation "$Title" "Blizzard" "http://www.starcraft2.com/" "Deadalnix" "$Prefix"

#Installation de Wine
POL_SetupWindow_install_wine "1.1.41"

#selectiond e wine
Use_WineVersion "1.1.41"

#Préparation de Wine
select_prefixe "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate

#install some packages using winetrick
wget http://winezeug.googlecode.com/svn/trunk/winetricks -O "$REPERTOIRE/ressources/winetricks"
sh "$REPERTOIRE/ressources/winetricks" droid fontfix fontsmooth-rgb gdiplus gecko vcrun2008 vcrun2005 allfonts d3dx9 win7

#Taille de la mémoire graphique
POL_SetupWindow_textbox "Your Memory Graphic ?" "Memory Graphic"
VMS="$APP_ANSWER"

#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

#Override dll
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]" > override.reg
echo "\\"mmdevapi\\"=\\"diabled\\"" >> override.reg
regedit override.reg

#Configuration de Wine
Set_OS win7
Set_SoundDriver "alsa"

wine "$REPERTOIRE/ressources/Installer.exe"

POL_SetupWindow_message "$LNG_WAIT_END" "$Title"

#Création Launcher
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/sc2beta/" "StarCraft II.exe" "" "$Title"

Set_WineVersion_Assign "1.1.41" "$Title"

POL_SetupWindow_Close
exit


This isn't really clean but it work.

However, the registration process to post here is a pain in the ass. I had to try 6 time before getting things right. Moreover, the documentation isn't clear, and unhomogenous trow different languages.

I think POL should have a look at this, as long as it's anoying people that want to help the project. This is not good to build a strong community.
BlondVador Dimanche 28 Mars 2010 à 21:42
BlondVador

Thank you for your contribution !

deadalnix Lundi 29 Mars 2010 à 3:02
deadalnixAnonymous

No problem.

I think it has to be reviewed before an integration into the project, because this is the first time I do this so the usability of the script isn't so easy. But anyway, you have my benediction to do so ;)
deadalnix Samedi 3 Avril 2010 à 5:02
deadalnixAnonymous

Hi,

I'm back because of some issues with this script with the new patches. I have a quite complicated workaround : http://bit.ly/d66ffj
Berillions Samedi 3 Avril 2010 à 10:05
Berillions

Tu sais que tu peux parler Francais sur le forum Francais hein....

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 dmcayonlinux.com