Bonjour,
Je vous propose un script pour installer unreal tournament 3 et le patch 2.1 (le dernier patch ).
J'ai tester le script sur : linux mint 12, ubuntu 12.04 et sur mac "snow leopard"
et il fonctionne plutot bien sur les 3 config.
le script d'installation[code language=playonlinux]
#!/bin/bash
# Date : (2012-09-01)
# Last revision : (2012-09-02)
# Wine version used : 1.4
# Distribution used to test : Linux Mint 12 x32
# Author : Ruzven
# Licence : Retail
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Unrealtounament3"
PREFIX="Unrealtounament3"
WORK_WINE_VERSION="1.4"
EDITOR="Midway"
GAME_URL="http://www.unrealtournament.com/"
AUTHOR="Ruzven"
GAME_VMS="256"
# Starting the script
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/....../top.jpg" "http://files.playonlinux.com/resources/setups/....../left.jpg" "$TITLE"
POL_SetupWindow_Init
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Downloading wine if necessary and creating prefix
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
POL_Call POL_Install_steam
fi
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet20
POL_Call POL_Install_dotnet30
POL_Wine_Direct3D "UseGLSL" "disabled"
POL_Wine_Direct3D "OffscreenRenderingMode" "fbo"
POL_Wine_Direct3D "PixelShaderMode" "enabled"
POL_Wine_Direct3D "VertexShaderMode" "hardware"
POL_Wine_DirectSound "DefaultSampleRate" "44100"
POL_Wine_DirectSound "EmulDriver" "N"
POL_Wine_DirectSound "HardwareAcceleration" "Full"
# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\\nif not already done.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "SetupUT3.exe"
POL_Wine start /unix "$CDROM/SetupUT3.exe"
POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/13210
POL_Wine_WaitExit "$TITLE"
else
# Asking then installing DDV of the game
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
fi
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/13210"
fi
if [ "$INSTALL_METHOD" == "DVD" ]; then
POL_Shortcut "UT3.exe" "$TITLE"
fi
POL_SetupWindow_Close
exit 0
[/code]
le script pour le patch[code language=playonlinux]
#!/bin/bash
# Date : (2012-09-01)
# Last revision : (2012-09-02)
# Wine version used : 1.4
# Distribution used to test : Linux Mint 12 x32
# Author : Ruzven
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Unrealtounament3"
PREFIX="Unrealtounament3"
PVERSION="2.1"
# Starting the script
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/....../top.jpg" "http://files.playonlinux.com/resources/setups/....../left.jpg" "$TITLE"
POL_SetupWindow_Init
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_free_presentation "$TITLE" "$(eval_gettext 'Welcome in the patch $PVERSION Installer for $TITLE')"
POL_SetupWindow_checkexist()
{
if [ ! -e "$POL_USER_ROOT/wineprefix/$1" ]; then
POL_SetupWindow_message "$(eval_gettext 'Game is not installed')" "$TITLE"
POL_SetupWindow_Close
exit
fi
}
POL_SetupWindow_checkexist "$PREFIX"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Check if it's Steam version
STEAM=`find $WINEPREFIX -name "Steam.exe"`
if [ "$STEAM" != "" ]; then
POL_SetupWindow_message "$(eval_gettext 'Steam have is own automatic update system')" "$TITLE"
POL_SetupWindow_Close
exit
fi
# Asking if patch is local or not
cd "$HOME"
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Select patch to execute')" "$TITLE" ""
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit
else
cd "$POL_USER_ROOT/tmp"
PATCH_URL="ftp://ebd4f1c619840dcfabb0723b9013b596:1346702285@soft.archive1.clubic.com/soft/patch/unreal_tournament_iii_patch_v2.1_multi-langues_284766.exe"
PATCH_EXE="unreal_tournament_iii_patch_v2.1_multi-langues_284766.exe"
POL_SetupWindow_download "$(eval_gettext 'Wait while the patch is downloading...\\nThis operation can take time, depending of your connexion')" "$TITLE" "$PATCH_URL"
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installation in progress...')" "$TITLE"
POL_Wine start /unix "$PATCH_EXE"
POL_Wine_WaitExit
rm "$PATCH_EXE"
fi
POL_SetupWindow_Close
exit 0
[/code]
Et pour ceux qui veulent le titan pack. ( 900 Mo le pack )
[code language=playonlinux]
#!/bin/bash
# Date : (2012-09-01)
# Last revision : (2012-09-01)
# Wine version used : 1.4
# Distribution used to test : Linux Mint 12 x32
# Author : Ruzven
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Unrealtounament3"
PREFIX="Unrealtounament3"
PVERSION="Titan-Pack"
# Starting the script
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/....../top.jpg" "http://files.playonlinux.com/resources/setups/....../left.jpg" "$TITLE"
POL_SetupWindow_Init
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_free_presentation "$TITLE" "$(eval_gettext 'Welcome in the patch $PVERSION Installer for $TITLE , you must install the 2.1 patch before the titan pack')"
POL_SetupWindow_checkexist()
{
if [ ! -e "$POL_USER_ROOT/wineprefix/$1" ]; then
POL_SetupWindow_message "$(eval_gettext 'Game is not installed')" "$TITLE"
POL_SetupWindow_Close
exit
fi
}
POL_SetupWindow_checkexist "$PREFIX"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Check if it's Steam version
STEAM=`find $WINEPREFIX -name "Steam.exe"`
if [ "$STEAM" != "" ]; then
POL_SetupWindow_message "$(eval_gettext 'Steam have is own automatic update system')" "$TITLE"
POL_SetupWindow_Close
exit
fi
# Asking if patch is local or not
cd "$HOME"
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Select patch to execute')" "$TITLE" ""
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit
else
cd "$POL_USER_ROOT/tmp"
PATCH_URL="http://soft.archive2.jeuxvideo.fr/files/9ce97aed0c4a7616c8d8336d56b7576d/5044cb95/patch/unreal_tournament_iii_-_titan_pack_titan_pack_multi-langues_278786.exe"
PATCH_EXE="unreal_tournament_iii_-_titan_pack_titan_pack_multi-langues_278786.exe"
POL_SetupWindow_download "$(eval_gettext 'Wait while the patch is downloading...\\nThis operation can take time, depending of your connexion')" "$TITLE" "$PATCH_URL"
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installation in progress...')" "$TITLE"
POL_Wine start /unix "$PATCH_EXE"
POL_Wine_WaitExit
rm "$PATCH_EXE"
fi
POL_SetupWindow_Close
exit 0
[/code]
Edité par Ruzvenbis