sv ru pl en fr

Applications

Choose a category

Command And Conquer 3 : Tiberium Wars (Kane Edition)

Informations

This script is signed by PlayOnLinux.
	Français : 

Nous sommes en 2047, et la situation ne fait qu'empirer. Le tiberium, un minerai extraterrestre qui s'est propagé sur toute la Terre, se répand telle une aire glaciaire radioactive. Le GDI, alliance mondiale des nations les plus avancées en haute technologie, se bat pour stopper le tiberium, mais Kane, le chef excentrique du NOD, a d'autres projets pour la Terre. La société secrète de Kane, devenue une superpuissance, compte utiliser le tiberium pour asservir l'humanité et lui imposer sa vision démoniaque du futur. Désormais, c'est la guerre totale pour le tiberium qui va décider du destin de la planète.

English :
The year is 2047 when an enormous nuclear explosion marks the beginning of the third Tiberium war. The Earth has been separated into zones based on the level of the Tiberium infestation, and the majority of Earth's population lives in war-torn, ecologically devastated regions known as yellow zones. Much of the planet is completely uninhabitable, and only a small portion of the Earth's surface has been left in decent enough shape to be the last refuge of the civilized world. Unfortunately, the infamous Kane has once again returned to lead the Brotherhood of Nod in an epic invasion against the Global Defense Initiative.

Source code

#!/bin/bash
# Date : (2008-09-07 19-00)
# Last revision : (2011-08-12 17:21)
# Wine version used : 1.2, 1.3.15, 1.3.25, 1.3.26, 1.3.27
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="Command And Conquer 3 : Tiberium Wars (Kane Edition)"
PREFIX="CommandAndConquer3-KaneEdition"
WORKING_WINE_VERSION="1.3.27"
GAME_VMS="64"

if [ "$POL_LANG" == "fr" ]; then
        TITLE="Command And Conquer 3 : Les Guerres du Tibérium (Kane Edition)"
fi

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/cnc3/top.jpg" "http://files.playonlinux.com/resources/setups/cnc3/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Electronic Arts" "http://www.ea.com/cc/tiberium/" "GNU_Raziel" "$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_gdiplus
POL_Call POL_Install_d3dx9

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "24790"

if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Choose Game language
        POL_SetupWindow_menu "$(eval_gettext 'Choose the game language you want')" "$TITLE" "$(evalgettext 'French')~$(evalgettext 'German')~$(evalgettext 'English')" "~"
        if [ "$APP_ANSWER" == "$(evalgettext 'French')" ]; then
                GAME_LNG="fr"
        elif [ "$APP_ANSWER" == "$(evalgettext 'German')" ]; then
                GAME_LNG="de"
        else
                GAME_LNG="en"
        fi
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/autorun.exe"
        POL_Wine_WaitExit "$TITLE"
        # Language Fix for DVD install
        if [ "$GAME_LNG" == "fr" ]; then
                POL_SetupWindow_wait_next_signal "$(eval_gettext 'Wait while language pack is configured...')" "$TITLE"
                cd "$POL_USER_ROOT/tmp/"
                cabextract "$CDROM/Langfr~1.cab"
                cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Electronic Arts/Command & Conquer 3/"
                mv "$POL_USER_ROOT/tmp/cnc3_french_1.0.skudef" "CNC3_french_1.0.SkuDef"
                mkdir -p "Lang-french/1.0"
                echo "add-big French.big" > "Lang-french/1.0/config.txt"
                cp "$POL_USER_ROOT/tmp/french.big" "Lang-french/1.0/French.big"
                echo "add-big ../Lang-french/1.0/French.big" >> "RetailExe/1.0/config.txt"
cat << EOF > "$POL_USER_ROOT/tmp/french.reg"
[HKEY_CURRENT_USER\\Software\\Electronic Arts\\Electronic Arts\\Command and Conquer 3]
"Language"="french"
EOF
regedit "$POL_USER_ROOT/tmp/french.reg"
        fi
        if [ "$GAME_LNG" == "de" ]; then
                POL_SetupWindow_wait_next_signal "$(eval_gettext 'Wait while language pack is configured...')" "$TITLE"
                cd "$POL_USER_ROOT/tmp/"
                cabextract "$CDROM/Langge~1.cab"
                cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Electronic Arts/Command & Conquer 3/"
                mv "$POL_USER_ROOT/tmp/cnc3_german_1.0.skudef" "CNC3_german_1.0.SkuDef"
                mkdir -p "Lang-german/1.0"
                echo "add-big German.big" > "Lang-german/1.0/config.txt"
                cp "$POL_USER_ROOT/tmp/german.big" "Lang-german/1.0/German.big"
                echo "add-big ../Lang-german/1.0/German.big" >> "RetailExe/1.0/config.txt"
cat << EOF > "$POL_USER_ROOT/tmp/german.reg"
[HKEY_CURRENT_USER\\Software\\Electronic Arts\\Electronic Arts\\Command and Conquer 3]
"Language"="german"
EOF
regedit "$POL_USER_ROOT/tmp/german.reg"
        fi
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/24790
        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_SetupWindow_wait_next_signal "$(eval_gettext 'Installation in progress...')" "$TITLE"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

## Fix for this game
cat << EOF > "$POL_USER_ROOT/tmp/net_hack.reg"
[HKEY_CURRENT_USER\\Software\\Wine\\Network]
"UseBindAddressHack"="enabled"
EOF
regedit "$POL_USER_ROOT/tmp/net_hack.reg"

# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

# Cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
        rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
        chmod -R 777 "$POL_USER_ROOT/tmp/"
        rm -rf "$POL_USER_ROOT/tmp/*"
fi

# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "cnc3.png" "steam://rungameid/24790"
else
        POL_Shortcut "CNC3.exe" "$TITLE" "cnc3.png" ""
fi

POL_SetupWindow_Close
exit 0

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAk5eZKEACgkQ5TH6yaoTykdKxACfa1dJFZd6q1dlEh/pozsY6DT4
97IAn0tNsRhPbuOVyqCKmWeO/js1EcGV
=a8mB
-----END PGP SIGNATURE-----
	Date : 31 August 2011 18:43:13
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

Il n'y a rien à voir ici