Strong Bad 101: Homestar Ruiner

Informations

Créateur Messages
Kjella Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 8812
Wine: System

Retours d'expérience

Description

Charming. Suave. Muscular. Awesome. These are just a few of the words that Strong Bad would use to describe himself. In a world gone mad, only one man can be trusted to save the day... for himself. A man with a mask. And boxing gloves. And an attitude. A man called Strong Bad.

Code source

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

FULLNAME="Strong Bad Episode 1: Homestar Ruiner"
COMPANY="Telltale Games"
WEBSITE="http://www.telltalegames.com/strongbad"
SCRIPTER="Kjella"
CODENAME="strongbad-101"

INSTDIR="http://www.telltalegames.com/download"
INSTNAME="homestarruiner"

ICONDIR="http://www.telltalegames.com/images/productshots"
ICONNAME="sbcg4ap101_139x110.png"

LINKDIR="Program Files/Telltale Games/Strong Bad/Episode 1 - Homestar Ruiner/"
LINKFILE="Homestar101.exe"
LINKNAME="Strong Bad 101: Homestar Ruiner"

# Basic setup
POL_SetupWindow_Init
POL_SetupWindow_presentation "$FULLNAME" "$COMPANY" "$WEBSITE" "$SCRIPTER" "$CODENAME"
select_prefixe "$REPERTOIRE/wineprefix/$CODENAME"
POL_SetupWindow_prefixcreate

mkdir -p $WINEPREFIX/drive_c/download/
cd $WINEPREFIX/drive_c/download/

POL_SetupWindow_message "Installing DirectX" "Installing DirectX" 2 4 1
# Download winetricks
wget http://www.kegel.com/wine/winetricks
chmod +x winetricks
./winetricks -q directx9

# Unregister everything winetricks did
rm -f dll.reg
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > dll.reg
echo "\"d3dim\"=\"builtin\"" >> dll.reg
echo "\"d3drm\"=\"builtin\"" >> dll.reg
echo "\"d3dx8\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_24\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_25\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_26\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_27\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_28\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_29\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_30\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_31\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_32\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_33\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_34\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_35\"=\"builtin\"" >> dll.reg
echo "\"d3dx9_36\"=\"builtin\"" >> dll.reg
echo "\"d3dxof\"=\"builtin\"" >> dll.reg
echo "\"dciman32\"=\"builtin\"" >> dll.reg
echo "\"ddrawex\"=\"builtin\"" >> dll.reg
echo "\"devenum\"=\"builtin\"" >> dll.reg
echo "\"dinput\"=\"builtin\"" >> dll.reg
echo "\"dinput8\"=\"builtin\"" >> dll.reg
echo "\"dmband\"=\"builtin\"" >> dll.reg
echo "\"dmcompos\"=\"builtin\"" >> dll.reg
echo "\"dmime\"=\"builtin\"" >> dll.reg
echo "\"dmloader\"=\"builtin\"" >> dll.reg
echo "\"dmscript\"=\"builtin\"" >> dll.reg
echo "\"dmstyle\"=\"builtin\"" >> dll.reg
echo "\"dmsynth\"=\"builtin\"" >> dll.reg
echo "\"dmusic\"=\"builtin\"" >> dll.reg
echo "\"dmusic32\"=\"builtin\"" >> dll.reg
echo "\"dnsapi\"=\"builtin\"" >> dll.reg
echo "\"dplay\"=\"builtin\"" >> dll.reg
echo "\"dplayx\"=\"builtin\"" >> dll.reg
echo "\"dpnaddr\"=\"builtin\"" >> dll.reg
echo "\"dpnet\"=\"builtin\"" >> dll.reg
echo "\"dpnhpast\"=\"builtin\"" >> dll.reg
echo "\"dpnlobby\"=\"builtin\"" >> dll.reg
echo "\"dsound\"=\"builtin\"" >> dll.reg
echo "\"dswave\"=\"builtin\"" >> dll.reg
echo "\"dxdiagn\"=\"builtin\"" >> dll.reg
echo "\"mscoree\"=\"builtin\"" >> dll.reg
echo "\"msdmo\"=\"builtin\"" >> dll.reg
echo "\"qcap\"=\"builtin\"" >> dll.reg
echo "\"quartz\"=\"builtin\"" >> dll.reg
echo "\"streamci\"=\"builtin\"" >> dll.reg
regedit dll.reg

# Add the one we do need
rm -f dll.reg
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > dll.reg
echo "\"d3dx9_36\"=\"native,builtin\"" >> dll.reg
regedit dll.reg

# Install game
cd $PLAYONLINUX/tmp/
POL_SetupWindow_download "Downloading installer from $COMPANY" "Downloading installer" "$INSTDIR/$INSTNAME"
mv $INSTNAME $CODENAME.exe
wine $CODENAME.exe
rm $CODENAME.exe

### Custom: Remove WINE desktop icon
rm ~/Desktop/Episode\ 1\ -\ Homestar\ Ruiner.desktop

# Set up the shortcut
cd $REPERTOIRE/icones
wget $ICONDIR/$ICONNAME
mv $ICONNAME $CODENAME.png
POL_SetupWindow_make_shortcut "$CODENAME" "$LINKDIR" "$LINKFILE" "$CODENAME.png" "$LINKNAME"
Set_WineVersion_Assign "1.1.5" "$LINKNAME"

if [ "$POL_LANG" == "fr" ]; then 
POL_SetupWindow_message "Voici comment faire fonctionner le jeu.\n1.Entrez le serial (obtenu après création d'un compte valide sur le site de Telltale)\n2. Alt+F4 pour fermer la fenêtre.\n3. Relancer le jeu et cliquez sur le lien pour démarrer.\n4. 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" 4 4 0 "" "Terminer"
else 
POL_SetupWindow_message "Use these steps to play the game.\n1. Enter serial (found in account section on telltale site)\n2. Alt + F4 to close.\n3. Run again and click the link to run.\n4. After changing to windowed mode or resolution, press Alt+F4 to exit.\nChanges are applied next time you start the game." "Information about running the episode" 4 4 0 "" "Finish"
fi

# Cleanup
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com