Forums

PokerStars

Dans quelle categorie le mettre ?

Auteur Réponses
Tr4sK Dimanche 4 Novembre 2007 à 23:26
Tr4sKAnonymous

Nom du script : PokerStars
Nom reel : PokerStars
Editeur : PokerStars
Site web de l'editeur: http://www.pokerstars.com
Script: #!/bin/bash
#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Charger les librairies
source "$PLAYONLINUX/lib/sources"

#Verifier les dépendences
cfg_check

#Declaration des variables
CODENAME="PokerStars"
REALNAME="PokerStars"
EDITEUR="PokerStars"
WEBSITE="http://www.pokerstars.com/"
SCRIPTEUR="Tr4sK"

#Presentation
presentation "$REALNAME" "$EDITEUR" "$WEBSITE" "$SCRIPTEUR" "$CODENAME" 1 5

#Cette partie contiendra le code du jeu.

mkdir -p $REPERTOIRE/wineprefix/$CODENAME
cd $REPERTOIRE/wineprefix/$CODENAME

telecharger "Veuillez patienter pendant le téléchargement du client $REALNAME" "http://www.pokerstars.com/PokerStarsInstall.exe" 3 5

message "Téléchargement terminé. \nAppuyez sur entrer, puis patientez le temps de préparer l'installation" 4 5

select_prefixe "$HOME/.PlayOnLinux/wineprefix/$CODENAME/" 5 5
creer_prefixe

attendre "Patientez pendant l'extraction"
wine ./PokerStarsInstall.exe

fonts_to_prefix

#Fin du code du jeu
#Création du lanceur

creer_lanceur "$CODENAME" "Program Files/PokerStars/" "PokerStars.exe" "" "$REALNAME"

exit

Edité par Tr4sK


Quentin PÂRIS Dimanche 4 Novembre 2007 à 23:29
Quentin PÂRISAnonymous

Wahou tu va vite, les scripteurs vont avoir du boulot la
Tr4sK Dimanche 4 Novembre 2007 à 23:43
Tr4sKAnonymous

mis a jour

j'ai ajouter le telechargement des fonts

Zoloom Dimanche 4 Novembre 2007 à 23:52
ZoloomAnonymous

Merci, j'ai rajouté le crochet qui manquait a la balise code

Quentin PÂRIS Lundi 5 Novembre 2007 à 0:02
Quentin PÂRISAnonymous

Plutot que telecharger les fonts, utilise "fonts_to_prefix"
Tr4sK Lundi 5 Novembre 2007 à 0:25
Tr4sKAnonymous

comment ca marche ?

Quentin PÂRIS Lundi 5 Novembre 2007 à 8:20
Quentin PÂRISAnonymous

Tu met ça tout simplement
Tr4sK Lundi 5 Novembre 2007 à 9:12
Tr4sKAnonymous

ok chef

goku Vendredi 9 Novembre 2007 à 22:38
goku

On retrouve les mêmes erreurs que dans "Full Tilt Poker", je les ai recorrigées.
Voilà:#!/bin/bash
#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Charger les librairies
source "$PLAYONLINUX/lib/sources"

#Verifier les dépendences
cfg_check

#Presentation
presentation "PokerStars" "PokerStars" "http://www.pokerstars.com/" "Tr4sK" "PokerStars" 1 4

#Cette partie contiendra le code du jeu.

mkdir -p $REPERTOIRE/wineprefix/PokerStars
cd $REPERTOIRE/wineprefix/PokerStars

telecharger "Veuillez patienter pendant le téléchargement du client" "http://www.pokerstars.com/PokerStarsInstall.exe" "Téléchargement du client" 2 4

message "Téléchargement terminé. \nAppuyez sur entrer, puis patientez le temps de préparer l'installation" "Preparation de l'installation" 3 4

select_prefixe "$HOME/.PlayOnLinux/wineprefix/PokerStars/"
creer_prefixe 4 4
message "Veuillez Utilisez l'installation rapide proposée durant l'installation." "Rappel"
wine ./PokerStarsInstall.exe

fonts_to_prefix

#Fin du code du jeu
#Création du lanceur

creer_lanceur "PokerStars" "Program Files/PokerStars/" "PokerStars.exe" "" "PokerStars"

exit


Ce script là marche chez moi, il va être accepté après un denière verification

EDIT : Ca y est, le script est dans les dépots community!

Edité par goku


Windows de Microsoft.

Mac de Apple.

Linux du monde entier.
Tr4sK Samedi 10 Novembre 2007 à 18:42
Tr4sKAnonymous

pas d'icone ?

goku Samedi 10 Novembre 2007 à 19:20
goku

L'icone que j'ai fait est encore pire que celle de full tilt poker, donc je ne l'ai pas mise.

Windows de Microsoft.

Mac de Apple.

Linux du monde entier.
BlondVador Dimanche 31 Octobre 2010 à 17:15
BlondVador

Une petite MAJ du script :

#!/bin/bash
# Date : (2007-11-04)
# Last revision : (2010-10-31)
# Distribution used to test : ArchLinux
# Author : Tr4sK
# Update : Valentin PERRUSSEL (BlondVador)
# Licence : GPLv3
# PlayOnLinux: 3.8.5
# WineHQ: 1.3.6
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_SetupWindow_Init
 
PREFIX="PokerStars"
PROGRAMFILES="Program Files"
 
if [ "$POL_LANG" == "fr" ]; then
DOWNLOAD="Veuillez patienter pendant le téléchargement du client PokerStars."
DOWNLOAD2="Téléchargement de PokerStars"
INSTALL="PokerStars est en cours d'installation."
OK="PokerStars a bien été installé."
else
DOWNLOAD="Please wait during PokerStars client download."
DOWNLOAD2="PokerStars download"
INSTALL="PokerStars installing."
OK="PokerStars has been installed succesfully."
fi
 
#Presentation 
POL_SetupWindow_presentation "PokerStars" "PokerStars" "http://www.pokerstars.com/" "Tr4sK and Updated by BlondVador" "PokerStars" 
 
#Création du préfixe
select_prefix "$HOME/.PlayOnLinux/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate
 
#Téléchargement
POL_SetupWindow_download "$DOWNLOAD" "$DOWNLOAD2" "http://www.pokerstars.fr/PokerStarsInstallFR.exe"
 
#Installation
POL_SetupWindow_wait_next_signal "$INSTALL" "PokerStars"
wine "PokerStarsInstallFR.exe"
 
#Confirmation
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$OK"
 
#Création du lanceur dans POL
POL_SetupWindow_auto_shortcut "PokerStars" "PokerStars.exe" "PokerStars" "$HOME/.PlayOnLinux/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/PokerStars.FR/gx/ico.bmp"
 
POL_SetupWindow_Close
exit


Fonctionne à merveille :).

Si quelqu'un passe par ici pour le valider, ça s'rait sympa ;).

Edité par BlondVador


BlondVador Vendredi 12 Novembre 2010 à 7:21
BlondVador

Un p'tit up, on semble m'avoir raté :).

Vous êtes ici: Index > Vos créations > PokerStars