Vous êtes ici > Les forums > Vos créations > [Script]Fiesta Online sv ru pl es en

Les forums

[Script]Fiesta Online

Nouveau  - Répondre
Auteur Posts
CKDevelop Le Mercredi 16 Decembre 2009 à 12:46 - [Citer]
Membre

Membre
Salut à tous bon cette nuit j'ai vu un poste sur le forum Ubuntu-fr qui parler de ce petit MMORPG libre ma foi fort sympathique...

Il faut cependant ce créer un compte sur le Portail de Fiesta Online

#! /bin/bash
# Date: (2009-12-16 12-38)
# Distribution used to test: Ubuntu 9.10
# Wine version used: 1.1.34
# Author: CKDevelop
# Graphic Card : GeForce 8600 GT
# Drivers : 185.18.36
 
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"

#Assignation du titre
Title="Fiesta Online fr"

#Assignation du Préfix
Prefix="FiestaOnlinefr"

#Traduction FR <-> EN 
if [ "$POL_LANG" == "fr" ]; then
	LNG_MEM="La taille de votre mémoire graphique? (Ex : 512)"
	LNG_INSTALL="Quelle version avez-vous?"
	LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera \nterminée sous peine de devoir recommencer l'installation."
	LNG_GAME="Selectionnez le fichier d'installation"
	LNG_DOWNLOADABLE="Version à télécharger"
	LNG_DOWNLOADED="Version déjà téléchargé"
	LNG_COPYPROTECT="Note à propos de la protection contre la copie"
	LNG_COPY="S'il vous plaît veuillez noter que ce jeu possède \ncertainement un ou plusieurs systèmes de protection contre la copie \net malheureusement, il peut empêcher Wine d'exécuter le jeu \ncorrectement.\nPlayOnLinux ne fournira aucune aide et aucun logiciel \nillégale pouvant contourner ces possible protections."
	LNG_DOWNLOAD="Téléchargement de  Fiesta Online"
	LNG_INSTALLATION="Installation de Fiesta Online..."
	LNG_DELTMP="Supression des fichiers temporaire..."
	#gecko
	LNG_DOWNLOADINGINSTALLING="Installation de Gecko sur"
	LNG_INSTALLED="a été installé avec succès"
	LNG_GECKOFIX="Téléchargement de Gecko..."
else
	LNG_MEM="How much memory do your graphic card have got? (Ex : 512)"
	LNG_INSTALL="What version have you got?"
	LNG_WAIT_END="Click on \"Next\" ONLY when the game installation \nis finished or you will have to redo the installation."
	LNG_GAME="Select the installation file"
	LNG_DOWNLOADABLE="Downloadable version"
	LNG_DOWNLOADED="Version already downloaded"
	LNG_COPYPROTECT="Note about copy protection"
	LNG_COPY="Please note that this game certainly has one or more systems \nof protection against copying and unfortunately, \nit can prevent Wiin run the game properly.\nPlayOnLinux not provide any help and no illegal \nsoftware that can bypass those protections possible."
	LNG_DOWNLOAD="Downloading Fiesta Online"
	LNG_INSTALLATION="Installing Fiesta Online..."
	LNG_DELTMP="Delete temporary files..."
	#gecko
	LNG_DOWNLOADINGINSTALLING="Installing Gecko"
	LNG_INSTALLED="has been installed successfully"
	LNG_GECKOFIX="Downloading Gecko..."
fi

POL_SetupWindow_Init "" ""
#Presentation
POL_SetupWindow_presentation "$Title" "Gamigo Games" "http://fiesta-online.gamigo.fr" "CKDevelop" "$Prefix"
  
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}

#==================GECKO FIX=========================
POL_SetupWindow_wait_next_signal "$LNG_GECKOFIX"
POL_SetupWindow_install_wine "1.1.29"
Use_WineVersion "1.1.29"
sleep 5
 
cd "$REPERTOIRE/ressources"
#downloading winetricks
if [ "`sha1sum < winetricks | sed 's/ .*//'`" != "37b5aaeeeec6ecae56ca9bfeb7911ac9c909b6d3" ]; then
	wget http://winezeug.googlecode.com/svn/trunk/winetricks --output-document=winetricks
fi
POL_SetupWindow_detect_exit
POL_SetupWindow_wait_next_signal "$LNG_DOWNLOADINGINSTALLING $Title" "$Title"
bash winetricks -q gecko
POL_SetupWindow_detect_exit
 
POL_SetupWindow_reboot
POL_SetupWindow "$Title $LNG_INSTALLED" "$Title"

#==================GECKO FIX=========================

#Installation de Wine
POL_SetupWindow_install_wine "1.1.34"
Use_WineVersion "1.1.34"

#Taille de la mémoire graphique
POL_SetupWindow_menu_list "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "256"
VMS="$APP_ANSWER"
 
if [ "$VMS" -lt "128" ]; then
	POL_SetupWindow_message_image "$LNG_VMS_ERROR" "$Title" "$PLAYONLINUX/themes/tango/warning.png"
fi
 
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > OGL.reg
echo "\"VideoMemorySize\"=\"$VMS\"" >> OGL.reg
regedit OGL.reg
 
#Configuration de Wine
Set_OS winxp

#Type de version à installer
POL_SetupWindow_menu "$LNG_INSTALL" "Actions" "$LNG_DOWNLOADED~$LNG_DOWNLOADABLE" "~"
 
if [ "$APP_ANSWER" == "$LNG_DOWNLOADABLE" ]; then
	cd $REPERTOIRE/tmp
	POL_SetupWindow_download "$LNG_DOWNLOAD" "$TITRE" "http://cdn.mediaclients.gamigo.de/i9y3i3f6/cds/fiestacl/FiestaOnlineSetupfr.exe"
	POL_SetupWindow_wait_next_signal "$LNG_INSTALLATION"
 	wine FiestaOnlineSetupfr.exe
	POL_SetupWindow_detect_exit
	POL_SetupWindow_wait_next_signal "$LNG_DELTMP"
	rm "$REPERTOIRE/tmp/FiestaOnlineSetupfr.exe"
	POL_SetupWindow_detect_exit
	POL_SetupWindow_message "$LNG_WAIT_END" "$Title"

elif [ "$APP_ANSWER" == "$LNG_DOWNLOADED" ]; then
	POL_SetupWindow_browse "$LNG_GAME" "$Title" ""
	POL_SetupWindow_wait_next_signal "$LNG_INSTALLATION"
	wine "$APP_ANSWER" 
	POL_SetupWindow_detect_exit
	POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
fi

#Crétion du raccourcie
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Gamigo Games/Fiesta Online(EU_French)" "FiestaOnline.exe" "" "$Title"

#Assignation de la version de Wine à utilisé pendant l'exécution du programme
Set_WineVersion_Assign "1.1.34" "$Title"

#Note sur les possible systèmes de protection
POL_SetupWindow_message_image "$LNG_COPY" "$LNG_COPYPROTECT" "$PLAYONLINUX/themes/tango/warning.png"

#Fin de l'utilisation de ce script
POL_SetupWindow_Close
exit


voilà je vous laisse découvrir

Edité par CKDevelop

Il n'y a rien à voir ici