El Foro

TrackMania - Nations Forever (non-Steam)

de votre Modérateur préféré XD

Autor Respuestas
Apocalypse555 Sunday 27 April 2008 at 20:02
Apocalypse555

Slt,

Voilà mon 2ème script, TrackMania - Nations Forever ...
Apparemment il est attendus alors j'abrège mon discours ^^ :

#!/bin/bash

# Vérifier que PlayOnLinux est lancé ...
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi

# Charger les librairies ...
source "$PLAYONLINUX/lib/sources"

# Vérifier les dépendances ...
cfg_check

# Présentation du jeu ...
presentation "TrackMania - Nations Forever" " Nadeo" "http://www.trackmania.com/fr/
http://www.nadeo.com/" "Apocalypse_555" "TM_Nations_Forever" 1 5

# Verification du téléchargement ...
question "Avez-vous déjà téléchargé le fichier exécutable (.exe) de TrackMania - Nations Forever ?

PS : Il est TOTALEMENT GRATUIT ..." "" 2 5 1
if [ ! question "Avez-vous déjà téléchargé le fichier exécutable (.exe) de TrackMania - Nations Forever ?

PS : Il est TOTALEMENT GRATUIT ..." "" 2 5 1 ];
then navigateur http://www.http://www.trackmania.com/fr/
fi

# Sélectionner le fichier à installer ...
DIRECTION=$(selectionner_fichier "Où se trouve le fichier d'installation de TrackMania - Nations Forever ?" "" 3 5 1)

# Création du préfixe Wine dans POL ...
select_prefixe "$REPERTOIRE/wineprefix/TM_Nations_Forever/"
creer_prefixe 4 5

# Version de Wine pour l'installation ...
Set_WineVersion_Session "0.9.60"

# Version de l'OS simulé par Wine ...
Set_OS "winxp"

# Installation ...
wine "$DIRECTION"

# Faire attendre ...
sur_installed

# Simuler le redémarrage et créer le lanceur ...
simuler_reboot 5 5
creer_lanceur "TM_Nations_Forever" "Program Files/TmNationsForever" "TmForeverLauncher.exe" "TrackMania - Nations Forever.png" "TrackMania - Nations Forever"

# Version assigner par Wine ...
Set_WineVersion_Assign "0.9.60" "TrackMania - Nations Forever"

exit 0


Voilà j'attend un retour de bug sinon bon jeu ;)

Je créé ici un topic pour son test !

EDITE : un petit bug (mais gênant) réglé grâce à Aiglenoir ! Merci ;)

Editado por: Apocalypse555