Synthesia

Informations

Creator Message
Python Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 11661
Wine: System

Feedbacks

Description

Synthesia is a game that teaches you piano. It lets you choose a Midi file, and play it in a virtual keyboard, with falling bars as notes. You can also use a MIDI keyboard or computer keyboard.

Source code

#!/bin/bash
# Date : (2011-07-15 19-33)
# Last revision : (2011-07-15 19-33)
# Wine version used : 1.0.1
# Distribution used to test : Debian Squeeze
# Author : Python

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

TITLE="Synthesia"
PREFIX="synthesia"
WORKING_WINE_VERSION="1.0.1"

if [ "$POL_LANG" = "fr" ]; then
LNG_CHOOSE_MEDIA="Choisissez le mode d'installation :"
LNG_MEDIA_DL="Téléchargement automatique"
LNG_MEDIA_DDV="Version Digital Download"
LNG_DOWNLOAD_RUN="Téléchargement en cours..."
LNG_CHOOSE_DDV="Veuillez sélectionner votre exécutable Digital Download"
LNG_INSTALL_RUN="Installation en cours..."
LNG_SUCCES="$TITLE\na été installé avec succès !"
INSTRUCTION="Pour que Synthesia fonctionne correctement, vous deviez changer l'output a 'Timidity'(avec l'icon de haut-parleur) dans Keyboard Setup"
ATTENTION="Pour que l'installation soit un succès, il faut que Timidity soit installé sur votre système"
else
LNG_CHOOSE_MEDIA="Choose your install method :"
LNG_MEDIA_DL="Download automaticaly"
LNG_MEDIA_DDV="Digital Download Version"
LNG_DOWNLOAD_RUN="Downloading..."
LNG_CHOOSE_DDV="Please select your Digital Download executable"
LNG_INSTALL_RUN="Installation in progress..."
LNG_SUCCES="$TITLE\nhas been installed successfully."
ATTENTION="For the installation to be successful, Timidity must is installed on your system"
INSTRUCTION="For Synthesia running properly, you have to change the output to 'Timidity'(with the speaker icon) in Keyboard Setup"
fi

POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "Nicholas Piegdon" "http://www.synthesiagame.com/" "Python" "$PREFIX"
POL_SetupWindow_message "$ATTENTION"
POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
Use_WineVersion "$WORKING_WINE_VERSION"

select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate

POL_Call POL_Install_gdiplus

POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_MEDIA_DL~$LNG_MEDIA_DDV" "~"
GAME_MEDIAVERSION="$APP_ANSWER"

if [ "$GAME_MEDIAVERSION" = "$LNG_MEDIA_DL" ]
then

cd "$POL_USER_ROOT/tmp"
POL_SetupWindow_wait_next_signal "$LNG_DOWNLOAD_RUN" "$TITLE"
wget "http://www.synthesiagame.com/download.aspx?product=Synthesia&platform=win&version=latest" -O Synthesia.exe
POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
wine start /unix "Synthesia.exe"
wineserver -w
POL_SetupWindow_detect_exit
rm "$POL_USER_ROOT/tmp/Synthesia.exe"

fi
if [ "$GAME_MEDIAVERSION" = "$LNG_MEDIA_DDV" ]
then

cd "$HOME"

POL_SetupWindow_browse "$LNG_CHOOSE_DDV" "$TITLE"
POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
wine start /unix "$APP_ANSWER"
wineserver -w
POL_SetupWindow_detect_exit

fi

cat << EOF > "$POL_USER_ROOT/tmp/RegModif.reg"
[HKEY_CURRENT_USER\Software\Synthesia] 
"Renderer"="opengl"
EOF
regedit "$POL_USER_ROOT/tmp/RegModif.reg"
cat << EOF > "$POL_USER_ROOT/tmp/RegModif.reg"
[HKEY_CURRENT_USER\Software\Synthesia] 
"Disable Auto Volume"="1"
EOF
regedit "$POL_USER_ROOT/tmp/RegModif.reg"

POL_SetupWindow_auto_shortcut "$PREFIX" "Synthesia.exe" "$TITLE"
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
POL_SetupWindow_message "$INSTRUCTION"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message