Scripts
Script para Sam and Max Season 1
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Sam and Max Season 1" "Telltale Games" "http://www.telltalegames.com/samandmax" "THAiSi - Modified by GNU_Raziel" "sam-max-season-1"
select_prefixe "$REPERTOIRE/wineprefix/sam-max-season-1"
Set_OS "vista"
Set_Iexplorer
creer_prefixe 1 8
#
# download all episodes from the telltale website
#
mkdir -p $WINEPREFIX/drive_c/download/
cd $WINEPREFIX/drive_c/download/
download "101: Culture Shock" "http://www.telltalegames.com/demo/cultureshock" "Downloading Episode 1" 2 8
mv cultureshock 101_Setup.exe
download "102: Situation Comedy" "http://www.telltalegames.com/demo/situationcomedy" "Downloading Episode 2" 3 8
mv situationcomedy 102_Setup.exe
download "103: The Mole, the Mob, and the Meatball" "http://www.telltalegames.com/demo/meatball" "Downloading Episode 3" 4 8
mv meatball 103_Setup.exe
download "104: Abe Lincoln Must Die!" "http://www.telltalegames.com/demo/lincolnmustdie" "Downloading Episode 4" 5 8
mv lincolnmustdie 104_Setup.exe
download "105: Reality 2.0" "http://www.telltalegames.com/demo/reality2.0" "Downloading Episode 5" 6 8
mv reality2.0 105_Setup.exe
download "106: Bright side of the Moon" "http://www.telltalegames.com/demo/brightside" "Downloading Episode 6" 7 8
mv brightside 106_Setup.exe
#
# download the icons
#
cd $REPERTOIRE/icones
wget http://files.telltalegames.com/productshots/gameicons/icon_sammax101.png
wget http://files.telltalegames.com/productshots/gameicons/icon_sammax102.png
wget http://files.telltalegames.com/productshots/gameicons/icon_sammax103.png
wget http://files.telltalegames.com/productshots/gameicons/icon_sammax104.png
wget http://files.telltalegames.com/productshots/gameicons/icon_sammax105.png
wget http://files.telltalegames.com/productshots/gameicons/icon_sammax106.png
wine $WINEPREFIX/drive_c/download/101_Setup.exe
creer_lanceur "sam-max-season-1" "Program Files/Telltale Games/Sam and Max - Season One/Episode 101 - Culture Shock/" "SamMax101.exe" "icon_sammax101.png" "Sam and Max 101: Culture Shock"
Set_WineVersion_Assign "0.9.55" "Sam and Max 101: Culture Shock"
wine $WINEPREFIX/drive_c/download/102_Setup.exe
creer_lanceur "sam-max-season-1" "Program Files/Telltale Games/Sam and Max - Season One/Episode 102 - Situation Comedy/" "SamMax102.exe" "icon_sammax102.png" "Sam and Max 102: Situation Comedy"
Set_WineVersion_Assign "0.9.55" "Sam and Max 102: Situation Comedy"
wine $WINEPREFIX/drive_c/download/103_Setup.exe
creer_lanceur "sam-max-season-1" "Program Files/Telltale Games/Sam and Max - Season One/Episode 103 - The Mole, The Mob, and the Meatball/" "SamMax103.exe" "icon_sammax103.png" "Sam and Max 103: The Mole, The Mob, and the Meatball"
Set_WineVersion_Assign "0.9.55" "Sam and Max 103: The Mole, The Mob, and the Meatball"
wine $WINEPREFIX/drive_c/download/104_Setup.exe
creer_lanceur "sam-max-season-1" "Program Files/Telltale Games/Sam and Max - Season One/Episode 104 - Abe Lincoln Must Die/" "SamMax104.exe" "icon_sammax104.png" "Sam and Max 104: Abe Lincoln Must Die"
Set_WineVersion_Assign "0.9.55" "Sam and Max 104: Abe Lincoln Must Die"
wine $WINEPREFIX/drive_c/download/105_Setup.exe
creer_lanceur "sam-max-season-1" "Program Files/Telltale Games/Sam and Max - Season One/Episode 105 - Reality 2.0/" "SamMax105.exe" "icon_sammax105.png" "Sam and Max 105: Reality 2.0"
Set_WineVersion_Assign "0.9.55" "Sam and Max 105: Reality 2.0"
wine $WINEPREFIX/drive_c/download/106_Setup.exe
creer_lanceur "sam-max-season-1" "Program Files/Telltale Games/Sam and Max - Season One/Episode 106 - Bright Side of the Moon/" "SamMax106.exe" "icon_sammax106.png" "Sam and Max 106: Bright Side of the Moon"
Set_WineVersion_Assign "0.9.55" "Sam and Max 106: Bright Side of the Moon"
if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
message "Voici comment faire fonctionner le jeu.\n 1.Entrez le serial (obtenu après création d'un compte valide sur le site de Telltale)\n 2.Alt+F4 pour fermer la fenêtre.\n 3.Relancer le jeu et cliquez sur le lien pour démarrer.\n 4.Cliquez plusieurs fois sur l'écran d'introduction pour démarrer le jeu.\n 5.Après avoir réglé la résolution et/ou le mode fenêtré, faite Alt+F4 pour sortir. Les paramêtres seront appliqués au prochains lancement." "Instructions pour faire fonctionner le jeu" 8 8 0 "" "Terminer"
else
message "Use these steps to play the game.\n 1. Enter serial (found in account section on telltale site)\n2. Alt + F4 to close.\n3. Run again and click the link to run.\n4. click a few times for the introduction to start.\n5. After changing to windowed mode or resolution, press Alt+F4 to exit. Changes are applied next time you start the game." "Information about running the episodes" 8 8 0 "" "Finish"
fi
end_install