Вы находитесь здесь > Les forums > Your creations. > [script] Planescape Torment
æÏÒÕÍ
[script] Planescape Torment
| á×ÔÏÒ |
ïÔ×ÅÔÙ |
| NSLW |
Среда 20 Мая 2009 в 9:12
- [ãÉÔÁÔÁ]
|
Membre

 |
Hello,
I wrote script which installs Planescape Torment. It also can patch the game after it's been installed
Wine version : 1.1.21
Distribution : Fedora
Distribution Version : 10 (32 bit)
Graphics card : Nvidia, GeForce 9xxx
Drivers of the graphics card : 185.18.08
Comments
-available only in windowed mode
Icon for the game:
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
VERSIONWINE=$(wine --version)
TYTUL="Planescape Torment"
PREFIX="PT"
#procedure for patching Planescape Torment
patch_pt()
{
POL_SetupWindow_browse "Select patch file" "$TYTUL" ""
wine "$APP_ANSWER"
POL_SetupWindow_message "Patch for $TYTUL has been installed successfully" "$TYTUL"
}
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TYTUL" "Black Isle" "N/A" "NSLW" "$PREFIX"
select_prefixe "$REPERTOIRE/wineprefix/$PREFIX"
#asking about patching
POL_SetupWindow_menu "What do you want to do?" "Actions" "install-game patch-game" " "
if [ "$APP_ANSWER" == "patch-game" ]; then
if [ -e "$REPERTOIRE/wineprefix/$PREFIX" ]; then
patch_pt
POL_SetupWindow_Close
fi
fi
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "SETUP.EXE"
#adding CD-ROM as drive d: to winecfg
CDROM2=${CDROM//"1"/"2"} #CD2
CDROM3=${CDROM//"1"/"3"} #CD3
CDROM4=${CDROM//"1"/"4"} #CD4
cd "$WINEPREFIX/dosdevices"
ln -s $CDROM d: #not sure about CD1 label
ln -s $CDROM2 e:
ln -s $CDROM3 f:
ln -s $CDROM4 g:
echo "\"d:\"=\"cdrom\"" >> "$REPERTOIRE/tmp/cdrom.reg"
echo "\"e:\"=\"cdrom\"" >> "$REPERTOIRE/tmp/cdrom.reg"
echo "\"f:\"=\"cdrom\"" >> "$REPERTOIRE/tmp/cdrom.reg"
echo "\"g:\"=\"cdrom\"" >> "$REPERTOIRE/tmp/cdrom.reg"
regedit "$REPERTOIRE/tmp/cdrom.reg"
POL_SetupWindow_message "Wait 5 seconds then click next" "$TYTUL"
#starting installation
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
cd $CDROM
wine "SETUP.EXE"
POL_SetupWindow_message "Click \"Next\" when installation will finish." "$TYTUL"
#switching to windowed mode
cd "$WINEPREFIX/drive_c/Program Files/Black Isle/Torment"
mv Torment.ini Torment.ini.bak
cat Torment.ini.bak | sed s/Full\ Screen=1/Full\ Screen=0/ >& Torment.ini
#cleaning temp
cd "$WINEPREFIX/drive_c/windows/temp/"
rm -rf *
#making shortcut
cp "$CDROM/TORMENT.ICO" "$REPERTOIRE/icones/32/$TYTUL"
POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/Black Isle/Torment" "Torment.exe" "" "$TYTUL" "" "-opengl"
POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
#asking about patching
POL_SetupWindow_question "Do you want to patch your game?" "$TYTUL"
if [ "$APP_ANSWER" == "TRUE" ] ;then
patch_pt
fi
POL_SetupWindow_Close
exit
|
| GNU_Raziel |
Среда 20 Мая 2009 в 14:52
- [ãÉÔÁÔÁ]
|
Admin

 |
Script added to repository, thx for your work
Linux a un noyau, Windows a un pépin.
Si Microsoft inventait quelque chose qui ne plante pas, ca serait le clou.
http://gnuraziel.labrute.fr - Deviens mon élève petit scarabé 
|
| BebeFoetus |
Воскресенье 8 Августа 2010 в 0:05
- [ãÉÔÁÔÁ]
|
Membre
 |
|