Vous êtes ici > Les forums > Vos créations > Race The WTCC Game sv ru pl es en

Les forums

Race The WTCC Game

Nouveau  - Répondre
Auteur Posts
thib25 Le Mardi 24 Novembre 2009 à 19:20 - [Citer]
Membre

Membre
Bonsoir, voilà j'aurais besoin d'aide pour finir mon scrpit de Race The WTCC Game. Le problème se pose surtout au niveau du raccourci puisque ce jeu utilise Steam et sous Windows j'ai un raccourci qui ressemble à ça :
D:\Steam\Steam.exe -applaunch 4230


Le problème c'est que j'arrive pas à faire ça avec POL

#!/bin/bash
# Date : (2009-07-29 20-30)
# Last revision : (2009-11-20 20-30)
# Wine version used : 1.1.33
# Distribution used to test : Ubuntu 9.10
# Author : thib25
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
NAME="Race The WTCC Game"
PREFIX="Steam"
 
if [ "$POL_LANG" == "fr" ]; then
INSTALLATION="Installation en cours..."
MENU="Voulez-vous installer l'extension Caterham ?"
WAIT="Appuyer sur suivant seulement quand l'installation sera finit"
else
INSTALLATION="Installation in progress..."
MENU="Do you want to install the Caterham's extension ?"
WAIT="Click on Next only when the installation is finish"
fi
 
wget http://i43.tinypic.com/mcpw1e.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "$NAME" "SimBin" "www.race-game.org" "thib25" "$PREFIX"
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom  "RaceSetup.exe"
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate

PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
 
Set_Desktop On 800 600

POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
cd "$CDROM"
wine "RaceSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$WAIT" "$NAME"      
 
 
POL_SetupWindow_question  "$MENU" "$NAME" 
 
if [ "$APP_ANSWER" == "TRUE" ] ; then
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "RaceCaterhamSetup.exe"
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME Caterham"
cd "$CDROM"
wine "RaceCaterhamSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$WAIT" "$NAME"      
 
fi

POL_SetupWindow_make_shortcut "$NAME" "$PROGRAMFILES/Steam" "Steam.exe -applaunch 4230" 

Set_Desktop Off
 
POL_SetupWindow_Close
exit
Berillions Le Mardi 24 Novembre 2009 à 20:16 - [Citer]
Membre

Membre
1- Fait un raccourcie qui va directement au jeu. Sous Steam, les jeux sont généralement installé dans SteamApps.

Dans ton cas, ca sera : $PROGRAMFILES/Steam/SteamApps/common/NomDuJeu/...

2- Pourquoi installes-tu le jeu en utilsant un bureau virtuel?

Edité par Berillions


thib25 Le Mardi 24 Novembre 2009 à 21:29 - [Citer]
Membre

Membre
J'utilise un bureau virtuel car sinon le programme d'installation n'est pas dans la barre des tâches et donc si on fait disparaître la fenêtre elle disparait vraiment et on est obligé de killer le processus.

EDIT : Mais sinon c'est bizarre car dans wine il n' y a rien dans SteamApps alors que sous Windows il y' a le .exe de Race je comprends plus.

Edité par thib25

Il n'y a rien à voir ici