Bonsoir me revoilà
j'ai crée un script pour Payday 2 (un jeu ue je sache ne se joue qu'avec STEAM) sauf qu'avec le méthode LOCAL le jeu marche parfaitement , j'ai pas pu tester la STEAM vue que j'ai pas acheter le jeu mais logiquement je trouve que si ça marche sur l'un ça marchera sur l'autre .
Qu'en pensez vous ??
[code language=playonlinux]#!/bin/bash
# Date : 01/10/2013
# Last revision : 01/10/2013
# Wine version used : 1.6
# Distribution used to test : Ubuntu-Gnome 13.04
# Author : Massawi33
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
TITLE="Payday 2"
PREFIX="Payday2"
STEAM_ID="218620"
Wine="1.6"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Crimenet" "http://www.crimenet.info/" "Massawi33" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$Wine"
POL_SetupWindow_InstallMethod "LOCAL,STEAM"
if [ "$INSTALL_METHOD" = "STEAM" ]; then
POL_Call POL_Install_steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
POL_Shortcut "steam.exe" "$TITLE" "steam://rungameid/$STEAM_ID"
POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\\nDo NOT click on Play.\\n\\nClose COMPLETELY the Steam interface, \\nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Please uncheck \\"Play\\" at the end of the installation box')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
fi
POL_Wine_SetVideoDriver
POL_SetupWindow_VMS "256"
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
POL_Shortcut "payday2_win32_release.exe" "$TITLE"
fi
POL_SetupWindow_Close
exit
[/code]
Edit SuperPlumus : balises code Edité par SuperPlumus