Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Cinematic Mod 7.0

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

check_one unrar

#Presentation
presentation "Cinematic Mod" "FakeFactory" "" "GNU_Raziel" "Steam" 1 6
verifier_installation_e "Steam"

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_MOD_WARNING="Ce mod ne possède pas de site officiel ni de lien direct, le script va donc ouvrir les pages web des 6 fichiers rar du mod, à vous de les télécharger !!!"
LNG_MOD_WARNING2="Vous DEVEZ avoir au moins 3Go de ram et une carte craphique avec 256Mo de ram pour que ce mod fonctionne correctement !!"
LNG_MOD_SAVE="Sauvegardez les fichiers rar dans $HOME/.PlayOnLinux/ressources/ pour que le script s'execute correctement."
LNG_WAIT_UNRAR="Décompression des fichiers rar, veuillez patienter..."
LNG_MOD_ERROR="Les fichiers rar ne se trouvent pas dans le dossier $HOME/.PlayOnLinux/ressources/, veuillez les déplacer dans ce dossier et relancer le script !!"
LNG_VMS_ERROR="Ce jeu ne fonctionnera correctement qu'avec une carte graphique ayant plus de 64Mo de mémoire."
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
else
LNG_MOD_WARNING="This mod have neither official website nor direct link, this script will open webpages of the 6 rar files needed for this mod, be sure to download them all !!"
LNG_MOD_WARNING2="You MUST have 3GB of Memory and a vga card with 256MB of Memory for this mod to work correctly !!"
LNG_MOD_SAVE="Save rar files in $HOME/.PlayOnLinux/ressources/ for this script to work correctly."
LNG_WAIT_UNRAR="Extracting rar files, please wait..."
LNG_MOD_ERROR="Rar files are not in $HOME/.PlayOnLinux/ressources/ folder, please move rar files in this folder and reload the script !!"
LNG_VMS_ERROR="This game will work correctly only with a graphic card with more than 64Mo of memory."
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
fi

warning "$LNG_MOD_WARNING" "" 2 6
warning "$LNG_MOD_WARNING2" "" 3 6

mkdir -p $HOME/.PlayOnLinux/ressources
cd $HOME/.PlayOnLinux/ressources/
message "$LNG_MOD_SAVE" "" 4 6
browser "http://halflife2.filefront.com/file/Fakefactorys_Cinematic_Mod_V70_Part_16;88111#Download"
browser "http://halflife2.filefront.com/file/Fakefactorys_Cinematic_Mod_V70_Part_26;88112#Download"
browser "http://halflife2.filefront.com/file/Fakefactorys_Cinematic_Mod_V70_Part_36;88113#Download"
browser "http://halflife2.filefront.com/file/Fakefactorys_Cinematic_Mod_V70_Part_46;88115#Download"
browser "http://halflife2.filefront.com/file/Fakefactorys_Cinematic_Mod_V70_Part_56;88116#Download"
browser "http://halflife2.filefront.com/file/Fakefactorys_Cinematic_Mod_V70_Part_66;88117#Download"
if [ -e $REPERTOIRE/tmp/cm7_rc1.part1.rar ]; then
attendre "$LNG_WAIT_UNRAR" "unrar x cm7_rc1.part1.rar" 5 6 1 "" 1
else
message "$LNG_MOD_ERROR" "" 5 6
exit 0
fi

cd $HOME/.PlayOnLinux/wineprefix/Steam
select_prefixe "$(pwd)"
cd $HOME/.PlayOnLinux/ressources/Installer/
wine setup.exe
message "$LNG_WAIT_END" "" 6 6

VMS=$(champ "$LNG_WINEBOOSTER_VMS" "256" ) ;
if [ "$VMS" == "" ]; then
WINE_VMS="256"
message "$LNG_VMS_ERROR"
else
WINE_VMS=$VMS
fi
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > $REPERTOIRE/tmp/vms.reg
echo "\"VideoMemorySize\"=\"$WINE_VMS\"" >> $REPERTOIRE/tmp/vms.reg
regedit $REPERTOIRE/tmp/vms.reg
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > $REPERTOIRE/tmp/vms.reg
echo "\"DirectDrawRenderer\"=\"fbo\"" >> $REPERTOIRE/tmp/ddr.reg
regedit $REPERTOIRE/tmp/ddr.reg

simuler_reboot

creer_lanceur "Steam" "Program Files/Steam/SteamApps/SourceMods/Character Pimper/" "Character Pimper.exe" "steam.xpm" "Character Pimper"
creer_lanceur "Steam" "Program Files/Steam/SteamApps/SourceMods/FAKEFACTORY_CM/" "Konfigurator.exe" "steam.xpm" "Language Configurator"
creer_lanceur "Steam" "Program Files/Steam/SteamApps/SourceMods/FAKEFACTORY_CM/" "Launcher.exe -heapsize 512000" "steam.xpm" "Cinematic Mod HL2"
creer_lanceur "Steam" "Program Files/Steam/SteamApps/SourceMods/FAKEFACTORY_CMEP1/" "Launcher.exe -heapsize 512000" "steam.xpm" "Cinematic Mod HL2 EP1"
creer_lanceur "Steam" "Program Files/Steam/SteamApps/SourceMods/FAKEFACTORY_CMEP2/" "Launcher.exe -heapsize 512000" "steam.xpm" "Cinematic Mod HL2 Ep2"

exit