The forum

Call Of Juarez Gunslinger (steam)

Author Replies
Ruzvenbis Saturday 28 December 2013 at 17:16
RuzvenbisAnonymous

Bonjour
Install le jeu et la demo en version steam.

[code language=playonlinux]
#!/bin/bash
# Date : (2013-06-24)
# Last revision : (2013-12-27 11-25)
# Wine version used : 1.5.31; 1.7.8
# Distribution used to test : Linux Mint 15 x64
# Author : Ruzven

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Call Of Juarez Gunslinger"
TITLE_DEMO="Call Of Juarez Gunslinger(Demo)"
PREFIX="Call_Of_Juarez_Gunslinger"
WORKING_WINE_VERSION="1.7.8"

EDITOR="Ubisoft"
GAME_URL="http://www.ubi.com/UK/Games/Info.aspx?pId=11149"
AUTHOR="Ruzven"
GAME_VMS="512"

# Starting the script
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "STEAM_DEMO,STEAM"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ] || [ "$INSTALL_METHOD" == "STEAM_DEMO" ]; then
POL_Call POL_Install_steam
fi
       
# Begin game installation
if [ "$INSTALL_METHOD" == "STEAM_DEMO" ]; then
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/222400
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"
POL_Wine_WaitExit "$TITLE_DEMO"
POL_Shortcut "steam.exe" "$TITLE_DEMO" "$TITLE_DEMO.png" "steam://rungameid/222400"

elif [ "$INSTALL_METHOD" == "STEAM" ]; then
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/204450
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"
POL_Wine_WaitExit "$TITLE"
POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/204450"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

POL_SetupWindow_Close
exit 0
[/code]


    


petch Saturday 28 December 2013 at 22:36
petch

Bonsoir,
Pas grand-chose à redire au script, ça me semble ok pour une validation.
petch Saturday 28 December 2013 at 23:23
petch

Script validé

J'ai changé $TITLE pour correspondre au nom du script (c'est une contrainte du système de débogage), mais il aurait peut-être mieux valu retirer "(steam)" du nom du script ?
Ruzvenbis Sunday 29 December 2013 at 1:45
RuzvenbisAnonymous

En faite j'ai mis (steam) car le script ne prend pas en charge la version DVD. (version que je n'ai pas).
Pour que ce soit clair pour les utilisateurs de pol en faite.
alexadrien33190 Tuesday 8 April 2014 at 8:30
alexadrien33190Anonymous

Bonjour
j'ai essayé d'installer la démo grâce à votre méthode mais impossible de la lancer car quand je le lance il installe direct X et Win11 depuis steam mais ca ne marche pas.

comment faire?
Cordialement

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com